nv-l
[Top] [All Lists]

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

To: <nv-l@lists.us.ibm.com>
Subject: RE: [nv-l] Passing TRAP OID to Perl script?
From: "John and Leizyl" <johnsobrinho@rogers.com>
Date: Sun, 1 Feb 2004 12:12:56 -0500
Delivery-date: Sun, 01 Feb 2004 17:28:31 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Importance: Normal
In-reply-to: <003e01c3e821$868dca70$2302a8c0@domain.zen.com>
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
sorry paul...

should be $A; $*

cheers
john
IP development RBC



-----Original Message-----
From: owner-nv-l@lists.us.ibm.com [mailto:owner-nv-l@lists.us.ibm.com]On
Behalf Of John and Leizyl
Sent: Saturday, January 31, 2004 12:42 PM
To: nv-l@lists.us.ibm.com
Subject: RE: [nv-l] Passing TRAP OID to Perl script?


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
>
>


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

Archive operated by Skills 1st Ltd

See also: The NetView Web