64-Bit Counters
Moderators: Developers, Moderators
-
- Posts: 38
- Joined: Mon Feb 16, 2004 2:01 pm
- Location: Westland, MI
64-Bit Counters
I was stupid and made all of my graphs using 32-bit counters. I would like to convert all of my GigE links to use 64-bit counters (or just everything, if it's easier -- but no real point in converting 100baseT links is there?)
What is the easiest way to do this, preferably without losing any data?
Also, how can I be certain that 64-bit counters are supported by my devices BEFORE I do this? The devices in question are primarily Cisco 3550 and 2950 switches...
Thanks in advance for the help!
What is the easiest way to do this, preferably without losing any data?
Also, how can I be certain that 64-bit counters are supported by my devices BEFORE I do this? The devices in question are primarily Cisco 3550 and 2950 switches...
Thanks in advance for the help!
-
- Posts: 38
- Joined: Mon Feb 16, 2004 2:01 pm
- Location: Westland, MI
Usually interfaces faster than (or equal) 100Mb do have 64-bit counters available via SNMPv2 requests. You can check by yourself by using command:
You will see the counters for some of your interfaces (look at the last number in OID - this is interface index). You can look at interface index mapping by reading ifDescr object instead. Notice that you can't assume all interfaces having 64-bit counters even on device supporting them. Slower interfaces like Ethernet, Serial, BRI do not have such counters.
- Piotr
Code: Select all
snmpwalk -v2c -c <community> <hostname> ifHCInOctets
- Piotr
Changing the hosts is easy, just change the SNMP version of the polling host/device on the global level. The difficulty is in changing the MIB variable that is being polled.
The only way that I've been able to find to change the MIB variable being is to make changes directly to the database. Then again, I think I have a corrupted database now, so you might not want to follow my example.....
Mike
The only way that I've been able to find to change the MIB variable being is to make changes directly to the database. Then again, I think I have a corrupted database now, so you might not want to follow my example.....
Mike
-
- Posts: 38
- Joined: Mon Feb 16, 2004 2:01 pm
- Location: Westland, MI
Ok, so how do I change all the hosts on the global level?Lux wrote:Changing the hosts is easy, just change the SNMP version of the polling host/device on the global level. The difficulty is in changing the MIB variable that is being polled.
Yikes. Sounds painful. Sounds like I'm better off starting fresh, losing data.Lux wrote:The only way that I've been able to find to change the MIB variable being is to make changes directly to the database. Then again, I think I have a corrupted database now, so you might not want to follow my example.....
-
- Posts: 38
- Joined: Mon Feb 16, 2004 2:01 pm
- Location: Westland, MI
Hmm... Now I seem to be having problems with 64-bit counters working on my Cisco 2950 switches. They are running the proper IOS that supports 64-bit counters, but it's like cacti is selecting the wrong SNMP Index # for the data source for some reason.
When I do a manual 'snmpget' for the 64-bit OID that cacti is trying to poll, I get "No Such Instance Currently Exists At This OID". But if I manually increase the index number by a few and try it manually with snmpget, I get a Counter64 value back (don't know if it's for the interface I'm interested in, though).
Just for sanity's sake, I modeled the same exact switch (and several others, all 2950s) on my "development" cacti server and it exhibited the same behavior. Any idea why this would be? I modeled it from scratch on the development server (yes, I chose SNMPv2), selected the "Create Graphs" link, selected "In/Out Bits (64-bit counters)" at the bottom, selected two GigE interfaces and clicked Create but I get graphs with no data ("nan") as well as the following from cactid (grep'd for the IP):
[18] SNMP v2: 172.25.74.11, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1, value: 1
[18] SNMP v2: 172.25.74.11, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.26, value: No Such Instance currently exists at this OID
[18] SNMP v2: 172.25.74.11, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.26, value: No Such Instance currently exists at this OID
[18] SNMP v2: 172.25.74.11, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.25, value: No Such Instance currently exists at this OID
[18] SNMP v2: 172.25.74.11, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.25, value: No Such Instance currently exists at this OID
And then this at the end...
----- Poll complete. (Polling Time: 0.691896s) -----
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
ERROR: expected 2 data source readings (got 1) from N:No:...
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.05
ERROR: expected 2 data source readings (got 1) from N:No:...
OK u:0.01 s:0.01 r:1.05
OK u:0.01 s:0.01 r:1.05
OK u:0.01 s:0.01 r:1.05
OK u:0.01 s:0.01 r:1.05
OK u:0.01 s:0.01 r:1.05
OK u:0.01 s:0.01 r:1.05
OK u:0.01 s:0.01 r:1.05
My 3550's seem to work fine w/64-bit counters. Not sure what to do.
When I do a manual 'snmpget' for the 64-bit OID that cacti is trying to poll, I get "No Such Instance Currently Exists At This OID". But if I manually increase the index number by a few and try it manually with snmpget, I get a Counter64 value back (don't know if it's for the interface I'm interested in, though).
Just for sanity's sake, I modeled the same exact switch (and several others, all 2950s) on my "development" cacti server and it exhibited the same behavior. Any idea why this would be? I modeled it from scratch on the development server (yes, I chose SNMPv2), selected the "Create Graphs" link, selected "In/Out Bits (64-bit counters)" at the bottom, selected two GigE interfaces and clicked Create but I get graphs with no data ("nan") as well as the following from cactid (grep'd for the IP):
[18] SNMP v2: 172.25.74.11, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1, value: 1
[18] SNMP v2: 172.25.74.11, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.26, value: No Such Instance currently exists at this OID
[18] SNMP v2: 172.25.74.11, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.26, value: No Such Instance currently exists at this OID
[18] SNMP v2: 172.25.74.11, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.25, value: No Such Instance currently exists at this OID
[18] SNMP v2: 172.25.74.11, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.25, value: No Such Instance currently exists at this OID
And then this at the end...
----- Poll complete. (Polling Time: 0.691896s) -----
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
ERROR: expected 2 data source readings (got 1) from N:No:...
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.04
OK u:0.01 s:0.00 r:1.05
ERROR: expected 2 data source readings (got 1) from N:No:...
OK u:0.01 s:0.01 r:1.05
OK u:0.01 s:0.01 r:1.05
OK u:0.01 s:0.01 r:1.05
OK u:0.01 s:0.01 r:1.05
OK u:0.01 s:0.01 r:1.05
OK u:0.01 s:0.01 r:1.05
OK u:0.01 s:0.01 r:1.05
My 3550's seem to work fine w/64-bit counters. Not sure what to do.
-
- Posts: 38
- Joined: Mon Feb 16, 2004 2:01 pm
- Location: Westland, MI
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Are you using SNMPv2 or SNMPv1?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Who is online
Users browsing this forum: No registered users and 3 guests