Stopping the PATROL Agent for UNIX with a configuration utility script
This section explains how to use a script to call the PATROL configuration utility, pconfig, which will stop the PATROL Agent on a UNIX host.
You can use the PATROL utility, pconfig, to stop the agent. Create a shell script that resembles the following example:
# change to the PATROL installation directory
cd /OPT/PATROL/PATROL3
# run the script to setup your environment. This syntax assumes sh or ksh. For csh, use "source ./.patrolrc"
. ./patrolrc.sh
# change to the binary directory
cd $<PATROL_HOME>/bin
# execute pconfig to kill the agent
./pconfig +KILL +verbose -port <portnumber> -host <hostname>
# allow agent to shutdown before OS removes resources
sleep 2
cd /OPT/PATROL/PATROL3
# run the script to setup your environment. This syntax assumes sh or ksh. For csh, use "source ./.patrolrc"
. ./patrolrc.sh
# change to the binary directory
cd $<PATROL_HOME>/bin
# execute pconfig to kill the agent
./pconfig +KILL +verbose -port <portnumber> -host <hostname>
# allow agent to shutdown before OS removes resources
sleep 2
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*