Which version of net-snmp are up using? You might want to confirm that
you are running the version that was compiled with 64bit support. But, I
had some issues running it in the zones so I reluctantly chose to use
scripting instead.


Solaris, FreeBSD, OpenBSD:
      - Experimental support for 64bit interface counters (ifXTable).
Enable
        via '--with-mib-modules=if-mib --enable-mfd-rewrites'.


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

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
------------------------------------------------------------
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