snmptrap script question...

1999-12-09 14:08:54
Subject: snmptrap script question...
From: Gord Michaels <gord_michaels AT HOTMAIL DOT COM>
To: nv-l AT lists.tivoli DOT com
Date: Thu, 9 Dec 1999 11:08:54 PST
Hello All.

I have been writing this short snmptrap script to generate a netview6000
enterprise node down event:


# Script which will send a node down event...

/usr/OV/bin/snmptrap nv6000 . SCR3 6 58916865 1 4 \
. Integer 14 \
. OctetString "SOME_ROUTER" \
. OctetString "TEST ONLY - Node Down." \
. OctetString "Test Only"

My questions are:

1. I am not quite sure, but I think the '4' at the end of the first line
will indicate the number of variables/arguments sent with the trap? (I took
most of this from an example I seen somewhere else.)

2. After each trap variable OID, should I have a ".0", i.e.
. instead of just . ?

3. For traps other than enterprise netview6000, say enterprise
.x.x.x.x.x.x.x.x.x, do the variables/arguments follow the same pattern,

.x.x.x.x.x.x.x.x.x.1.1.2 = variable #1
.x.x.x.x.x.x.x.x.x.1.1.3 = variable #2
.x.x.x.x.x.x.x.x.x.1.1.4 = variable #3
.x.x.x.x.x.x.x.x.x.1.1.5 = variable #4

And of course, if the netview6000 variables require the ".0" at the end then
I assume that others would also.

Any info appreciated.


Gord Michaels.

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

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