Query working in snmp1 but not snmp2

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
xney
Posts: 3
Joined: Thu Mar 02, 2006 8:42 pm

Query working in snmp1 but not snmp2

Post by xney »

I'm querying a NetScaler. snmpwalk does not have any problems walking the table. I have to do an index regexp in order to get the indexes because NetScaler indexes this table by a alphabet->number conversion.

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>
All the fields except VserverName return successfully in version 1 or version 2. It just can't see to get a table list or something in the .1 names.

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]
If I switch it to version 1, with no other changes, I get:

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]
I'm stumped. Any ideas?

-Karl
xney
Posts: 3
Joined: Thu Mar 02, 2006 8:42 pm

Post by xney »

I'm running cacti 0.8.6h if that matters
xney
Posts: 3
Joined: Thu Mar 02, 2006 8:42 pm

Post by xney »

bump.

anybody have any ideas?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests