nv-l

Re: snmptrap script...

1999-08-10 19:01:14
Subject: Re: snmptrap script...
From: Geoffrey Cheng <gcheng AT CA.IBM DOT COM>
To: nv-l AT lists.tivoli DOT com
Date: Tue, 10 Aug 1999 19:01:14 -0400
Hi, Gord,

     I think snmptrap will by default sent traps to udp 162. If you for some
reason has
     changed  the listening port for trapd in /etc/services, you need to specify
      -p [port number] in your snmptrap command to have trapd capture your trap.
     Please check the /etc/services file for the configured trapd port.



Best Regards

Geoffrey Cheng
e-mail: gcheng AT ca.ibm DOT com



Gord Michaels <gord_michaels AT HOTMAIL DOT COM> on 08/10/99 03:21:12 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:
Subject:  Re: snmptrap script...





Hmmmm... thanks for the response.

This is weird. The wraps only appear in this email, everything is OK in the
actual script. I tried using the actual hostname... no luck. I run the
script, it executes for a second, and then gives me my prompt back. Seems
OK, but nothing shows up in trapd.log, but it worked fine for you...
strange.

Well, anyone else with any ideas??

Gord.

>From: James Shanks <James_Shanks AT TIVOLI DOT COM>
>Reply-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
>Subject: Re: snmptrap script...
>Date: Tue, 10 Aug 1999 14:37:31 -0400
>
>Well, assuming that where it appears to wrap (at the comment line in line 3
>and
>at the .1.3.6.1.4.1.2.6.3.1.1.4.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
>ip address.
>
>James Shanks
>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...
>
>
>
>
>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


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


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