nv-l

Re: Need advise writing SNMP Automated Action script

1999-10-26 09:34:37
Subject: Re: Need advise writing SNMP Automated Action script
From: James Shanks <James_Shanks AT TIVOLI DOT COM>
To: nv-l AT lists.tivoli DOT 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 AT BEZEQ DOT COM> on 10/26/99 08:55:57 AM

Please respond to Discussion of IBM NetView and POLYCENTER Manager on NetView
      <NV-L AT UCSBVM.UCSB DOT EDU>

To:   NV-L AT UCSBVM.UCSB DOT EDU
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
(8):
 [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 AT bezeq DOT 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>