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
and pass that to an ACTION NODE that points to my script and also passes
the following fields, as the online HELP staes I can do..
/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
OIT Systems & Networking
Princeton University
|