To: | nv-l@lists.us.ibm.com |
---|---|
Subject: | Re: [nv-l] Passing OID from TRAP to script??? |
From: | James Shanks <jshanks@us.ibm.com> |
Date: | Tue, 3 Feb 2004 08:24:48 -0500 |
Delivery-date: | Tue, 03 Feb 2004 13:37:51 +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 |
Well, I'm afraid you will have to get rather creative here, because the answers are just what you already expect.
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] Event Correlation at NetView, James Shanks |
---|---|
Next by Date: | Re: [nv-l] xnmsnmpconf, reamd |
Previous by Thread: | [nv-l] Passing OID from TRAP to script???, Jeff Fitzwater |
Next by Thread: | Re: [nv-l] Passing OID from TRAP to script???, Jeff Fitzwater |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web