get_facts reports no serial number and an uptime of 0 #27

Closed
opened 2026-11-12 15:43:43 +00:00 by christianmanivong · 0 comments
Owner

Priority: P3 (important, not urgent): netOrk shows the gateway without a serial number and without uptime; nothing else reads them wrong (an uptime of 0 counts as unknown, so no restart is detected from it).

get_facts reads serial_number and uptime from getBasicInformation (SerialNumber, SystemUpTime). A VMG4005-B50A (V5.17(ABQA.3.1)C0) sends neither there; its whole answer is result, ModelName, SoftwareVersion, CurrentLanguage, AvailableLanguages, RememberPassword, FWUpgradeProgressST. So a read-only get_facts against it reports serial_number: '' and uptime: 0.

The gateway has both in cardpage_status, which get_interfaces already reads (#23), under Object[0].DeviceInfo:

"DeviceInfo": {"ModelName": "VMG4005-B50A", "SerialNumber": "S000Y00000001", "SoftwareVersion": "V5.17(ABQA.3.1)C0", "UpTime": 13544274}

That is what its status page shows (serial number and an uptime of 156 days 18 h). ModelName and SoftwareVersion are there too.

Found while fixing the host name (#26), which had the same cause.

Priority: P3 (important, not urgent): netOrk shows the gateway without a serial number and without uptime; nothing else reads them wrong (an uptime of 0 counts as unknown, so no restart is detected from it). `get_facts` reads `serial_number` and `uptime` from `getBasicInformation` (`SerialNumber`, `SystemUpTime`). A VMG4005-B50A (V5.17(ABQA.3.1)C0) sends neither there; its whole answer is `result`, `ModelName`, `SoftwareVersion`, `CurrentLanguage`, `AvailableLanguages`, `RememberPassword`, `FWUpgradeProgressST`. So a read-only `get_facts` against it reports `serial_number: ''` and `uptime: 0`. The gateway has both in `cardpage_status`, which `get_interfaces` already reads (#23), under `Object[0].DeviceInfo`: ```json "DeviceInfo": {"ModelName": "VMG4005-B50A", "SerialNumber": "S000Y00000001", "SoftwareVersion": "V5.17(ABQA.3.1)C0", "UpTime": 13544274} ``` That is what its status page shows (serial number and an uptime of 156 days 18 h). `ModelName` and `SoftwareVersion` are there too. Found while fixing the host name (#26), which had the same cause.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-zyxel#27