nv-l

snmptrap script...

1999-08-10 13:51:51
Subject: snmptrap script...
From: Gord Michaels <gord_michaels AT HOTMAIL DOT COM>
To: nv-l AT lists.tivoli DOT com
Date: Tue, 10 Aug 1999 10:51:51 PDT
Hello All.

I have wriiten a snmptrap test script as shown below. But it simply will not
work and I get no errors back, the script seems to run fine. There is no
entry in the trapd.log file and of course no event in the Events Display
window. I am executing the script from the Netview Server itself, i.e.
123.29.177.115. Anyone see what my problem is here??

#!/bin/ksh
#Uses the Interface Down as a test event - 58916867 (netview6000 enterprise
trap)

NVHOST=123.29.177.115             # the netview host
ABOUTHOST=123.29.167.22           # the node the trap is about or from
MYTRAPID=58916867                 # Specific trap id (interface down)
ENTERPRISE='.1.3.6.1.4.1.2.6.3'   # Netview enterprise

/usr/OV/bin/snmptrap $NVHOST $ENTERPRISE $ABOUTHOST 6 $MYTRAPID 1 \
        .1.3.6.1.4.1.2.6.3.1.1.2.0 Integer 14  \
        .1.3.6.1.4.1.2.6.3.1.1.3.0 OctetString $ABOUTHOST  \
        .1.3.6.1.4.1.2.6.3.1.1.4.0 OctetString "This is a snmptrap test script"
\
        .1.3.6.1.4.1.2.6.3.1.1.5.0 OctetString "nill"
exit

Any info appreciated.

Gord.




______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


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