Hitachi

JP1 Version 12 JP1/Automatic Operation Service Template Developer's Guide 


6.4.12 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 list of mapping definition of output properties. 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.

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

  1. Click the Remote Command tab in the Create Custom Plug-in or Edit Custom Plug-in dialog box.

  2. Select a property in the list of mapping definitions of output properties, and then click the pencil icon.

    Only output properties that you registered when setting the plug-in properties that appear in the list of mapping definitions of output properties.

  3. In the Edit Output Filter dialog box, enter a PCRE-compliant regular expression for the output filter, and then click the OK button.

    Figure 6‒13: Edit Output Filter dialog box

    [Figure]

    Tip

    You can also edit the filter by entering the new filter directly in the text box for the output filter.

  4. You can verify the output filter you set by entering a sample of standard output and standard error output in the Verification of the Output Filter > Standard Output / Standard Error Output text box. The results of the test appear in Results.

Operation result

The value extracted by the output filter is displayed in the Results area.