TrapExploder status and stop functions do not work on Solaris 10.

Document ID : KB000046992
Last Modified Date : 14/02/2018
Show Technical Document Details

Problem:

When running the following commands, trapexploder does not provide status or stop:

./trapexploder status

./trapexploder stop

Cause:

This is due to running trapexploder on a local Solaris 10 zone. The trapexploder script greps for a zonename so that when it is run at the global zone level, the script functions properly. When trapexploder is run on a local zone, the script fails.

Resolution:

Edit the trapexploder application in the /ect/init.d folder and change the following entry from:

 

if [ "$SOLARIS10" = "1" ];then

   # stop only the agent running on this zone

   PID=`$PS -ef -Z | grep "\`zonename\`" | grep $TRAPXDIR/bin/trapexploder | grep -v grep | awk '{print $3}'`

 

To:

 

if [ "$SOLARIS10" = "1" ];then

   # stop only the agent running on this zone

   PID=`$PS -ef -Z | grep $TRAPXDIR/bin/trapexploder | grep -v grep | awk '{print $3}'`