-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CISCO_ASA_SHOW_LICENSE_ALL: Add new template (#339)
- Loading branch information
1 parent
88af1f1
commit 6a47417
Showing
8 changed files
with
320 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,118 @@ | ||
Value SMART_STATUS (.+?) | ||
Value REGISTRATION_STATUS (.+?) | ||
Value SMART_ACCOUNT (.+?) | ||
Value VIRTUAL_ACCOUNT (.+?) | ||
Value EXPORT_CONTROLLED (.+?) | ||
Value REGISTRATION_INITIAL_STATUS (.+?) | ||
Value REGISTRATION_INITIAL_DATE (.+?) | ||
Value REGISTRATION_LAST_RENEWAL (.+?) | ||
Value REGISTRATION_LAST_RENEWAL_DATE (.+?) | ||
Value REGISTRATION_LAST_RENEWAL_ERROR (.+?) | ||
Value REGISTRATION_NEXT_RENEWAL_DATE (.+?) | ||
Value REGISTRATION_EXPIRATION_DATE (.+?) | ||
Value AUTH_STATUS (.+?) | ||
Value AUTH_DATE (.+?) | ||
Value EVAL_REMAINING (.+?) | ||
Value AUTH_LAST_COMMUNICATION (.+?) | ||
Value AUTH_LAST_COMMUNICATION_DATE (.+?) | ||
Value AUTH_FAIL_ERROR (.+?) | ||
Value AUTH_NEXT_COMMUNICATION_DATE (.+?) | ||
Value AUTH_DEADLINE (.+?) | ||
Value LICENSE (\S.*?) | ||
Value LICENSE_PID (\S+?) | ||
Value LICENSE_DESCRIPTION (.+?) | ||
Value LICENSE_COUNT (\d+) | ||
Value LICENSE_VERSION (\S+) | ||
Value LICENSE_STATUS (.+?) | ||
Value PID (.+?) | ||
Value SN (.+?) | ||
Value SMART_AGENT_VERSION (.+?) | ||
|
||
Start | ||
^\s*$$ | ||
^Smart\s+Licensing\s+Status | ||
^Smart\s+Licensing\s+is\s+${SMART_STATUS}\s*$$ | ||
^Registration:\s*$$ -> REGISTRATION | ||
^License\s+Authorization:\s*$$ -> AUTHORIZATION | ||
^License\s+Usage\s*$$ -> LICENSE_USAGE | ||
^Product\s+Information\s*$$ -> PRODUCT_INFORMATION | ||
^Agent\s+Version\s*$$ -> AGENT_VERSION | ||
^=+\s*$$ | ||
^. -> Error | ||
|
||
REGISTRATION | ||
^\s*$$ | ||
^\s+Status:\s+${REGISTRATION_STATUS}\s*$$ | ||
^\s+Smart\s+Account:\s+${SMART_ACCOUNT}\s*$$ | ||
^\s+Virtual\s+Account:\s+${VIRTUAL_ACCOUNT}\s*$$ | ||
^\s+Export-Controlled\s+Functionality:\s+${EXPORT_CONTROLLED}\s*$$ | ||
^\s+Initial\s+Registration:\s+${REGISTRATION_INITIAL_STATUS}(?:\s+on\s+${REGISTRATION_INITIAL_DATE})?\s*$$ | ||
^\s+Last\s+Renewal\s+Attempt:\s+${REGISTRATION_LAST_RENEWAL}(?:\s+on\s+${REGISTRATION_LAST_RENEWAL_DATE})?\s*$$ | ||
^\s+Failure\s+reason:\s+${REGISTRATION_LAST_RENEWAL_ERROR}\s*$$ | ||
^\s+Next\s+Renewal\s+Attempt:\s+${REGISTRATION_NEXT_RENEWAL_DATE}\s*$$ | ||
^\s+Registration\s+Expires:\s+${REGISTRATION_EXPIRATION_DATE}\s*$$ | ||
^License\s+Authorization:\s*$$ -> AUTHORIZATION | ||
^License\s+Usage\s*$$ -> LICENSE_USAGE | ||
^Product\s+Information\s*$$ -> PRODUCT_INFORMATION | ||
^Agent\s+Version\s*$$ -> AGENT_VERSION | ||
^Smart\s+Licensing\s+is\s+${SMART_STATUS}\s*$$ | ||
^Registration:\s*$$ -> REGISTRATION | ||
^=+\s*$$ | ||
^. -> Error | ||
|
||
AUTHORIZATION | ||
^\s*$$ | ||
^\s+Status:\s+${AUTH_STATUS}(?:\s+on\s+${AUTH_DATE})?\s*$$ | ||
^\s+Evaluation\s+Period\s+Remaining:\s+${EVAL_REMAINING}\s*$$ | ||
^\s+Last\s+Communication\s+Attempt:\s+${AUTH_LAST_COMMUNICATION}(?:\s+on\s+${AUTH_LAST_COMMUNICATION_DATE})?\s*$$ | ||
^\s+Failure\s+reason:\s+${AUTH_FAIL_ERROR}\s*$$ | ||
^\s+Next\s+Communication\s+Attempt:\s+${AUTH_NEXT_COMMUNICATION_DATE}\s*$$ | ||
^\s+Communication\s+Deadline:\s+${AUTH_DEADLINE}\s*$$ | ||
^License\s+Usage\s*$$ -> LICENSE_USAGE | ||
^Product\s+Information\s*$$ -> PRODUCT_INFORMATION | ||
^Agent\s+Version\s*$$ -> AGENT_VERSION | ||
^Smart\s+Licensing\s+is\s+${SMART_STATUS}\s*$$ | ||
^Registration:\s*$$ -> REGISTRATION | ||
^License\s+Authorization:\s*$$ -> AUTHORIZATION | ||
^=+\s*$$ | ||
^. -> Error | ||
|
||
LICENSE_USAGE | ||
^\s*$$ | ||
^${LICENSE}?\s*\(${LICENSE_PID}\):\s*$$ | ||
^\s+Description:(?:\s+${LICENSE_DESCRIPTION})?\s*$$ | ||
^\s+Count:\s+${LICENSE_COUNT}\s*$$ | ||
^\s+Version:\s+${LICENSE_VERSION}\s*$$ | ||
^\s+Status:\s+${LICENSE_STATUS}\s*$$ | ||
^Product\s+Information\s*$$ -> PRODUCT_INFORMATION | ||
^Agent\s+Version\s*$$ -> AGENT_VERSION | ||
^Smart\s+Licensing\s+is\s+${SMART_STATUS}\s*$$ | ||
^Registration:\s*$$ -> REGISTRATION | ||
^License\s+Authorization:\s*$$ -> AUTHORIZATION | ||
^License\s+Usage\s*$$ -> LICENSE_USAGE | ||
^=+\s*$$ | ||
^. -> Error | ||
|
||
PRODUCT_INFORMATION | ||
^\s*$$ | ||
^UDI:.*PID:${PID},\s*SN:${SN}\s*$$ -> Start | ||
^Agent\s+Version\s*$$ -> AGENT_VERSION | ||
^Smart\s+Licensing\s+is\s+${SMART_STATUS}\s*$$ | ||
^Registration:\s*$$ -> REGISTRATION | ||
^License\s+Authorization:\s*$$ -> AUTHORIZATION | ||
^License\s+Usage\s*$$ -> LICENSE_USAGE | ||
^Product\s+Information\s*$$ -> PRODUCT_INFORMATION | ||
^=+\s*$$ | ||
^. -> Error | ||
|
||
AGENT_VERSION | ||
^\s*$$ | ||
^Smart\s+Agent\s+for\s+Licensing:\s+${SMART_AGENT_VERSION}\s*$$ | ||
^Smart\s+Licensing\s+is\s+${SMART_STATUS}\s*$$ | ||
^Registration:\s*$$ -> REGISTRATION | ||
^License\s+Authorization:\s*$$ -> AUTHORIZATION | ||
^License\s+Usage\s*$$ -> LICENSE_USAGE | ||
^Product\s+Information\s*$$ -> PRODUCT_INFORMATION | ||
^Agent\s+Version\s*$$ -> AGENT_VERSION | ||
^=+\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
31 changes: 31 additions & 0 deletions
31
tests/cisco_asa/show_license_all/cisco_asa_show_license_all.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,31 @@ | ||
--- | ||
parsed_sample: | ||
- smart_status: "ENABLED" | ||
registration_status: "REGISTERED" | ||
smart_account: "COMPANY LLC" | ||
virtual_account: "Company LLC" | ||
export_controlled: "Allowed" | ||
registration_initial_status: "SUCCEEDED" | ||
registration_initial_date: "Dec 03 16:43:48 2018 UTC" | ||
registration_last_renewal: "None" | ||
registration_last_renewal_date: "" | ||
registration_last_renewal_error: "" | ||
registration_next_renewal_date: "Jun 01 16:43:47 2019 UTC" | ||
registration_expiration_date: "Dec 03 16:37:44 2019 UTC" | ||
eval_remaining: "" | ||
auth_status: "AUTHORIZED" | ||
auth_date: "Dec 03 16:43:56 2018 UTC" | ||
auth_last_communication: "SUCCESS" | ||
auth_last_communication_date: "Dec 03 16:43:56 2018 UTC" | ||
auth_fail_error: "" | ||
auth_next_communication_date: "Jan 02 16:43:55 2019 UTC" | ||
auth_deadline: "Mar 03 16:37:54 2019 UTC" | ||
license: "ASAv5 Standard - 100M" | ||
license_pid: "ASAv-STD-100M" | ||
license_description: "ASAv5 Standard - 100M" | ||
license_count: "1" | ||
license_version: "1.0" | ||
license_status: "AUTHORIZED" | ||
pid: "ASAv" | ||
sn: "9A6PGB43PJC" | ||
smart_agent_version: "1.6.14_rel/129" |
38 changes: 38 additions & 0 deletions
38
tests/cisco_asa/show_license_all/cisco_asa_show_license_all.raw
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,38 @@ | ||
|
||
Smart Licensing Status | ||
====================== | ||
|
||
Smart Licensing is ENABLED | ||
|
||
Registration: | ||
Status: REGISTERED | ||
Smart Account: COMPANY LLC | ||
Virtual Account: Company LLC | ||
Export-Controlled Functionality: Allowed | ||
Initial Registration: SUCCEEDED on Dec 03 16:43:48 2018 UTC | ||
Last Renewal Attempt: None | ||
Next Renewal Attempt: Jun 01 16:43:47 2019 UTC | ||
Registration Expires: Dec 03 16:37:44 2019 UTC | ||
|
||
License Authorization: | ||
Status: AUTHORIZED on Dec 03 16:43:56 2018 UTC | ||
Last Communication Attempt: SUCCESS on Dec 03 16:43:56 2018 UTC | ||
Next Communication Attempt: Jan 02 16:43:55 2019 UTC | ||
Communication Deadline: Mar 03 16:37:54 2019 UTC | ||
|
||
License Usage | ||
============== | ||
|
||
ASAv5 Standard - 100M (ASAv-STD-100M): | ||
Description: ASAv5 Standard - 100M | ||
Count: 1 | ||
Version: 1.0 | ||
Status: AUTHORIZED | ||
|
||
Product Information | ||
=================== | ||
UDI: PID:ASAv,SN:9A6PGB43PJC | ||
|
||
Agent Version | ||
============= | ||
Smart Agent for Licensing: 1.6.14_rel/129 |
31 changes: 31 additions & 0 deletions
31
tests/cisco_asa/show_license_all/cisco_asa_show_license_all2.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,31 @@ | ||
--- | ||
parsed_sample: | ||
- smart_status: "ENABLED" | ||
registration_status: "REGISTERED" | ||
smart_account: "COMPANY LLC" | ||
virtual_account: "Company LLC" | ||
export_controlled: "Allowed" | ||
registration_initial_status: "SUCCEEDED" | ||
registration_initial_date: "Dec 03 16:43:48 2018 UTC" | ||
registration_last_renewal: "FAILED" | ||
registration_last_renewal_date: "Dec 03 18:40:22 2018 UTC" | ||
registration_last_renewal_error: "Communication message send error" | ||
registration_next_renewal_date: "Dec 03 18:56:01 2018 UTC" | ||
registration_expiration_date: "Dec 03 16:37:44 2019 UTC" | ||
eval_remaining: "" | ||
auth_status: "AUTHORIZED" | ||
auth_date: "Dec 03 18:40:28 2018 UTC" | ||
auth_last_communication: "FAILED" | ||
auth_last_communication_date: "Dec 03 18:40:28 2018 UTC" | ||
auth_fail_error: "Communication message send error" | ||
auth_next_communication_date: "Dec 03 18:40:57 2018 UTC" | ||
auth_deadline: "Mar 03 16:37:55 2019 UTC" | ||
license: "ASAv5 Standard - 100M" | ||
license_pid: "ASAv-STD-100M" | ||
license_description: "ASAv5 Standard - 100M" | ||
license_count: "1" | ||
license_version: "1.0" | ||
license_status: "AUTHORIZED" | ||
pid: "ASAv" | ||
sn: "9A6PGB43PJC" | ||
smart_agent_version: "1.6.14_rel/129" |
40 changes: 40 additions & 0 deletions
40
tests/cisco_asa/show_license_all/cisco_asa_show_license_all2.raw
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,40 @@ | ||
|
||
Smart Licensing Status | ||
====================== | ||
|
||
Smart Licensing is ENABLED | ||
|
||
Registration: | ||
Status: REGISTERED | ||
Smart Account: COMPANY LLC | ||
Virtual Account: Company LLC | ||
Export-Controlled Functionality: Allowed | ||
Initial Registration: SUCCEEDED on Dec 03 16:43:48 2018 UTC | ||
Last Renewal Attempt: FAILED on Dec 03 18:40:22 2018 UTC | ||
Failure reason: Communication message send error | ||
Next Renewal Attempt: Dec 03 18:56:01 2018 UTC | ||
Registration Expires: Dec 03 16:37:44 2019 UTC | ||
|
||
License Authorization: | ||
Status: AUTHORIZED on Dec 03 18:40:28 2018 UTC | ||
Last Communication Attempt: FAILED on Dec 03 18:40:28 2018 UTC | ||
Failure reason: Communication message send error | ||
Next Communication Attempt: Dec 03 18:40:57 2018 UTC | ||
Communication Deadline: Mar 03 16:37:55 2019 UTC | ||
|
||
License Usage | ||
============== | ||
|
||
ASAv5 Standard - 100M (ASAv-STD-100M): | ||
Description: ASAv5 Standard - 100M | ||
Count: 1 | ||
Version: 1.0 | ||
Status: AUTHORIZED | ||
|
||
Product Information | ||
=================== | ||
UDI: PID:ASAv,SN:9A6PGB43PJC | ||
|
||
Agent Version | ||
============= | ||
Smart Agent for Licensing: 1.6.14_rel/129 |
31 changes: 31 additions & 0 deletions
31
tests/cisco_asa/show_license_all/cisco_asa_show_license_all3.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,31 @@ | ||
--- | ||
parsed_sample: | ||
- smart_status: "ENABLED" | ||
registration_status: "UNREGISTERED" | ||
smart_account: "" | ||
virtual_account: "" | ||
export_controlled: "Not Allowed" | ||
registration_initial_status: "" | ||
registration_initial_date: "" | ||
registration_last_renewal: "" | ||
registration_last_renewal_date: "" | ||
registration_last_renewal_error: "" | ||
registration_next_renewal_date: "" | ||
registration_expiration_date: "" | ||
eval_remaining: "89 days, 1 hours, 33 minutes, 51 seconds" | ||
auth_status: "EVAL MODE" | ||
auth_date: "" | ||
auth_last_communication: "" | ||
auth_last_communication_date: "" | ||
auth_fail_error: "" | ||
auth_next_communication_date: "" | ||
auth_deadline: "" | ||
license: "" | ||
license_pid: "ASAv-STD-100M" | ||
license_description: "" | ||
license_count: "1" | ||
license_version: "1.0" | ||
license_status: "EVAL MODE" | ||
pid: "ASAv" | ||
sn: "9A6PGB43PJC" | ||
smart_agent_version: "1.6.14_rel/129" |
30 changes: 30 additions & 0 deletions
30
tests/cisco_asa/show_license_all/cisco_asa_show_license_all3.raw
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,30 @@ | ||
|
||
Smart Licensing Status | ||
====================== | ||
|
||
Smart Licensing is ENABLED | ||
|
||
Registration: | ||
Status: UNREGISTERED | ||
Export-Controlled Functionality: Not Allowed | ||
|
||
License Authorization: | ||
Status: EVAL MODE | ||
Evaluation Period Remaining: 89 days, 1 hours, 33 minutes, 51 seconds | ||
|
||
License Usage | ||
============== | ||
|
||
(ASAv-STD-100M): | ||
Description: | ||
Count: 1 | ||
Version: 1.0 | ||
Status: EVAL MODE | ||
|
||
Product Information | ||
=================== | ||
UDI: PID:ASAv,SN:9A6PGB43PJC | ||
|
||
Agent Version | ||
============= | ||
Smart Agent for Licensing: 1.6.14_rel/129 |