Hello All.
I have been writing this short snmptrap script to generate a netview6000
enterprise node down event:
#!/usr/bin/ksh
# Script which will send a node down event...
/usr/OV/bin/snmptrap nv6000 .1.3.6.1.4.1.2.6.3 SCR3 6 58916865 1 4 \
.1.3.6.1.4.1.2.6.3.1.1.2 Integer 14 \
.1.3.6.1.4.1.2.6.3.1.1.3 OctetString "SOME_ROUTER" \
.1.3.6.1.4.1.2.6.3.1.1.4 OctetString "TEST ONLY - Node Down." \
.1.3.6.1.4.1.2.6.3.1.1.5 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.
.1.3.6.1.4.1.2.6.3.1.1.2.0 instead of just .1.3.6.1.4.1.2.6.3.1.1.2 ?
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,
i.e.:
.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.
Sincerely,
Gord Michaels.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
|