Hello,
Quick question, hope this is the right forum...
We are trying to get specific Cisco IPSLA MIB values:
sh-3.00$ ./snmpwalk -c [cs] [ip] .1.3.6.1.4.1.9.9.42.1.2.19.1.5
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.1.1 = INTEGER: 20
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.1.2 = INTEGER: 5
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.1.3 = INTEGER: 5
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.10411100.1 = INTEGER: 20
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.10411100.2 = INTEGER: 5
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.10411100.3 = INTEGER: 5
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.10412100.1 = INTEGER: 65
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.10412100.2 = INTEGER: 5
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.10412100.3 = INTEGER: 5
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.10413100.1 = INTEGER: 50
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.10413100.2 = INTEGER: 5
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.10413100.3 = INTEGER: 5
Here is a portion of the .xml file:
<name>Get Cisco SAA Stats (ml)</name>
<oid_index>.1.3.6.1.4.1.9.9.42.1.2</oid_index>
<oid_index_parse>OID/REGEXP:.*([0-9]{8})$</oid_index_parse>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<rttMonCtrlAdminThreshold>
<name>MonCtrlAdminThreshold</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.9.9.42.1.2.19.1.5</oid>
</rttMonCtrlAdminThreshold>
How do we fix the above .xml to just get such instances:
SNMPv2-SMI::enterprises.9.9.42.1.2.19.1.5.10411100.1 = INTEGER: 20
The index is correctly derived using: OID/REGEXP:.*([0-9]{8})$
We just need to walk .1.3.6.1.4.1.9.9.42.1.2.19.1.5 with the index and return only the .1 values = 20, 65, 50.
Thank You,
gm20175
Request for help---getting SNMP values using REGEXP.
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
I do not have an exact answer, but some information an SNMP XML Queries, see: http://docs.cacti.net/node/227
Reinhard
Reinhard
Who is online
Users browsing this forum: No registered users and 27 guests