[Top] [All Lists]

Re: Need advise writing SNMP Automated Action script

To: nv-l@lists.tivoli.com
Subject: Re: Need advise writing SNMP Automated Action script
From: James Shanks <James_Shanks@TIVOLI.COM>
Date: Tue, 26 Oct 1999 09:34:37 -0400
Well, I see what you want to do but there is not way to pull this information
from the trap.  The MIB descriptors are not passed in variables so you can't
access them.   Usually this infromation doesn't change and most vendors use a
different trap when it does.   If Cisco doesn't, then you'll have to do
something else.

Sorry but the current design doesn't give you that.

James Shanks
Tivoli (NetView for UNIX) L3 Support

Eli Gal <elig@BEZEQ.COM> on 10/26/99 08:55:57 AM

Please respond to Discussion of IBM NetView and POLYCENTER Manager on NetView

cc:    (bcc: James Shanks/Tivoli Systems)
Subject:  Need advise writing SNMP Automated Action script

I need to add an Automatic Action shell-script to trapd.conf. The script
needs to retrieve (via snmpget) a specific entry in the object's locIfDescr
private MIB table.
My problem is that the only reference to the specific offset in the
locIfDescr table is mentioned by the "MIB leafs" of the trap, thus I don't
know how to pass it as a parameter to my script.

As an example, the following are the arguments passed by the trap. In this
specific example, I need to snmpget locIfDescr.49
How do I pass this 49 pointer to my script?

Mon Oct 25 12:17:20 1999 Cisco_3660_Router u Trap: generic 6 specific 3 args
 [1] sdlcLSOperEntry.sdlcLSOperState.49.193 (Integer): 1
 [2] sdlcLSAdminEntry.sdlcLSAdminState.49.193 (Integer): 2
 [3] sdlcLSOperEntry.sdlcLSOperLastFailTime.49.193 (Ticks): 173453925
 [4] sdlcLSOperEntry.sdlcLSOperLastFailCause.49.193 (Integer): 4
 [5] sdlcLSOperEntry.sdlcLSOperLastFailFRMRInfo.49.193 (OctetString):
 [6] sdlcLSOperEntry.sdlcLSOperLastFailCtrlIn.49.193 (OctetString): F1
 [7] sdlcLSOperEntry.sdlcLSOperLastFailCtrlOut.49.193 (OctetString): 71
 [8] sdlcLSOperEntry.sdlcLSOperLastFailREPLYTOs.49.193 (Counter): 82070

Eli Gal - elig@bezeq.com
Bezeq - the Israeli Telecommunications Corp.
Ramat Gan, Israel
tel: +972-3-5.763.763
fax: +972-3-5.763.793

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

Archive operated by Skills 1st Ltd

See also: The NetView Web