Enterprise Manager Generic (MOSC)

MOSC Banner

In user-defined metric in Windows environment STDOUT is not showing up in OEM-GC

edited Jul 5, 2012 8:00PM in Enterprise Manager Generic (MOSC) 2 commentsAnswered
I am implementing a user-defined metric. I have a PowerShell 2.0 one-line script that writes one line, "em_result=nn" where "nn" is a two-digit number. I am not writing out an em_message line.

When I run the script in a cmd.exe window on the client, the output is written out within the window, just as one would expect any STDOUT output to be. The display is the command, followed by the output on a separate line. I can run it in any of three ways:

  1. powershell "<command text here>"
  2. powershell script.ps1
  3. script.ps1

The file "script.ps1" has the one-line PowerShell command in it. All three variants produce the same output (though of course the command that is shown is different).

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center