Polling of SNMPv2c 64 bits counters

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

Moderators: Developers, Moderators

Post Reply
shaban974
Posts: 2
Joined: Wed Dec 10, 2008 6:10 am

Polling of SNMPv2c 64 bits counters

Post by shaban974 »

Hello i have a little problem polling SNMpv2 64 bits counters.
im getting nan while polling a serial interface.

Actually what is happening is that i am not getting any value using the ifHCinOctets oid.

when i run the snmpwalk in command line tought it seems i have some ifindex missing

[user@XXXXX ~]$ snmpwalk -v2c -c "XXXXXX" XXXXXX 1.3.6.1.2.1.2.2.1.10
IF-MIB::ifInOctets.1 = Counter32: 0
IF-MIB::ifInOctets.2 = Counter32: 25719004
IF-MIB::ifInOctets.3 = Counter32: 8351975
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInOctets.6 = Counter32: 0
[user@XXXXX ~]$ snmpwalk -v2c -c "XXXXXX" XXXXXX 1.3.6.1.2.1.31.1.1.1.6
IF-MIB::ifHCInOctets.1 = Counter64: 0
IF-MIB::ifHCInOctets.2 = Counter64: 25717956
IF-MIB::ifHCInOctets.6 = Counter64: 0

[user@XXXXX ~]$ snmpwalk -v2c -c "XXXXXX" XXXXXX iftable
....
IF-MIB::ifDescr.1 = STRING: FastEthernet0/0
IF-MIB::ifDescr.2 = STRING: FastEthernet0/1
IF-MIB::ifDescr.3 = STRING: Serial0/0/0
IF-MIB::ifDescr.4 = STRING: Null0
IF-MIB::ifDescr.6 = STRING: Loopback0
....
So i wonder , is it normal not to have the ifindex for the Serial interface for a SNMPv2C enabled router ?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Many devices (Cisco being one of them) do not support 64-bit counters for certain interfaces - ie: interface with speeds of less than 20 Mbps
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
shaban974
Posts: 2
Joined: Wed Dec 10, 2008 6:10 am

Post by shaban974 »

Thanks very much for your reply.

I did check do a little bit of search too on cisco website and found this :
For interfaces that operate at 20,000,000 (20 million) bits per second or less, you must use 32-bit byte and packet counters. For interfaces that operate faster than 20 million bits per second, and slower than 650,000,000 bits per second, you must use 32-bit packet counters and 64-bit octet counters. For interfaces that operate at 650,000,000 bits/second or faster, 64-bit packet and octet counters must be used.

Correspondingly, Cisco IOS® Software does not support 64-bit counters for interface speeds of less than 20 Mbps. This means that 64-bit counters are not supported on 10 Mb Ethernet ports, only 100 Mb Fast-Ethernet and other high speed ports support 64-bit counters.
Link :


http://www.cisco.com/en/US/tech/tk648/t ... 69ac.shtml
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests