Skip to content

Commit

Permalink
Merge pull request #243 from amb1s1/cisco_asa_show_inventory
Browse files Browse the repository at this point in the history
Cisco asa show inventory
  • Loading branch information
jmcgill298 authored Aug 22, 2018
2 parents f548507 + 84efb0d commit aacccc7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/cisco_asa_show_inventory.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Value NAME (\S+)
Value DESCR (.*)
Value PID (\S+)
Value VID (\S+)
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
^\s*$$
^.+ -> Error

1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ cisco_asa_show_running-config_ipsec.template, .*, cisco_asa, sh[[ow]] ru[[nning-
cisco_asa_show_crypto_ipsec_sa.template, .*, cisco_asa, sh[[ow]] cry[[pto]] ip[[sec]] sa
cisco_asa_show_access-list.template, .*, cisco_asa, sh[[ow]] ac[[cess-list]]
cisco_asa_show_interface.template, .*, cisco_asa, sh[[ow]] int[[erface]]
cisco_asa_show_inventory.template, .*, cisco_asa, sh[[ow]] inven[[tory]]
cisco_asa_show_version.template, .*, cisco_asa, sh[[ow]] ver[[sion]]
cisco_asa_show_route.template, .*, cisco_asa, sh[[ow]] ro[[ute]]
cisco_asa_show_name.template, .*, cisco_asa, sh[[ow]] nam[[e]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
parsed_sample:
- name: "Chassis"
descr: "ASA 5515-X with SW, 6 GE Data, 1 GE Mgmt, AC"
pid: "ASA5515"
sn: "FTX1930101U"
vid: "V03"
2 changes: 2 additions & 0 deletions tests/cisco_asa/show_inventory/cisco_asa_show_inventory.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Name: "Chassis", DESCR: "ASA 5515-X with SW, 6 GE Data, 1 GE Mgmt, AC"
PID: ASA5515 , VID: V03 , SN: FTX1930101U

0 comments on commit aacccc7

Please sign in to comment.