-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #243 from amb1s1/cisco_asa_show_inventory
Cisco asa show inventory
- Loading branch information
Showing
4 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/cisco_asa/show_inventory/cisco_asa_show_inventory.parsed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |