Re: duplicate digital-link trap

2001-07-31 16:22:53
Subject: Re: duplicate digital-link trap
From: "James Shanks" <SHANKS AT us.tivoli DOT com>
To: nv-l AT lists.tivoli DOT com
Date: Tue, 31 Jul 2001 16:22:53 -0400
I suspect that you are confused because the trap is partly defined, and
partly not.
Look in trapd.conf to determine the oid of "digital-link".  That's the
enterprise id.  You have that enteroises defined but not the specific trap.
You don't really need to translate things like
unitEventEntry.unitEventOriginPortNum into their OIDs unless you simply
want to.
trapd doesn't care what OID's the variables use as long as they look good,
as the following script will show.
You can use the MIB Browser to browse what MIBs you have loaded for this
device -- that's where trapd learned to translate what was in the trap to
an entry like unitEventEntry.unitEventOriginPortNum.

Actually even the ruleset would be easier to define if you define the trap
in trapd.conf FIRST.
You need to add specific trap 35 under the digital-link enterprise.
Here's the snmptrap script

# ndwn.trap.sh
# sample shell script to send a replica Node down trap
# we are not setting the port (it defaults to 162 udp)
# the community name will default to public  but it doesn't matter
# as trapd doesn't care what one you use but
# you can configure the Log message to show $C and see what it is.
# the first hostname is the trapd destination -- your box
# the second hostname is the agent sending the trap -- it cannot  be bogus
/usr/OV/bin/snmptrap   \
  `hostname`  <digital-link OID starting with .>  \
  <your.digital.box>  6 35  1 \
.1.1.0  Integer 1  \
.1.2.0  Integer 3  \
.1.3.0  Integer 35  \
.1.4.0  Integer 0

James Shanks
Team Leader, Level 3 Support
Tivoli NetView for UNIX and NT

"Westphal, Raymond" <RWestphal AT erac DOT com>@tkg.com on 07/31/2001 03:36:12 

Please respond to IBM NetView Discussion <nv-l AT tkg DOT com>

Sent by:  owner-nv-l AT tkg DOT com

To:   "NV List (E-mail)" <nv-l AT tkg DOT com>
Subject:  [NV-L] duplicate digital-link trap

Hello Everyone.

NetView 6.0.2 on AIX

I'm trying to replicate a trap I received from a Digital Link DL3800 T1
inverse multiplexer. The trap indicates the type of failure and the
particular T1 that failed.
If I can get the snmptrap command to work, I can test a ruleset that will
page on call personnel and change the object status on the map.
Here's the trap entry from the /usr/OV/log/trapd.log file. The T1 on port 1
failed (arg 1). The type of event was a loss of frame (arg 3).

996564159  7  Tue Jul 31 02:22:39 2001 host A digital-link 6 35 4 args:
unitEventEntry.unitEventOriginPortNum.0 (Integer): 1
996564159  7  Tue Jul 31 02:22:39 2001  host A  [2]
unitEventTable.unitEventEntry.unitEventSeverity.0 (Integer): 3
996564159  7  Tue Jul 31 02:22:39 2001  host A  [3]
unitEventTable.unitEventEntry.unitEventType.0 (Integer): 35
996564159  7  Tue Jul 31 02:22:39 2001  host A  [4]
unitLevel.unitLevelConfig.unitShelfSlotNum.0 (Integer): 0

I have successfully duplicated NetView traps in the past but I cannot
determine how to use snmptrap to duplicate the trap. Can someone offer some
suggestions, please?

Thanks in advance.

Enterprise Rent-A-Car

NV-L List information and Archives: http://www.tkg.com/nv-l

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