Summary: | net-mgmt/net-snmp: counters on ix(4) return nonsense. | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | emz | ||||
Component: | Individual Port(s) | Assignee: | Ryan Steinmetz <zi> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | ae, pi, w.schwarzenfeld | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(zi) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
emz
2016-09-08 12:11:47 UTC
This should be opened with the net-snmp developers. Created attachment 183298 [details]
Proposed patch to net-net/net-snmp
I added support for various media types to netsnmp_sysctl_ifmedia_to_speed() function, so now it should correctly see show the speed for hiSpeed NICs.
I tested only on head/ with ixgbe, cxgbe and mce, em.
IF-MIB::ifDescr.1 = STRING: ix0
IF-MIB::ifDescr.2 = STRING: ix1
IF-MIB::ifDescr.3 = STRING: lo0
IF-MIB::ifDescr.4 = STRING: cc0
IF-MIB::ifDescr.5 = STRING: cc1
IF-MIB::ifDescr.6 = STRING: mce0
IF-MIB::ifDescr.7 = STRING: mce1
IF-MIB::ifDescr.8 = STRING: lagg0
..
IF-MIB::ifSpeed.1 = Gauge32: 4294967295
IF-MIB::ifSpeed.2 = Gauge32: 4294967295
IF-MIB::ifSpeed.3 = Gauge32: 0
IF-MIB::ifSpeed.4 = Gauge32: 10000000
IF-MIB::ifSpeed.5 = Gauge32: 4294967295
IF-MIB::ifSpeed.6 = Gauge32: 4294967295
IF-MIB::ifSpeed.7 = Gauge32: 4294967295
IF-MIB::ifSpeed.8 = Gauge32: 3525163520
..
IF-MIB::ifHighSpeed.1 = Gauge32: 10000
IF-MIB::ifHighSpeed.2 = Gauge32: 10000
IF-MIB::ifHighSpeed.3 = Gauge32: 0
IF-MIB::ifHighSpeed.4 = Gauge32: 100
IF-MIB::ifHighSpeed.5 = Gauge32: 100000
IF-MIB::ifHighSpeed.6 = Gauge32: 25000
IF-MIB::ifHighSpeed.7 = Gauge32: 25000
IF-MIB::ifHighSpeed.8 = Gauge32: 35251
Maintainer feedback? This patch was included upstream in 5.8. |