I am unable to get the index list using what should be the index table (the ".1" oid) in version 2. It seems to return no entries, just an error. If I switch to snmp v1 it works fine. I'm stumped.
Two queries here, one has the server name (what I want to use for the index) and one has the port:
[root@admin00 ~]# snmpwalk -O n -v 2c -c xxxxx lb1 .1.3.6.1.4.1.5951.4.1.3.1.1.1.8.100.101.118.45.115.105.116.101
.1.3.6.1.4.1.5951.4.1.3.1.1.1.8.100.101.118.45.115.105.116.101 = STRING: "dev-site"
[root@admin00 ~]# snmpwalk -O n -v 2c -c xxxxx lb1 .1.3.6.1.4.1.5951.4.1.3.1.1.3.8.100.101.118.45.115.105.116.101
.1.3.6.1.4.1.5951.4.1.3.1.1.3.8.100.101.118.45.115.105.116.101 = INTEGER: 80
[root@admin00 ~]#
Everything past the ".1.1.1" or ".1.1.3" is the alpha -> numeric index OID.
As you can see, snmpwalk has no problem returning a specific result for either of them. I can also walk the table from the ".1.1.1":
[root@admin00 ~]# snmpwalk -O n -v 2c -c xxxxx lb1 .1.3.6.1.4.1.5951.4.1.3.1.1.1
.1.3.6.1.4.1.5951.4.1.3.1.1.1.7.113.97.45.115.105.116.101 = STRING: "qa-site"
.1.3.6.1.4.1.5951.4.1.3.1.1.1.7.115.115.108.95.118.112.110 = STRING: "ssl_vpn"
.1.3.6.1.4.1.5951.4.1.3.1.1.1.8.100.101.118.45.115.105.116.101 = STRING: "dev-site"
(the number right after .1.1.1 is the length, not that it matters)
I am currently using an xml file which looks like this:
Code: Select all
<oid_index>.1.3.6.1.4.1.5951.4.1.3.1.1.4</oid_index>
<oid_index_parse>OID/REGEXP:^\.1\.3\.6\.1\.4\.1\.5951\.4\.1\.3\.1\.1\.4\.(.*)$</oid_index_parse>
...
<vsIP>
<name>IP</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.5951.4.1.3.1.1.2</oid>
</vsIP>
<vsVserverName>
<name>Name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.5951.4.1.3.1.1.1</oid>
</vsVserverName>
Code: Select all
+ Located input field 'vsVserverName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.5951.4.1.3.1.1.1'
+ Found item [vsVserverName='No Such Instance currently exists at this OID'] index: .1.3.6.1.4.1.5951.4.1.3.1.1.1 [from value]
+ Located input field 'vsVserverPort' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.5951.4.1.3.1.1.3'
+ Found item [vsVserverPort='80'] index: .1.3.6.1.4.1.5951.4.1.3.1.1.3.7.113.97.45.115.105.116.101 [from value]
+ Found item [vsVserverPort='443'] index: .1.3.6.1.4.1.5951.4.1.3.1.1.3.7.115.115.108.95.118.112.110 [from value]
+ Found item [vsVserverPort='80'] index: .1.3.6.1.4.1.5951.4.1.3.1.1.3.8.100.101.118.45.115.105.116.101 [from value]
Code: Select all
+ Located input field 'vsVserverName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.5951.4.1.3.1.1.1'
+ Found item [vsVserverName='qa-site'] index: 1.3.6.1.4.1.5951.4.1.3.1.1.1.7.113.97.45.115.105.116.101 [from value]
+ Found item [vsVserverName='ssl_vpn'] index: 1.3.6.1.4.1.5951.4.1.3.1.1.1.7.115.115.108.95.118.112.110 [from value]
+ Found item [vsVserverName='dev-site'] index: 1.3.6.1.4.1.5951.4.1.3.1.1.1.8.100.101.118.45.115.105.116.101 [from value]
-Karl