| 1 |
Value VERSION (.*) |
| 2 |
Value SWITCH_TYPE (\S+\s\S+\s\S+) |
| 3 |
Value SWITCH_MODEL (\S+) |
| 4 |
Value SERIAL (\S+) |
| 5 |
Value MAC (\S+) |
| 6 |
Value HW_REVISION (\S+) |
| 7 |
|
| 8 |
Start |
| 9 |
^Switch:.+ |
| 10 |
^Machine\s+Type\.+\s+${SWITCH_TYPE} |
| 11 |
^Machine\s+Model\.+\s+${SWITCH_MODEL} |
| 12 |
^Serial\s+Number\.+\s+${SERIAL} |
| 13 |
^Burned\s+In\s+MAC\s+Address\.+\s+${MAC} |
| 14 |
^Software\s+Version\.+\s+${VERSION} |
| 15 |
^Hardware\s+Revision\.+\s+${HW_REVISION} |
| 16 |
# netmiko's send_command starts command output with the last symbol from command sent |
| 17 |
^\w$$ |
| 18 |
^System\s+Description |
| 19 |
^Part\s+Number |
| 20 |
^\s*$$ |
| 21 |
^. -> Error |