Job Management Partner 1/Software Distribution Client Description and User's Guide

[Contents][Glossary][Index][Back][Next]


3.2.3 Creating a UAP that executes during collection

The external program processing for collection is the processing that is started before or after remote 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.

Organization of this subsection
(1) Procedure
(2) Note on creating the external program processing for collection
(3) Example of creating the external program processing for collection

(1) Procedure

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. In the collection-information file, set the following attributes:
    APbeforeCollect  path-name-of-external-program-processing-before-collection
    APafterCollect  path-name-of-external-program-processing-after-collection
    Use the absolute path name to specify the external program processing for collection.

(2) Note on creating the external program processing for collection

(3) Example of creating the external program processing for collection

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

Specifying the collection-information file
ResourceName    DATA-FILE
PathName        /tmp/DataFile
PathType        RESOURCE
     :
APbeforeCollect /local/usr/etc/cat_files
APafterCollect  /local/usr/etc/logprint

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

[Contents][Back][Next]


[Trademarks]

All Rights Reserved. Copyright (C) 2009, Hitachi, Ltd.