64-Bit Counters

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

Moderators: Developers, Moderators

Post Reply
JoeNetwork
Posts: 38
Joined: Mon Feb 16, 2004 2:01 pm
Location: Westland, MI

64-Bit Counters

Post by JoeNetwork »

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!
JoeNetwork
Posts: 38
Joined: Mon Feb 16, 2004 2:01 pm
Location: Westland, MI

Post by JoeNetwork »

Erm... while I'm at it, is there an easy way to convert all hosts to SNMPv2 instead of SNMPv1 for polling? :oops:
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Usually interfaces faster than (or equal) 100Mb do have 64-bit counters available via SNMPv2 requests. You can check by yourself by using command:

Code: Select all

snmpwalk -v2c -c <community> <hostname> ifHCInOctets
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
Lux
Cacti User
Posts: 195
Joined: Tue Nov 11, 2003 10:57 am
Location: Luxembourg

Post by Lux »

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
JoeNetwork
Posts: 38
Joined: Mon Feb 16, 2004 2:01 pm
Location: Westland, MI

Post by JoeNetwork »

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.
Ok, so how do I change all the hosts on the global level? :P
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.....
Yikes. Sounds painful. Sounds like I'm better off starting fresh, losing data. :(
JoeNetwork
Posts: 38
Joined: Mon Feb 16, 2004 2:01 pm
Location: Westland, MI

Post by JoeNetwork »

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. :(
JoeNetwork
Posts: 38
Joined: Mon Feb 16, 2004 2:01 pm
Location: Westland, MI

Post by JoeNetwork »

Ok, I figured out my problem.

The 2950G platform does not appear to have 64-bit counters for the GigE interfaces. :evil:

Anyone running Cisco 2950 switches that have 64-bit counters working successfully for the gigabitEthernet 0/x interface(s)?
mondaka
Posts: 18
Joined: Wed Mar 03, 2004 7:47 pm

Post by mondaka »

I have the same problem with cacti 0.8.6d but with version 0.8.5 i didn't.

With version 0.8.5 i got not error while polling 64-bit or 32-bit couters. Meanwhile with version 0.8.6d i cant use 64-bit counters polling with Cisco 3500XL switches. Polling only works with 32-bit counters.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

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]
mondaka
Posts: 18
Joined: Wed Mar 03, 2004 7:47 pm

Post by mondaka »

SNMPv2 in cacti 0.8.5 & 0.8.6d
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests