Paul...
I recently had a similar issue dealing with DLSw traps, trying to get the ip
address of the peer connection..
I passed $A, and *$. to get the hostname of the sender, and the oid
contained the ip of peer connection. This will give you unformatted trap.
-john
-----Original Message-----
From: owner-nv-l@lists.us.ibm.com [mailto:owner-nv-l@lists.us.ibm.com]On
Behalf Of Paul
Sent: Friday, January 30, 2004 6:14 PM
To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] Passing TRAP OID to Perl script?
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
>
>
|