nv-l
[Top] [All Lists]

RE: [nv-l] Netview ruleset question

To: "'nv-l@lists.us.ibm.com'" <nv-l@lists.us.ibm.com>
Subject: RE: [nv-l] Netview ruleset question
From: "Qureshi, Fawad" <Fawad.Qureshi@ssa.gov>
Date: Mon, 1 Dec 2003 11:35:32 -0500
Delivery-date: Mon, 01 Dec 2003 16:47:32 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com

Pritish,

 

Following is the excerpt from Netview 7.1.3 Release Notes. This should answer your questions:

 

The ovactiond, nvcorrd and actionsvr daemons now filter out all non

alphanumeric characters except for the minus sign (-) and the decimal point ( . ).

All characters not falling into this set are replaced with an underscore ( _ ). If a

Tivoli NetView for UNIX Version 7.1.3 Release Notes 29

minus sign or decimal point is encountered it is escaped (for example, preceded

by a backslash (\)) as a precaution. If any non-alphanumeric character is

encountered, and filtering is not disabled, a message is entered into the

appropriate log file (/usr/OV/log/nvcorrd.alog, /usr/OV/log/ovactiond.log, and

/usr/OV/log/nvaction.alog).

The user can customize this behavior by using an environment variable called

AdditionalLegalTrapCharacters. If the user sets this variable to disable, then no

filtering is done. If the user sets this environment variable to a string containing

non alphanumeric characters, then the filtering will allow those characters to also

pass through the filter, but they are escaped. The best method for setting an

environment variable for an ovspmd controlled daemon is to put the definition of

the environment variable into the /usr/OV/bin/netnmrc.pre file, then stop and

restart all the daemons (using netnmrc to restart).

 

Fawad

 

-----Original Message-----
From: Pritesh Jewan [mailto:owner-nv-l@lists.us.ibm.com] On Behalf Of Pritesh Jewan
Sent:
Monday, December 01, 2003 10:55 AM
To: nv-l@lists.us.ibm.com
Subject: RE: [nv-l] Netview ruleset question

 

Hi Fawad,

 

Thanks for that tip on removing the /'s

 

Do you know how I can prevent Netview from changing the / to an underscore(_)? It changes ATM2/0.100-aal5  to ATM2_0\.100\-aal5 and it's also changing values like

Intel(R) PRO Adapter to Intel_R_ ?

 

Do you know what the AdditionalLegalTrapCharacter environment variable is for and will it help with my problem above?

 

Thank You

Pritesh 

 


From: owner-nv-l@lists.us.ibm.com on behalf of Qureshi, Fawad
Sent: Mon 12/1/2003 5:41 PM
To: 'nv-l@lists.us.ibm.com'
Subject: RE: [nv-l] Netview ruleset question

Pritesh,

 

Netview adds \ for security reasons. You can drop them in Perl with following line:

 

$NVATTR_3 =~ s/\\\//g;

 

Cheers

 

Fawad Qureshi

Division of Network Engineering - SSA / RSIS

410-965-4413

 

 

-----Original Message-----
From: owner-nv-l@lists.us.ibm.com [mailto:owner-nv-l@lists.us.ibm.com] On Behalf Of Pritesh Jewan
Sent: Monday, December 01, 2003 9:25 AM
To: nv-l@lists.us.ibm.com
Subject: [nv-l] Netview ruleset question

 

Hi List,

 

Environment: Netview V7.1.4 on Redhat Advanced Server2.1

 

I am trying to pass trap variables in the action node of my ruleset to an external script(the script is a perl script). I call the script using the action node and <full path>scriptname "$NVE" "$NVA" "$NVT" "$NVATTR_1" "$NVATTR_2" "$NVATTR_3". When I print out the variables passed to the script I noticed that some of the variables have been slightly modified. As an example if I get an event for an ATM interface that has gone down, the event appears correctly in the event desk(Interface ATM2/0.100-aal5 down) but when my script prints this variable out to a file it is as follows:

 

ATM2_0\.100\-aal5 down

 

I was hoping to use the interface information to get certain mib variables before doing a wpostzmsg to tec. But the slight modifications to the variables is causing problems as I can't correlate the modified variable above with data I get back from the devices using snmpget's. I tried echo'ing the variables in a shell script (thinking it might be perl causing the problem) but the same thing happens. If I look at the nvaction.alog they also appear "incorrectly" in this trace file. The following is a few lines of the trace file:

 

2003/01/12 13:38:40 : 44 :perl /usr/OV/custom/scripts/test.pl "$NVE" "$NVA" "$NVATTR_1"~2003/01/12 13:40:45~1.3.6.1.4.1.2.6.3.1~6~58916867~346663104~1010692~public~2~regent-iol-elp.impol.local~Interface ATM2/0.100-aal5 down.~172.20.247.17 1070278845 775 1175~openview~regent-iol-elp.impol.local:ATM2/0.100-aal5~172.20.247.17~1175~3~N~3
2003/01/12 13:40:45   ./nl_Actionsvr.C[822] : Varbind contained an illegal character.
Issuing sanitized version of the varbind:
2003/01/12 13:40:45   ./nl_Actionsvr.C[823] : NVATTR_2="regent\-iol\-elp\.impol\.local"
2003/01/12 13:40:45   ./nl_Actionsvr.C[822] : Varbind contained an illegal character.
Issuing sanitized version of the varbind:
2003/01/12 13:40:45   ./nl_Actionsvr.C[823] : NVATTR_3="Interface ATM2_0\.100\-aal5 down\."
2003/01/12 13:40:45   ./nl_Actionsvr.C[822] : Varbind contained an illegal character.
Issuing sanitized version of the varbind:
2003/01/12 13:40:45   ./nl_Actionsvr.C[823] : NVATTR_4="172\.20\.247\.17 1070278845 775 1175"
2003/01/12 13:40:45   ./nl_Actionsvr.C[822] : Varbind contained an illegal character.
Issuing sanitized version of the varbind:
2003/01/12 13:40:45   ./nl_Actionsvr.C[823] : NVATTR_6="regent\-iol\-elp\.impol\.local_ATM2_0\.100\-aal5"
2003/01/12 13:40:45   ./nl_Actionsvr.C[822] : Varbind contained an illegal character.
Issuing sanitized version of the varbind:
2003/01/12 13:40:45   ./nl_Actionsvr.C[823] : NVATTR_7="172\.20\.247\.17"
2003/01/12 13:40:45 : 44 command successful. output data is:
1.3.6.1.4.1.2.6.3.1tivnetview.impol.local2

 

What do the "Varbind contained an illegal character" messages mean? Has anyone else had this problem?

 

Any suggestions/ideas would be greatly appreciated.

 

Regards

Pritesh 

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

Archive operated by Skills 1st Ltd

See also: The NetView Web