Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ntc_templates/templates/cisco_ios_show_inventory.textfsm
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Value NAME (.*)
Value DESCR (.*)
Value PID (([\S+]+|.*))
Value PID ((?:[^,]*[^,\s])?)
Value VID (\S*)
Value SN ([\w+\d+]+)
Value SN (\S+)

Start
^NAME:\s+"${NAME}",\s+DESCR:\s+"${DESCR}"
Expand All @@ -17,3 +17,4 @@ Start
# Capture time-stamp if vty line has command time-stamping turned on
^Load\s+for\s+
^Time\s+source\s+is
^. -> Error
24 changes: 12 additions & 12 deletions tests/cisco_ios/show_inventory/cisco_ios_show_inventory.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
parsed_sample:
- name: "3640 chassis"
descr: "3640 chassis"
- descr: "3640 chassis"
name: "3640 chassis"
pid: ""
vid: "0xFF"
sn: "FF1045C5"
- name: "One port Fastethernet TX"
descr: "One port Fastethernet TX"
vid: "0xFF"
- descr: "One port Fastethernet TX"
name: "One port Fastethernet TX"
pid: "NM-1FE-TX="
vid: "1.0"
sn: "7720321"
- name: "One port Fastethernet TX"
descr: "One port Fastethernet TX"
pid: "NM-1FE-TX="
vid: "1.0"
sn: "7720321"
- name: "One port Fastethernet TX"
descr: "One port Fastethernet TX"
- descr: "One port Fastethernet TX"
name: "One port Fastethernet TX"
pid: "NM-1FE-TX="
sn: "7720321"
vid: "1.0"
- descr: "One port Fastethernet TX"
name: "One port Fastethernet TX"
pid: "NM-1FE-TX="
sn: "7720321"
vid: "1.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
NAME: "Chassis", DESCR: "Cisco Catalyst 9500 Series Chassis"
PID: C9500-48Y4C , VID: V02 , SN: FDO22110ABC

NAME: "FortyGigabitEthernet1/0/49", DESCR: "QSFP 40GE AOC3M"
PID: QSFP-H40G-AOC3M , VID: V02 , SN: AVC2211A0B1-A

NAME: "HundredGigE1/0/50", DESCR: "QSFP 100GE CU3M"
PID: QSFP-100G-CU3M , VID: V01 , SN: APF22340C1D-B

NAME: "TwentyFiveGigE1/0/1", DESCR: "SFP 25GE CU2M"
PID: QSFP-4SFP25G-CU2M , VID: V01 , SN: LCC2233G0AB-CH1

NAME: "TwentyFiveGigE1/0/2", DESCR: "SFP 25GE CU2M"
PID: QSFP-4SFP25G-CU2M , VID: V01 , SN: LCC2233G0AB-CH2

NAME: "TwentyFiveGigE1/0/3", DESCR: "SFP 25GE CU2M"
PID: QSFP-4SFP25G-CU2M , VID: V01 , SN: LCC2233G0AB-CH3

NAME: "TwentyFiveGigE1/0/4", DESCR: "SFP 25GE CU2M"
PID: QSFP-4SFP25G-CU2M , VID: V01 , SN: LCC2233G0AB-CH4

NAME: "subslot 0/3 disk1", DESCR: "harddisk"
PID: Samsung SSD 860 EVO 250GB, VID: , SN: S3Y9NX0M600001A
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
parsed_sample:
- descr: "Cisco Catalyst 9500 Series Chassis"
name: "Chassis"
pid: "C9500-48Y4C"
sn: "FDO22110ABC"
vid: "V02"
- descr: "QSFP 40GE AOC3M"
name: "FortyGigabitEthernet1/0/49"
pid: "QSFP-H40G-AOC3M"
sn: "AVC2211A0B1-A"
vid: "V02"
- descr: "QSFP 100GE CU3M"
name: "HundredGigE1/0/50"
pid: "QSFP-100G-CU3M"
sn: "APF22340C1D-B"
vid: "V01"
- descr: "SFP 25GE CU2M"
name: "TwentyFiveGigE1/0/1"
pid: "QSFP-4SFP25G-CU2M"
sn: "LCC2233G0AB-CH1"
vid: "V01"
- descr: "SFP 25GE CU2M"
name: "TwentyFiveGigE1/0/2"
pid: "QSFP-4SFP25G-CU2M"
sn: "LCC2233G0AB-CH2"
vid: "V01"
- descr: "SFP 25GE CU2M"
name: "TwentyFiveGigE1/0/3"
pid: "QSFP-4SFP25G-CU2M"
sn: "LCC2233G0AB-CH3"
vid: "V01"
- descr: "SFP 25GE CU2M"
name: "TwentyFiveGigE1/0/4"
pid: "QSFP-4SFP25G-CU2M"
sn: "LCC2233G0AB-CH4"
vid: "V01"
- descr: "harddisk"
name: "subslot 0/3 disk1"
pid: "Samsung SSD 860 EVO 250GB"
sn: "S3Y9NX0M600001A"
vid: ""
Loading