The + sign is certainly helpful when you know there is only one subid and you always want the first one. As a tangent, does anyone have a good strategy for capturing more than one dynamic subid?
For example, I have a device that puts its CPU utilization into a single table with multiple indexes, but the indexes change from reboot to reboot and are different for each box. So if I walk an OID (this is a fake one for illustration) like .1.3.6.1.4.1.9999.1.1 I will get back three results: .1.3.6.1.4.1.9999.1.1.700 = CPU #1 .1.3.6.1.4.1.9999.1.1.4888 = CPU #2 .1.3.6.1.4.1.9999.1.1.49499 = CPU #3 On the next box, or after a reboot, it could look something like this: .1.3.6.1.4.1.9999.1.1.533 = CPU #2 .1.3.6.1.4.1.9999.1.1.3993 = CPU #1 .1.3.6.1.4.1.9999.1.1.9832 = CPU #3 I know the element has to have some logic on how it assigns those indexes, but it certainly isn't apparent to me. So how would you use the OID syntax in the probe to grab those sub-ids when there are more than one of them and they change both index and order? I've solved it by using perl with Net::SNMP and command line probes, but that certainly takes much longer than just specifying the variables in the probe. Thoughts? -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of IM-Talk-Forum Sent: Thursday, November 12, 2009 3:07 PM To: [email protected]; [email protected] Subject: [IM-Talk] Re: "I'll tell you where you can put this probe..." wombat wrote: > Getting a little frustrated with an OID which keeps changing. I am trying to > put a script together for Ubiquiti AirOS devices. The only problem is that their OIDs are dynamic. I'm trying to monitor some IEEE802.11 MIB variables. Try using '+' syntax. If you place a '+' at the end of an OID, InterMapper will match the next OID that logically follows. Here's an example where I've added +'s to the end of the OID's in the second column. This should work no matter what the final subid is (7, 8, 10, etc.) Code: <snmp-device-variables> iso_2_840_10036_3_1_2_1_3_7, iso.2.840.10036.3.1.2.1.3+, DEFAULT, "iso.2.840.10036.3.1.2.1.3.7" iso_2_840_10036_3_1_2_1_4_7, iso.2.840.10036.3.1.2.1.4+, DEFAULT, "iso.2.840.10036.3.1.2.1.4.7" iso_2_840_10036_1_1_1_1_7, iso.2.840.10036.1.1.1.1+, DEFAULT, "iso.2.840.10036.1.1.1.1.7" iso_2_840_10036_1_1_1_9_7, iso.2.840.10036.1.1.1.9+, DEFAULT, "iso.2.840.10036.1.1.1.9.7" </snmp-device-variables> -- Bill Fisher Dartware, LLC -------------------- m2f -------------------- Read this topic online here: http://forums.dartware.com/viewtopic.php?p=1923#1923 ____________________________________________________________________ List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/ To unsubscribe: send email to: [email protected] ____________________________________________________________________ List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/ To unsubscribe: send email to: [email protected]
