get_health_metrics goes; SNMP_HEALTH_PROFILE declares uptime, CPU (current OID, then the older firmware's) and memory (total + free, bytes).
Fixes#9, confirmed on swt-l0-3-40 (2026-10-16): total 58720256 = column 6 (39105640) + column 7 (19614616), so column 6 is free; the switch showed 66.6 % used instead of 33.4 %.
Interface counters come from the 64-bit ifXTable where the switch has it.
Merge order: together with NetOrk/netork#1129 and the pin bump in netOrk. netOrk before #1129 only polls drivers that have their own get_health_metrics, so this driver alone would stop being polled. Part of NetOrk/netork#1105 / #1108.
- `get_health_metrics` goes; `SNMP_HEALTH_PROFILE` declares uptime, CPU (current OID, then the older firmware's) and memory (total + free, bytes).
- **Fixes #9**, confirmed on swt-l0-3-40 (2026-10-16): total 58720256 = column 6 (39105640) + column 7 (19614616), so column 6 is free; the switch showed 66.6 % used instead of 33.4 %.
- Interface counters come from the 64-bit ifXTable where the switch has it.
Closes #9
**Merge order:** together with NetOrk/netork#1129 and the pin bump in netOrk. netOrk before #1129 only polls drivers that have their own `get_health_metrics`, so this driver alone would stop being polled. Part of NetOrk/netork#1105 / #1108.
The driver no longer collects over SNMP. SNMP_HEALTH_PROFILE states
where the switch publishes its values; the application polls and
computes (napalm-device-types docs/STRUCTURE.md).
This also fixes the memory figure: NETSWITCH-MIB hpLocalMemEntry column
6 is free memory, not used. On swt-l0-3-40 total 58720256 = free
39105640 + allocated 19614616, so the switch showed 66.6 % used instead
of 33.4 %. The profile names column 6 as free.
Interface counters now come from the 64-bit ifXTable where the switch
has it, as the application reads them for every device.
Closes#9
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
get_health_metricsgoes;SNMP_HEALTH_PROFILEdeclares uptime, CPU (current OID, then the older firmware's) and memory (total + free, bytes).Closes #9
Merge order: together with NetOrk/netork#1129 and the pin bump in netOrk. netOrk before #1129 only polls drivers that have their own
get_health_metrics, so this driver alone would stop being polled. Part of NetOrk/netork#1105 / #1108.