_send_command: ProCurve's 'Invalid input:' is taken as a valid result #4

Closed
opened 2026-09-25 06:52:25 +00:00 by christianmanivong · 0 comments
Owner

Failure signature

Polling over CLI logs Device: HPE (OS: ): model and OS version are empty.

swt-l0-3-40# show system-information
Invalid input: system-information

Root cause

_send_command with a list of alternatives moves on only when the output contains % Invalid or Error. ProCurve reports an unknown command as Invalid input: …, without a %, so the first alternative's error text is returned and parsed as system information. show system information / show system are never tried.

Expected

Invalid input counts as a failed alternative, and the next command is tried.

## Failure signature Polling over CLI logs `Device: HPE (OS: )`: model and OS version are empty. ``` swt-l0-3-40# show system-information Invalid input: system-information ``` ## Root cause `_send_command` with a list of alternatives moves on only when the output contains `% Invalid` or `Error`. ProCurve reports an unknown command as `Invalid input: …`, without a `%`, so the first alternative's error text is returned and parsed as system information. `show system information` / `show system` are never tried. ## Expected `Invalid input` counts as a failed alternative, and the next command is tried.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-hpe-aruba-procurve#4