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 From: nv-l-bounces@lists.ca.ibm.com [mailto:nv-l-bounces@lists.ca.ibm.com] On Behalf Of sudha g Sent: Thursday, July 05, 2007 9:21 AM To: Tivoli NetView Discussions Subject: [NV-L] netcheck and nvsniffer 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@lists.ca.ibm.com Unsubscribe:NV-L-leave@lists.ca.ibm.com http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to internal IBM'ers only) |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | RE: [NV-L] TCP Port monitoring for particular hosts, Senthil Kumar Mani |
---|---|
Next by Date: | RE: [NV-L] netcheck and nvsniffer, Leslie Clark |
Previous by Thread: | [NV-L] netcheck and nvsniffer, sudha g |
Next by Thread: | RE: [NV-L] netcheck and nvsniffer, Leslie Clark |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web