SNMPWALK an arbitrary OID against Index Values

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
adhillon
Posts: 8
Joined: Thu Mar 05, 2015 1:25 am

SNMPWALK an arbitrary OID against Index Values

Post by adhillon »

Hi, I was trying to snmpwalk an arbitrary OID against the Index value.
Index Outputs are the IP addresses as given below:

Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.4.21.1.1' Index Count: 30
+ Index found at OID: 'ipRouteDest.0.0.0.0' value: '0.0.0.0'
+ Index found at OID: 'ipRouteDest.127.0.0.0' value: '127.0.0.0'
+ Index found at OID: 'ipRouteDest.127.0.0.1' value: '127.0.0.1'
+ Index found at OID: 'ipRouteDest.127.255.255.255' value: '127.255.255.255'
+ Index found at OID: 'ipRouteDest.192.168.9.0' value: '192.168.9.0'
+ Index found at OID: 'ipRouteDest.192.168.9.67' value: '192.168.9.67'
+ Index found at OID: 'ipRouteDest.192.168.9.72' value: '192.168.9.72'
+ Index found at OID: 'ipRouteDest.192.168.9.255' value: '192.168.9.255'
+ Index found at OID: 'ipRouteDest.224.0.0.0' value: '224.0.0.0'
+ Index found at OID: 'ipRouteDest.255.255.255.255' value: '255.255.255.255'


Now, these IP Addresses to be SNMP walked for an given OID. How to do that.
I am trying to do this using SNMP XML query, but no results. Please help.
adhillon
Posts: 8
Joined: Thu Mar 05, 2015 1:25 am

Re: SNMPWALK an arbitrary OID against Index Values

Post by adhillon »

Is there any way to snmpwalk an non-indexed OID on the values received from index.
adhillon
Posts: 8
Joined: Thu Mar 05, 2015 1:25 am

Re: SNMPWALK an arbitrary OID against Index Values

Post by adhillon »

Hi, That was informative. But that's not helping me, or may be i am not getting it.
Really appreciate your help.
As in my first post, i mentioned the indexed oid returns the IP addresses. now, i want to snmpwalk (for each of those IPs) an OID which is non-indexed, or you may say only run with with index as '0'.
So i am able to get the IP values from the Index OID, but unable to walk that OID for each of IP addresses. How to do that.
I've gone through many of docs, but no clue.
Thank you.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: SNMPWALK an arbitrary OID against Index Values

Post by BSOD2600 »

Ah, the index IS the IP. That'll require a different Regex to parse it off instead of 'fakig' the .0 as done in the linked example. There is a great example for the snmp interface template (in cacti\snmp\interface.xml) which does exactly that.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests