64 bit counter
"Ambika Tripathy" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, When I have used, I am getting the 64 bit value in interface 3. snmpwalk -v 1 -c public localhost | grep Octets IF-MIB::ifInOctets.1 = Counter32: 8461246 IF-MIB::ifInOctets.2 = Counter32: 28868802 IF-MIB::ifInOctets.3 = Counter32: 1120513328970 IF-MIB::ifOutOctets.1 = Counter32: 8463031 IF-MIB::ifOutOctets.2 = Counter32: 572128134 IF-MIB::ifOutOctets.3 = Counter32: 396 But when I executed a perl script to read the value is not showing 0. How can I over come this problem using perl scripts. Br, Ambika -----Original Message----- From: Ambika Tripathy [mailto:[email protected]] Sent: 2008-11-20 18:03 To: 'Mike Ayers'; '[email protected]' Subject: RE: Timeout for snmpget Hi, Is it possible to get the ifInOctets in 64 bit counter using net-snmp. It is creating problem for me when the number of bytes goes beyond 4 gb. Br, APT -----Original Message----- From: Mike Ayers [mailto:[email protected]] Sent: 2008-11-17 11:59 To: Ambika Tripathy; [email protected] Subject: RE: Timeout for snmpget > From: Ambika Tripathy [mailto:[email protected]] > Sent: Sunday, November 16, 2008 3:20 PM > Thanks for your quick reply. Okay I used 5.4.2.1 > version also with > the same answer. After starting snmpd from > /usr/local/sbin/snmpd, I checked > the ps -A | grep snmp and it was running. When I GDB snmpd, I > found it was > taking some different port than 161. Gdb?! That's a bit extreme. Note that snmpd may open ports other than the SNMP listening port. > Should I specify port 161 for this and how? What else setting / > configuration option should I check. Look in /usr/local/etc/snmpd.conf. If yuou're just getting started, `man snmpconf` for a good way to avoid getting clogged with details while learning. If you don't want to run as root, make all port numbers >1024 (preferably >8000) and put unix domain sockets (you would only use this for AgentX) in your own filesystem, but if you can build to /usr/local, you've got root priv, don'cha? HTH, Mike ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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