How to use the TIBCO iProcess Engine $SWDIR/util/plist -M command for monitoring purposes.

How to use the TIBCO iProcess Engine $SWDIR/util/plist -M command for monitoring purposes.

book

Article ID: KB0093211

calendar_today

Updated On:

Products Versions
TIBCO iProcess Engine (Oracle) -
Not Applicable -

Description

Description:
If the 'plist -M' command is used for monitoring purposes, stdout needs to be redirected to file. However, if the 'interval' parameter is used, the stdout information is written to screen and the command is terminated. (No information is written to the file).

Resolution

In order to get the information from the command written to file for monitoring purposes, the command needs to be run within a loop. This can be achieved by creating a simple shell script, such as the following,

a=0

while [ $a -lt 10 ]
do
        $SWDIR/util/plist -M WISBGMBSET1 >> $SWDIR/logs/plistm.out
        a=`expr $a + 1`
        sleep 2
done

This script sets variable 'a' to the value of 0. The while loop checks the value of variable 'a' and if it is less than 10 performs the 'plist -M' command with no interval parameter, which only runs the command once and upon completion, writes the output to the file 'plistm.out'. The value of variable 'a' is incremented by 1 and a sleep of 2 seconds is performed. This is used to replace the interval parameter of the 'plist -M' command. The loop is performed until the value of variable 'a' is 10 when the script finishes. This type of script could be run using cron and the variables changed to suit specified requirements.

Issue/Introduction

How to use the TIBCO iProcess Engine $SWDIR/util/plist -M command for monitoring purposes.