SG-1100 64 bit counters
-
Does the SNMP implentation in the SG-1100 support 64-bit counters, specifically ifHCInOctets and ifHCOutOctets?
-
The built-in SNMP daemon (
bsnmpd
) doesn't have them. I don't have the NET-SNMP package on an 1100 to check, but you might try that. -
bsnmp on amd64 appears to support ifHCInOctets and IfHCOutOctets:
$ snmpwalk -v2c -c <redacted> 192.168.1.1 | grep -i -e pfsense -e inoctets -e bsnmpd
SNMPv2-MIB::sysDescr.0 = STRING: pfSense 2.4.4-RELEASE pfSense FreeBSD 11.2-RELEASE-p10 amd64
IF-MIB::ifInOctets.1 = Counter32: 2129316479
IF-MIB::ifInOctets.2 = Counter32: 2951989083
IF-MIB::ifInOctets.3 = Counter32: 3372716358
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInOctets.5 = Counter32: 0
IF-MIB::ifInOctets.6 = Counter32: 2961831
IF-MIB::ifInOctets.7 = Counter32: 0
IF-MIB::ifInOctets.8 = Counter32: 0
HOST-RESOURCES-MIB::hrSWRunName.81245 = STRING: "bsnmpd"
HOST-RESOURCES-MIB::hrSWRunPath.81245 = STRING: "/usr/sbin/bsnmpd"
HOST-RESOURCES-MIB::hrSWRunParameters.441 = STRING: "-q -f /etc/pfSense-devd.conf"
IF-MIB::ifHCInOctets.1 = Counter64: 130978339586
IF-MIB::ifHCInOctets.2 = Counter64: 11542502156
IF-MIB::ifHCInOctets.3 = Counter64: 3372720551On Arm64, bsnmp doesn't:
$ snmpwalk -v2c -c <redacted> 192.168.1.254 | grep -i -e pfsense -e inoctets -e bsnmpd
SNMPv2-MIB::sysDescr.0 = STRING: pfSense 2.4.4-RELEASE pfSense FreeBSD 11.2-RELEASE-p10 arm64
IF-MIB::ifInOctets.1 = Counter32: 844087023
IF-MIB::ifInOctets.2 = Counter32: 0
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInOctets.5 = Counter32: 0
IF-MIB::ifInOctets.6 = Counter32: 0
IF-MIB::ifInOctets.7 = Counter32: 139592
IF-MIB::ifInOctets.8 = Counter32: 0
IF-MIB::ifInOctets.9 = Counter32: 0
IF-MIB::ifInOctets.10 = Counter32: 236437938
IF-MIB::ifInOctets.11 = Counter32: 458242294
IF-MIB::ifInOctets.12 = Counter32: 97390783
HOST-RESOURCES-MIB::hrSWRunName.36277 = STRING: "bsnmpd"
HOST-RESOURCES-MIB::hrSWRunPath.36277 = STRING: "/usr/sbin/bsnmpd"
HOST-RESOURCES-MIB::hrSWRunParameters.401 = STRING: "-q -f /etc/pfSense-devd.conf"I'll try Net-SNMP, and let you know. My Linux experience says it should work.
Thanks!
-
Yes, on amd64 it does work. But the 1100 is not amd64, it's arm64.
SG-1100:
$ snmpwalk -c xxxx -v 2c sg1100.x.x IF-MIB::ifHCInOctets IF-MIB::ifHCInOctets = No Such Instance currently exists at this OID
XG-7100:
$ snmpwalk -c xxxx -v 2c xg7100.x.x IF-MIB::ifHCInOctets IF-MIB::ifHCInOctets.1 = Counter64: 0 IF-MIB::ifHCInOctets.2 = Counter64: 0 IF-MIB::ifHCInOctets.3 = Counter64: 454108431 IF-MIB::ifHCInOctets.14 = Counter64: 2556530992 IF-MIB::ifHCInOctets.15 = Counter64: 0 IF-MIB::ifHCInOctets.16 = Counter64: 1085947 IF-MIB::ifHCInOctets.17 = Counter64: 0 IF-MIB::ifHCInOctets.18 = Counter64: 0 IF-MIB::ifHCInOctets.19 = Counter64: 3010639423 IF-MIB::ifHCInOctets.20 = Counter64: 2775379977 IF-MIB::ifHCInOctets.21 = Counter64: 0
-
That's bsnmpd though. You need to try NET-SNMP.
-
Hey @jimp,
For the SG-1100, I know its an Arm box, it one of the reasons I bought it. I said arm64, as that's what bsnmpd reported, instead of Aarch64.I had a chance to install Net-SNMP on the SG-1100 and it returns ifHCInOctets and ifHCOutOctets:
$ snmpwalk -v2c -c <redacted> 192.168.1.254 | grep -i -e inoctets
IF-MIB::ifInOctets.1 = Counter32: 1066212313
IF-MIB::ifInOctets.6 = Counter32: 0
IF-MIB::ifInOctets.7 = Counter32: 147998
IF-MIB::ifInOctets.8 = Counter32: 0
IF-MIB::ifInOctets.9 = Counter32: 0
IF-MIB::ifInOctets.10 = Counter32: 339689700
IF-MIB::ifInOctets.11 = Counter32: 549481782
IF-MIB::ifInOctets.12 = Counter32: 121263171
IF-MIB::ifHCInOctets.1 = Counter64: 1066384951
IF-MIB::ifHCInOctets.6 = Counter64: 0
IF-MIB::ifHCInOctets.7 = Counter64: 147998
IF-MIB::ifHCInOctets.8 = Counter64: 0
IF-MIB::ifHCInOctets.9 = Counter64: 0
IF-MIB::ifHCInOctets.10 = Counter64: 339693366
IF-MIB::ifHCInOctets.11 = Counter64: 549639578
IF-MIB::ifHCInOctets.12 = Counter64: 121267407I'll have to keep playing to make sure there is no functionality loss (OIDs returned, etc), but right now I'm happy!
Thanks!
David