Re: snmptrap script...
Well, assuming that where it appears to wrap (at the comment line in line 3 and
at the .188.8.131.52.184.108.40.206.220.127.116.11.0 OctetString line) it really does wrap (so
that the real one has these commands all on one line), I don't see anything
wrong. And in fact, I copied it to my box and tried it. Worked fine using my
NetView address instead of yours, after I fixed the wrap.
Are you sure you have the correct address? If you are on the NetView server
and sending to the NetView server, you could use `hostname` (those are
back-ticks not single quotes) or the actual hostname spelled out rather than the
Tivoli (NetView for UNIX) L3 Support
Gord Michaels <gord_michaels AT HOTMAIL DOT COM> on 08/10/99 01:51:51 PM
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: snmptrap script...
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.
18.104.22.168. Anyone see what my problem is here??
#Uses the Interface Down as a test event - 58916867 (netview6000 enterprise
NVHOST=22.214.171.124 # the netview host
ABOUTHOST=126.96.36.199 # the node the trap is about or from
MYTRAPID=58916867 # Specific trap id (interface down)
ENTERPRISE='.188.8.131.52.184.108.40.206.3' # Netview enterprise
/usr/OV/bin/snmptrap $NVHOST $ENTERPRISE $ABOUTHOST 6 $MYTRAPID 1 \
.220.127.116.11.18.104.22.168.22.214.171.124.0 Integer 14 \
.126.96.36.199.188.8.131.52.184.108.40.206.0 OctetString $ABOUTHOST \
.220.127.116.11.18.104.22.168.22.214.171.124.0 OctetString "This is a snmptrap test script"
.126.96.36.199.188.8.131.52.184.108.40.206.0 OctetString "nill"
Any info appreciated.
Get Your Private, Free Email at http://www.hotmail.com