Skip to content

Commit

Permalink
Enhancement: cisco_asa_show_inventory support inventory items w/o SN (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wvandeun authored Apr 2, 2020
1 parent 95073f2 commit 66cdabb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/cisco_asa_show_inventory.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Value SN (\S+)
Start
^Name:\s+"${NAME}"\s*,\s+DESCR:\s+"${DESCR}"
^PID:\s+${PID}\s*,\s+VID:\s+${VID}\s*,\s+SN:\s+${SN} -> Record
^PID:\s+${PID}\s*,\s+VID:\s+${VID}\s*,\s+SN: -> Record
^\s*$$
^show_inventory_all\s+\S+ -> NoRecord
^.+ -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Name: "Chassis", DESCR: "ASA 5506-X with FirePOWER services, 8GE, AC, DES"
PID: ASA5506 , VID: V01 , SN: JMX8318372GB

Name: "Storage Device 1", DESCR: "ASA 5506-X SSD"
PID: ASA5506-SSD , VID: N/A , SN:
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
parsed_sample:
- name: "Chassis"
descr: "ASA 5506-X with FirePOWER services, 8GE, AC, DES"
pid: "ASA5506"
sn: "JMX8318372GB"
vid: "V01"
- name: "Storage Device 1"
descr: "ASA 5506-X SSD"
pid: "ASA5506-SSD"
sn: ""
vid: "N/A"

0 comments on commit 66cdabb

Please sign in to comment.