Re: [nv-l] automatic action is acting strangely

2005-09-30 10:51:49
Subject: Re: [nv-l] automatic action is acting strangely
From: James Shanks <jshanks AT us.ibm DOT com>
To: nv-l AT lists.us.ibm DOT com
Date: Fri, 30 Sep 2005 10:50:54 -0400
Not sure I follow all this, but automatic action scripts are run by
ovactiond and he has a log you could look at.  If you put tracing in your
script (set -x) it will echo to ovactiond.log.

You do know about AdditionalLegalTrapCharacters, right?  Because of past
CERT advisories, ovactiond and actionsvr will replace every special
character not listed in the AdditionalLegalTrapCharacters environment
variable with underscores.  This had been true since version 6.0.3.
You can set AdditionalLegalTrapCharacters in netnmrc.pre or NVenvironment,
and restart all the daemons, including nvsecd


James Shanks
Level 3 Support  for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group

             <[email protected]                                          To 
             o.za>                     <nv-l AT lists.us.ibm DOT com>           
             Sent by:                                                   cc 
             [email protected]                                             
             us.ibm.com                                            Subject 
                                       [nv-l] automatic action is acting   
             09/30/2005 09:14                                              
             Please respond to                                             

Hi All

I am using netview for Unix 7.1.4 fp03 on solaris 2.9

With xnmtrap I have configured command for automatic action as follows
sh –x /home/test/remfin “$A $5 C $2 $3”  >> test.out

What I wanted to do was remove all brackets and quotes in the string and
replace them with nothing or blank.
It is executing remfin because I tail test.out
remfin looks like ths

 echo $Str1     ……

change string and the I do another snmptrap ( and here I see the _23.5_ etc
in the trapd.log )

In test.out the string that is been given to me has already been modified
by something removing the brackets and quotes with a _  but not by remfin.
I have removed all sed statement in remfin.
What is changing my string??

If I remove remfin via xnmtrap then nothing happens which implies that it
is being trigged by the correct oid

Please help I am going nuts.



The views expressed in this email are, unless otherwise stated, those of
the author and not those
of the FirstRand Banking Group an Authorised Financial Service Provider or
its management.
The information in this e-mail is confidential and is intended solely for
the addressee.
Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or
omitted in reliance on this, is prohibited and may be unlawful.
Whilst all reasonable steps are taken to ensure the accuracy and integrity
of information and data
transmitted electronically and to preserve the confidentiality thereof, no
liability or
responsibility whatsoever is accepted if information or data is, for
whatever reason, corrupted
or does not reach its intended destination.


<Prev in Thread] Current Thread [Next in Thread>