This script will generate a Node Down or Node Up trap
according to the second parameter passed.
#!/bin/bash # Node=${1:-TestTrap} State=${2:-Up} # Create a
state change trap to NetView with the new state /usr/OV/bin/snmptrap -d -c
public "localhost "
".1.3.6.1.4.1.2.6.3" "localhost" "6"
"58916871" "0" ".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" "${Node}"
".1.3.6.1.4.1.2.6.3.1.1.4.0" "OctetString" "Object status is"
".1.3.6.1.4.1.2.6.3.1.1.5.0" "OctetString" "${State}"
".1.3.6.1.4.1.2.6.3.1.1.6.0" "OctetString" "openview"
Bill
Evans (home) 570-639-5691 (cell) 570-852-9549
Hi,
I got some useful commands like nvsniffer and netcheck when i searched this
mailing list.
bash-2.05b# netcheck -o tcpPort=8888 -t tcp 10.16.34.12
The above command is highly useful to chk the status of the ports, but how
to generate traps using this?
Also, what is the difference in using servmon.conf, netcheck and
nvsniffer?
how to generate traps out of this?
I'm using Netview 7.1.4 on Aix 5.2
_______________________________________________
NV-L mailing list
NV-L AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)
|