Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 - Agent (For UNIX Systems)


3.2 Creating a UAP that executes during collection

The external program processing for collection is the processing that is started before or after file collection. The external program processing for collection is divided into the external program processing before collection, which is executed before collection, and the external program processing after collection, which is executed after collection.

This subsection describes the procedure for using the external program processing for collection, notes on creating the external program processing for collection, and a creation example.

Procedure for using the external program processing for collection

To use the external program processing for collection:

  1. Create the program of the external program processing for collection.

    Create the external program processing for collection to return the following return codes after the processing.

    Normal end: 0

    Abnormal end: Other than 0

  2. Set the external program processing for collection at the managing server.

    When you create the file collection job at the managing server, set the external program processing for collection for the following items in the Specify external programs to start on destination agent.

    Before collection: path-name-of-external-program-processing-before-collection

    After collection: path-name-of-external-program-processing-after-collection

    Use the absolute path name to specify the external program processing for collection.

Note on creating the external program processing for collection

Example of creating the external program processing for collection

The following shows an example for creating an external program processing for collection.

Contents of the external program processing before collection
DATADIR=/local/usr/data
/bin/cat $DATADIR/DataFile_1 \
         $DATADIR/DataFile_2 \
         $DATADIR/DataFile_3 > /tmp/DataFile
exit $?
Contents of the external program processing after collection
/bin/rm /tmp/DataFile
DATE= '/bin/date'
/bin/echo "Collection completed ($DATE)" >> /local/usr/data/CF_LOG
exit 0