To: | Tivoli NetView Discussions <nv-l@lists.ca.ibm.com> |
---|---|
Subject: | RE: [NV-L] Snmpget vs wsnmpget |
From: | Leslie Clark <lclark@us.ibm.com> |
Date: | Fri, 14 Jul 2006 11:18:55 -0400 |
Delivery-date: | Fri, 14 Jul 2006 16:17:44 +0100 |
Envelope-to: | nv-l-archive@lists.skills-1st.co.uk |
In-reply-to: | <9C75C49D7A005448A54CA00EA589CEE849A0B2@nyhcbmsg3.na.ngrid.net> |
List-help: | <mailto:nv-l-request@lists.ca.ibm.com?subject=help> |
List-id: | Tivoli NetView Discussions <nv-l.lists.ca.ibm.com> |
List-post: | <mailto:nv-l@lists.ca.ibm.com> |
List-subscribe: | <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=subscribe> |
List-unsubscribe: | <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=unsubscribe> |
Reply-to: | Tivoli NetView Discussions <nv-l@lists.ca.ibm.com> |
Sender: | nv-l-bounces@lists.ca.ibm.com |
You first would define a new, custom trap in the Netview enterprise for this. Specific trap ids from 1000 to 9999 are reserved for customer use. You can do it in the gui (xnmtrap) or with the addtrap command like this: /usr/OV/bin/addtrap -l Netview_App_Failure -g 6 -s 1005 \ -n netView6000 -i 1.3.6.1.4.1.2.6.3 \ -o u -c "Error Events" -t 0 \ -S 4 \ -T \ -D "This trap is generated when a custom application fails." \ -F '$A reported a failure running $4: $3 ' This makes trap 1005 in the Netview enterprise, with the expectation of at least 4 variable bindings. I made this one up for general use in scripts to report errors. And then your script would generate a trap that meets this definition. An example of generating this trap would be: NODE=nodename.domain.com RUN_PROG="my_monitoring_script.sh" /usr/OV/bin/snmptrap 127.0.0.1 .1.3.6.1.4.1.2.6.3.1 $NODE 6 1005 1 \ .1.3.6.1.4.1.2.6.1.1 Integer 14 \ .1.3.6.1.4.1.2.6.1.2 Octetstring "$NODE" \ .1.3.6.1.4.1.2.6.1.3 Octetstring "This is the message in var 3 for custom trap 1005" \ .1.3.6.1.4.1.2.6.1.4 Octetstring "$RUN_PROG" Cordially, Leslie A. Clark IT Services Specialist, Network Mgmt Information Technology Services Americas IBM Global Services (248) 552-4968 Voicemail, Fax, Pager
Francois, Your suggestion to place the dot before the oid worked. Now I must learn to create the script and have it generate a trap. Any pointers? Much thanks! James Shanks, I loaded LOAD-BAL-SYSTEM-MIB and was able to browse the mib with no problem. Thank you Eric Zoeckler IT Analyst - Network Control Center Data Center Operations nationalgrid Eric.Zoeckler@us.ngrid.com -----Original Message----- From: nv-l-bounces@lists.ca.ibm.com [mailto:nv-l-bounces@lists.ca.ibm.com] On Behalf Of Francois Le Hir Sent: Wednesday, July 12, 2006 11:55 AM To: Tivoli NetView Discussions Subject: Re: [NV-L] Snmpget vs wsnmpget Eric, Try to use your netview snmpget with a dot in front of your oid. snmpget -c community string ip address .1.3.6.1.4.1.3375.1.1.61.0 if it still doesn't work, use the oid that you see exist in the output of snmpwalk. I would continue to use a script that I would run every 10 minutes (for example) in a crontab. The script would do the snmpget to each device and compare the result. It can then generate a trap and netview can take action on that trap (execute a script or forward to tec for example) Salutations, / Regards, Francois Le Hir Network Projects & Consulting Services IBM Global Technology Services "Zoeckler, Eric A." <Eric.Zoeckler@us To .ngrid.com> <nv-l-bounces@lists.ca.ibm.com> Sent by: cc nv-l-bounces@list <nv-l@lists.ca.ibm.com> s.ca.ibm.com Subject [NV-L] Snmpget vs wsnmpget 07/12/2006 10:15 AM Please respond to Tivoli NetView Discussions <nv-l@lists.ca.ib m.com> Sorry if this is a repeat, but nv-l went whacky for a while and I was not receiving anything and I don't know if anyone received this email previously. Patform: Netview 7.1.4 FP3 AIX 5.2 Goal: To provide an alert in Netview when both of our F5 Load Balancers are in "active" state at the same time. When OID 1.3.6.1.4.1.3375.1.1.61.0 = 2 (this defines "active") Background: This was previously accomplished using a shell script on an AIX box running Tivoli with Tivoli's wsnmpget command: wsnmpget -h ip address -c community string 1.3.6.1.4.1.3375.1.1.61.0 This command returns: 2 (meaning active) The equivalent command using snmpget on my Netview box is: snmpget -c community string ip address 1.3.6.1.4.1.3375.1.1.61.0 This command returns: snmpget: This variable does not exist: .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.6 .1.4.1.3375.1.1.61.0. If I could get snmpget to work, the next question would be, How do I use this in Netview? snmpwalk works: A search of the output reveals that the above OID is not found. That is, the OID is found but without the ending 61.0 How do I accomplish my goal? Am I barking up the wrong tree? Is there a utility like rulesets or smartsets that can accomplish my goal? Thank you in advance for any guidance you can provide. Eric Zoeckler IT Analyst - Network Control Center Data Center Operations nationalgrid Eric.Zoeckler@us.ngrid.com This e-mail and any files transmitted with it, are confidential to National Grid and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error, please reply to this message and let the sender know. _______________________________________________ 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) _______________________________________________ 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) _______________________________________________ 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) _______________________________________________ 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] Snmpget vs wsnmpget, Francois Le Hir |
---|---|
Next by Date: | [NV-L] Ed Gunnet/Raleigh/IBM is out of the office., Ed Gunnet |
Previous by Thread: | RE: [NV-L] Snmpget vs wsnmpget, Francois Le Hir |
Next by Thread: | [NV-L] [NV] Data Warehouse Custom Reports!, Usman Taokeer |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web