For gigabit interface, 32bit space is too small for counters. Rollover
caused gaps. 

-----Original Message-----
From: sysadmin-discuss-boun...@opensolaris.org
[mailto:sysadmin-discuss-boun...@opensolaris.org] On Behalf Of Jason
King
Sent: Friday, July 16, 2010 9:17 AM
To: melbogia
Cc: sysadmin-discuss@opensolaris.org
Subject: Re: [sysadmin-discuss] 64 bit counters for snmp

I'm not sure why you think you need a 64 bit counter -- it should
rollover, and most packages should handle that...

I think the net-snmp package bundled is a bit out of date, so that could
be part of it...

On Fri, Jul 16, 2010 at 11:08 AM, melbogia <melbo...@gmail.com> wrote:
> I originally posted this in opensolaris->discuss but that list seems 
> to be going downhill so I am reposting here
>
> I am using snmp to get a graph the network traffic from our servers. I

> looked at /etc/sma/snmp/mibs/IF-MIB.txt and it mentions two counters
>
> ifInOctets Counter32
> ifHCInOctets Counter64
>
> Since the interfaces are connected to gigE link I need the 64 bit 
> counter to get any valid data but it doesn't seem to be there when I 
> snmpwalk
>
> root:/etc/sma/snmp/mibs# snmpwalk -v1 -c public localhost iso | grep 
> -i octets
> IF-MIB::ifInOctets.1 = Counter32: 0
> IF-MIB::ifInOctets.2 = Counter32: 2745997873
> IF-MIB::ifOutOctets.1 = Counter32: 0
> IF-MIB::ifOutOctets.2 = Counter32: 493562995
>
> root:/etc/sma/snmp/mibs# snmpwalk -v2c -c public localhost iso | grep 
> -i octets
> IF-MIB::ifInOctets.1 = Counter32: 0
> IF-MIB::ifInOctets.2 = Counter32: 2910951603
> IF-MIB::ifOutOctets.1 = Counter32: 0
> IF-MIB::ifOutOctets.2 = Counter32: 523063265
>
> I could get it from kstats but I'll have to write a script and put it
in snmpd.conf. But does anyone know why it's not in snmp already, or am
I doing something wrong?
> --
> This message posted from opensolaris.org 
> _______________________________________________
> sysadmin-discuss mailing list
> sysadmin-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss
>
_______________________________________________
sysadmin-discuss mailing list
sysadmin-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss
------------------------------------------------------------
This email and any attachments are intended only for the named
recipient and may contain confidential and/or privileged material.
Any unauthorized copying, dissemination or other use by a person
other than the named recipient of this communication is prohibited.
 If you received this in error or are not named as a recipient,
please notify the sender and destroy all copies of this email
immediately.

_______________________________________________
sysadmin-discuss mailing list
sysadmin-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss

Reply via email to