Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Automatic Operation Service Template Developer's Guide


4.3.7 Procedure for mapping standard output and standard error output to output properties

You can map the standard output and standard error output of a command or script to an output property.

By default, the output filters are blank for properties in the Mapping Definition of Output Properties list. This means that the entire standard output and standard error output of commands and scripts is stored in output properties. To extract values from standard output and standard error output and map them to output properties, define regular expressions in the Edit Output Filter dialog box.

If the Create Plug-in dialog box or the Edit Plug-in dialog box is not displayed:

  1. In the Plug-in view of the Editor window, display the Under Development tab.

  2. To create a new plug-in, click Create.

    To edit an existing plug-in, select the plug-in and then click Edit.

To map standard output or standard error output to an output property:

  1. In the Remote Command area of the Create Plug-in dialog box or the Edit Plug-in dialog box, click Edit.

  2. Select a property in the Mapping Definition of Output Properties list, and then click Edit.

    Only output properties that you registered when setting the plug-in properties appear in the Mapping Definition of Output Properties list.

  3. In the Edit Output Filter dialog box, enter a PCRE-compliant regular expression in the Output Filter area and then click OK.

  4. You can verify the output filter you entered by entering a sample of standard output and standard error output in the Standard Output / Standard Error Output: text box, and clicking Verification of the Output Filter.

    The value filtered by the output filter appears in the Value of the Output Property text box.

Related topics