nv-l

Re: [nv-l] Passing TRAP OID to Perl script?

2004-01-30 18:35:08
Subject: Re: [nv-l] Passing TRAP OID to Perl script?
From: Paul <pstroud AT bellsouth DOT net>
To: nv-l AT lists.us.ibm DOT com
Date: Fri, 30 Jan 2004 18:13:58 -0500
I cant find the doc, but $[1-x] will give you
any of the variables with the trap, $T timestamp,
$A agent, $C community, $G generic, $S specfic
I believe there are others but thats off the top
of my head, oh yeah $E enterprise.

Paul


Jeff Fitzwater wrote:
SOL 2.8
NV 7.1.4
When I recieve a BGP TRAP when a peering session changes STATE, I need
to not only get the value but the OID itself, which contains the peer
host IP.

I know how to get it in the LOG but don't understand how to pass the OID
itself directly to a script.  If its even possible.

I have been trying different things with COMMAND FOR AUTOMATIC ACTION in
trap event setup, but can't figure it out.



Thanks for any help.


Jeff Fitzwater
OIT Systems & Networking
Princeton University




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