Re: Need advise writing SNMP Automated Action script
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
Sorry but the current design doesn't give you that.
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
 sdlcLSOperEntry.sdlcLSOperState.49.193 (Integer): 1
 sdlcLSAdminEntry.sdlcLSAdminState.49.193 (Integer): 2
 sdlcLSOperEntry.sdlcLSOperLastFailTime.49.193 (Ticks): 173453925
 sdlcLSOperEntry.sdlcLSOperLastFailCause.49.193 (Integer): 4
 sdlcLSOperEntry.sdlcLSOperLastFailFRMRInfo.49.193 (OctetString):
 sdlcLSOperEntry.sdlcLSOperLastFailCtrlIn.49.193 (OctetString): F1
 sdlcLSOperEntry.sdlcLSOperLastFailCtrlOut.49.193 (OctetString): 71
 sdlcLSOperEntry.sdlcLSOperLastFailREPLYTOs.49.193 (Counter): 82070
Eli Gal - firstname.lastname@example.org
Bezeq - the Israeli Telecommunications Corp.
Ramat Gan, Israel
Archive operated by Skills 1st Ltd
See also: The NetView Web