captureOutput


captureOutput (triggerExpression, processingFunction)

captureOutput creates a temporary rule to capture the next occurrence of a message. When a message matching the trigger expression is received, the processing function is called and the temporary rule is removed and discarded. This function is intended to be used with sendPopupTable to allow an operator to submit a command and see the results in a tabular format. See the sample rules showJobs in the example section and the processing function formatJobOutput it calls, which is shown in sendPopupTable.

Parameters:

triggerExpression

An RDL boolean expression used for the triggering expression.

processingFunction

An RDL function name for processing the message.

Returns:

true if the rule was generated successfully, false otherwise.

Example:

function showJobs()
//Set up the triggering expression to capture the IEE114I message,

//which is the response to the "D J,LIST" console command

captureOutput("message.MSGID== \"IEE114I\"", "formatJobOutput")

//Send a D J,LIST command to the console.

sendCommand("D J,LIST")

return true

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Ops Console Management, BMC AMI Ops Console Automation, and BMC AMI Ops SecureHMC 4.1