To: | Netview <nv-l@lists.us.ibm.com> |
---|---|
Subject: | [nv-l] Passing OID from TRAP to script??? |
From: | Jeff Fitzwater <jfitz@princeton.edu> |
Date: | Mon, 02 Feb 2004 17:08:13 -0500 |
Delivery-date: | Mon, 02 Feb 2004 22:15:45 +0000 |
Envelope-to: | nv-l-archive@lists.skills-1st.co.uk |
Organization: | OIT Systems & Networking |
Reply-to: | nv-l@lists.us.ibm.com |
Sender: | owner-nv-l@lists.us.ibm.com |
Netview 7.1.4
Sol 2.8 I need to extract the OID from a BGP trap that contains an IP address. I set up a RULSET to pass the BGP trap GENERIC 6 SPECIFIC
2
/tmp/bin/testtrap $-1 $-2 $-3 $NVA NOTE: I have tried many different values and formats here with no luck. I use the following to TEST the trap... snmptrap 128.112.x.x .1.3.6.1.2.1.15 router1 6 2 0 .1.3.6.1.2.1.15.3.1.128.112.152.173 integer 6 As you; can see I am only passing one variable (.1.3.6.1.2.1.15.3.1.128.112.152.173) with a value of 6 This sends the peering status for the stated peer. The script that runs extracts all ENV variables and ARGs passed and puts them in a file . I get the NVA passes as an ARGs and NO other information. I get NVA, E, T, etc. NVATTR_1 etc. as ENVs
vars if they exits, but NO BGP OID for
the variable, which contains the IP of the peer that failed.
IF I use the COMMAND FOR AUTOMATIC ACTION and pass everything as AGRUMENTS as I did with the RULESET, I DO get the OID. So the RULSET fails but the AUTOMATIC ACTION works.
Q. Is there a way to pass/ extract the OID via RULESET or does OVACTIONd strip this stuff out? Can I only get it by using the COMMAND FOR AUTOMATIC ACTION
under EVENT CONFIGURATION?
Thanks for any help.
Jeff Fitzwater
|
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [nv-l] SNMPv2, James Shanks |
---|---|
Next by Date: | Re: [nv-l] Event Correlation at NetView, nraaman |
Previous by Thread: | [nv-l] xnmsnmpconf, reamd |
Next by Thread: | Re: [nv-l] Passing OID from TRAP to script???, James Shanks |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web