Problems with Counter32 objects on a 64-bit machine
Darren Gamble <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Good day, I'm having some very unusual problems with a net-snmp client/agent pair reporting the right data. The client is on a Linux 32-bit machine, and the agent is on is a Linux 64-bit machine (x86_64), compiled for their respective architectures. Both are net-snmp 5.2.1.2, although I had 5.2 when I first discovered the problem. If I query the 64-bit agent machine from itself, net-snmp returns the following for the ifInOctets table: # /usr/bin/snmpwalk -c <string> -Ofn -v 2c 127.0.0.1 ifInOctets .1.3.6.1.2.1.2.2.1.10.1 = Counter32: 66691386 .1.3.6.1.2.1.2.2.1.10.2 = Counter32: 344047930477 .1.3.6.1.2.1.2.2.1.10.3 = Counter32: 343620854818 .1.3.6.1.2.1.2.2.1.10.4 = Counter32: 427075659 ... which has counter values that (I believe) are out of the valid range of a Counter32. This causes great problems on the client machine; I'd guess due to the fact that it is 32-bit. Here is a query taken just a few moments after the previous query: # /usr/bin/snmpwalk -c <string> -Ofn -v 2c a.b.c.d ifInOctets .1.3.6.1.2.1.2.2.1.10.1 = Counter32: 66707344 .1.3.6.1.2.1.2.2.1.10.2 = Counter32: 66707344 .1.3.6.1.2.1.2.2.1.10.3 = Counter32: 66707344 .1.3.6.1.2.1.2.2.1.10.4 = Counter32: 427203655 # /usr/bin/snmpget -c <string> -Ofn -v 2c a.b.c.d ifInOctets.2 .1.3.6.1.2.1.2.2.1.10.2 = Counter32: 0 Am I missing something here? Does this look like a bug? Thanks in advance! ============================ Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users