You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need help on parsing this output
raw output of the command show platform diag
Chassis type: CSR1000V
Slot: R0, CSR1000V
Running state : ok, active
Internal state : online
Internal operational state : ok
Physical insert detect time : 00:00:35 (4d16h ago)
Software declared up time : 00:00:35 (4d16h ago)
Slot: F0, CSR1000V
Running state : ok, active
Internal state : online
Internal operational state : ok
Physical insert detect time : 00:00:35 (4d16h ago)
Software declared up time : 00:00:59 (4d16h ago)
Hardware ready signal time : 00:00:51 (4d16h ago)
Packet ready signal time : 00:01:06 (4d16h ago)
i have gave my try to parse this out put
TextFsm template for the above show platform diag output
Value Ct (.*)
Value Slotno ((.*)[A-Z]\d+(.*))
Value rs (.+)
Value is (.+)
Value ios (.+)
Value pidt (.*)
Value sdut (.*)
Value hrst (.*)
Value prst (.*)
Start
^Chassis type: ${Ct}.* -> Continue.Record
^Slot: ${Slotno}\, -> Next.Record
^.*Running state\s+\:${rs}
^.*Internal state\s+\:${is}
^.*Internal operational state\s+\:${ios}
^.*Physical insert detect time\s+${pidt}
^.*Software declared up time\s+${sdut}
^.*Hardware ready signal time\s+${hrst}
^.*Packet ready signal time\s+${prst} -> Continue.Record
i want the table header to be
Running state Internal state Internal operational state Physical insert detect time Software declared up time Hardware ready signal time Packet ready signal time
and the respective values in the next row
Note :
the slot and the respective e details varies here as mentioned in the raw output .
show_platform-diag.txt
The text was updated successfully, but these errors were encountered: