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

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

book

Article ID: 46992

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

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

./trapexploder status

./trapexploder stop

Environment

Release: Trap Exploder running on Solaris 10
Component:

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}'`