snmp v2 interface query on cisco
Moderators: Developers, Moderators
snmp v2 interface query on cisco
I can't get an interface statistics with snmp v2 from a cisco switch.
It works well with v1 but i need v2 for 64 bit counters.
My Cisco snmpv2 config:
snmp-server group group-name v2c
snmp-server community cname RO
snmp-server user username group-name v2c
######
I think this configuration works, because i get the right values with:
snmpwalk -v 2c -c cname xxx.xxx.xxx.xxx .1.3.6.1.2.1.31.1.1.1.6
But i did't get ANY information with cacti
Maybe someone has a addin od idea for a cisco 6500 switch which allows to graph the interface traffic?
It works well with v1 but i need v2 for 64 bit counters.
My Cisco snmpv2 config:
snmp-server group group-name v2c
snmp-server community cname RO
snmp-server user username group-name v2c
######
I think this configuration works, because i get the right values with:
snmpwalk -v 2c -c cname xxx.xxx.xxx.xxx .1.3.6.1.2.1.31.1.1.1.6
But i did't get ANY information with cacti
Maybe someone has a addin od idea for a cisco 6500 switch which allows to graph the interface traffic?
Thats the debug information with v2 when i turn on v1 --> save and do the same again it works!
And how can i change this, because thats no 64 bit counter
Code: Select all
Data Query Debug Information
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
Code: Select all
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
The list of indices should not be affected whether you use v1 or v2c. As long as the XML files contains <fields> for 64 bit values that should do. Are you using the standard cacti interface.xml or a user xml file?
What does an snmpwalk (v1 and v2c) with OID = .1.3.6.1.2.1.2.2.1.1 return (when running from cli)?
Reinhard
What does an snmpwalk (v1 and v2c) with OID = .1.3.6.1.2.1.2.2.1.1 return (when running from cli)?
Reinhard
on a semi-related note, how do I know if I should be using 64 bit counters for a particular device? I've been using 32 for everything and it all appears to be working fine.
cacti 0.8.6h | cactid 0.8.6g
mysql 4.1.16 | net-snmp 5.1.2-11 | rrdtool 1.0.50 | apache 2.2.0 | php 5.1.2 | RHEL AS rel. 4 kernel 2.6.9-22.ELsmp
mysql 4.1.16 | net-snmp 5.1.2-11 | rrdtool 1.0.50 | apache 2.2.0 | php 5.1.2 | RHEL AS rel. 4 kernel 2.6.9-22.ELsmp
I need 64 Bit Counter, because i want to monitor some 1GB and 4 10GB Interfaces.
I tried it with the standard xml file and i createt e 2nd one. There i deleted every entry from the standard-file which are not 64 Bit. And the same:
NO SNMP Data Returned.
I have to use v2 but i only get interface information with v1. But a Query on the CLI returns the right values!
With SNMPV2 i only get the switch information.
edit:
I isntalled cacti and the os (fc4) new
Now i get some interface information with snmpv2 but it don't work with 64bit.
I mad a copy of the interface.xml file an deletet "everything" excepted the two oids .1.3.6.1.2.1.31.1.1.1.6 and 10
But it won't run:
Here is an example:
I hope someone know how to monitor with 64 bit counters
I don't know what to do!
regards pippi
I tried it with the standard xml file and i createt e 2nd one. There i deleted every entry from the standard-file which are not 64 Bit. And the same:
NO SNMP Data Returned.
I have to use v2 but i only get interface information with v1. But a Query on the CLI returns the right values!
With SNMPV2 i only get the switch information.
edit:
I isntalled cacti and the os (fc4) new
Now i get some interface information with snmpv2 but it don't work with 64bit.
I mad a copy of the interface.xml file an deletet "everything" excepted the two oids .1.3.6.1.2.1.31.1.1.1.6 and 10
But it won't run:
Here is an example:
Code: Select all
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface64.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.31.1.1.1.6'
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
I don't know what to do!
regards pippi
Who is online
Users browsing this forum: No registered users and 0 guests