RE: [NV-L] Snmpget vs wsnmpget
2006-07-14 11:17:43
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
"Zoeckler, Eric A."
<Eric.Zoeckler AT us.ngrid DOT com>
Sent by: nv-l-bounces AT lists.ca.ibm DOT com
07/14/2006 09:46 AM
Please respond to
Tivoli NetView Discussions <nv-l AT lists.ca.ibm DOT com> |
|
To
| "Tivoli NetView Discussions"
<nv-l AT lists.ca.ibm DOT com>
|
cc
|
|
Subject
| RE: [NV-L] Snmpget vs wsnmpget |
|
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 AT us.ngrid DOT com
-----Original Message-----
From: nv-l-bounces AT lists.ca.ibm DOT com [mailto:nv-l-bounces AT lists.ca.ibm DOT 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 AT lists.ca.ibm DOT com>
Sent by:
cc
nv-l-bounces@list
<nv-l AT lists.ca.ibm DOT 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 AT lists.ca DOT 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 AT us.ngrid DOT 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 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)
_______________________________________________
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)
_______________________________________________
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)
_______________________________________________
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)
|
|
|