Ray,
Here is a script that I have used in the past.
# Set $MANAGER to your NetView Server
# Set $NODE to node that is sending trap
# Set $ENT to Enterprise number of agent, don't forget leading dot
(.1.3.6.1.4.1.....)
# Set $VAR1-4 to the specific variable ID to be sent with the trap (from the
MIB definition)
# NetView doesn't really care what you use for VAR1-4 as long as it starts
with a dot !
# Spaces are required before the backslashes
# You need to customize the event log message to display similar to this :
# Loss of Frame Trap - Port: $1, Severity: $2, Unit type: $3, Slot: $4
MANAGER=
NODE=
ENT=
VAR1=
VAR2=
VAR3=
VAR4=
/usr/OV/bin/snmptrap $MANAGER $ENT $NODE 6 35 0 \
$VAR1 Integer 1 \
$VAR2 Integer 3 \
$VAR3 Integer 35 \
$VAR4 Integer 0
Don Davis
-----Original Message-----
From: Westphal, Raymond [mailto:RWestphal@erac.com]
Sent: Tuesday, July 31, 2001 3:36 PM
To: NV List (E-mail)
Subject: [NV-L] duplicate digital-link trap
Hello Everyone.
NetView 6.0.2 on AIX 4.3.3.4
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: [1]
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.
Ray.
Enterprise Rent-A-Car
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
------------------------------------------------------------------------------
This electronic mail and any files transmitted with it are confidential and are
intended solely for the use of individual or entity to whom they are addressed.
If you are not the intended recipient or the person responsible for delivering
the electronic mail to the intended recipient, be advised that you have
received this electronic mail in error and that any use, dissemination,
forwarding, printing, or copying of this electronic mail is strictly
prohibited. If you have received this electronic mail in error, please
immediately notify the sender by return mail.
|