feat: declare the SNMP health OIDs instead of collecting them (0.3.0) #14

Merged
christianmanivong merged 1 commits from feat/snmp-health-profile into master 2026-10-16 23:06:58 +00:00
Owner
  • 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.

- `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.
christianmanivong added 1 commit 2026-10-16 10:04:02 +00:00
feat: declare the SNMP health OIDs instead of collecting them (0.3.0)
CI / test (3.10) (push) Successful in 31s
CI / test (3.11) (push) Successful in 30s
CI / test (3.12) (push) Successful in 33s
CI / test (3.10) (pull_request) Successful in 33s
CI / test (3.11) (pull_request) Successful in 30s
CI / test (3.12) (pull_request) Successful in 32s
39d5e69270
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
christianmanivong merged commit eeb0340514 into master 2026-10-16 23:06:58 +00:00
christianmanivong deleted branch feat/snmp-health-profile 2026-10-16 23:06:59 +00:00
Sign in to join this conversation.