-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create cisco_ios_show_license_status (#1803)
- Loading branch information
Showing
10 changed files
with
373 additions
and
0 deletions.
There are no files selected for viewing
76 changes: 76 additions & 0 deletions
76
ntc_templates/templates/cisco_ios_show_license_status.textfsm
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,76 @@ | ||
Value SL_ENABLED (\S+) | ||
Value TRANSPORT_TYPE (.*) | ||
Value URL (\S+) | ||
Value PROXY_ADDRESS (\S+) | ||
Value PROXY_PORT (\d+) | ||
Value PROXY_USERNAME (\S+) | ||
Value PROXY_PASSWORD (\S+) | ||
Value VRF (\S+) | ||
Value REG_STATUS (\S+) | ||
Value VIRT_ACCT (.*) | ||
Value SMART_ACCT (.*?) | ||
Value LICENSE_AUTH (.*) | ||
Value LAST_ACK_RECEIVED (.*) | ||
Value NEXT_ACK_DEADLINE (.*) | ||
Value RPT_PUSH_INTERVAL (.*) | ||
Value NEXT_ACK_PUSH_CHECK (.*) | ||
Value NEXT_RPT_PUSH (.*) | ||
Value LAST_RPT_PUSH (.*) | ||
Value LAST_RPT_FILE_WRITE (.*) | ||
|
||
Start | ||
^Smart\s+Licensing\s+is\s+${SL_ENABLED}\s*$$ | ||
^Smart\s+Licensing\s+Using\s+Policy:\s*$$ -> UsingPolicy | ||
^Transport:\s*$$ -> Transport | ||
^Registration:\s*$$ -> Registration | ||
^Account\s+Information:\s*$$ -> Registration | ||
^License\s+Authorization:\s*$$ -> LicenseAuth | ||
^Usage\s+Reporting:\s*$$ -> UsageReporting | ||
# match other sections | ||
^\s*(\S+\s*)+$$ | ||
^\s*$$ | ||
^. -> Error | ||
|
||
UsingPolicy | ||
^\s+Status:\s+${SL_ENABLED}\s*$$ | ||
^\s*$$ -> Start | ||
^. -> Error | ||
|
||
Transport | ||
^\s+Type:\s+${TRANSPORT_TYPE}\s*$$ | ||
^\s+URL:\s+${URL}\s*$$ | ||
^\s+Address:\s+${PROXY_ADDRESS}\s*$$ | ||
^\s+Port:\s+${PROXY_PORT}\s*$$ | ||
^\s+Username:\s+${PROXY_USERNAME}\s*$$ | ||
^\s+Password:\s+${PROXY_PASSWORD}\s*$$ | ||
^\s+VRF:\s+${VRF}\s*$$ | ||
^\s+(\S+\s*)+$$ | ||
^\s*$$ -> Start | ||
^. -> Error | ||
|
||
Registration | ||
^\s+Status:\s+${REG_STATUS}\s*$$ | ||
^\s+Smart\s+Account:\s+${SMART_ACCT}(\s+As\s+of(\s+\S+)+)?\s*$$ | ||
^\s+Virtual\s+Account:\s+${VIRT_ACCT}\s*$$ | ||
# match other lines | ||
^\s+(\S+\s*)+$$ | ||
^\s*$$ -> Start | ||
^. -> Error | ||
|
||
LicenseAuth | ||
^\s+Status:\s+${LICENSE_AUTH}(\s+\S+){6}$$ | ||
# match other lines | ||
^\s+(\S+\s*)+$$ | ||
^\s*$$ -> Start | ||
^. -> Error | ||
|
||
UsageReporting | ||
^\s+Last\s+ACK\s+received:\s+${LAST_ACK_RECEIVED}\s*$$ | ||
^\s+Next\s+ACK\s+deadline:\s+${NEXT_ACK_DEADLINE}\s*$$ | ||
^\s+Reporting\s+push\s+interval:\s+${RPT_PUSH_INTERVAL}\s*$$ | ||
^\s+Next\s+ACK\s+push\s+check:\s+${NEXT_ACK_PUSH_CHECK}\s*$$ | ||
^\s+Next\s+report\s+push:\s+${NEXT_RPT_PUSH}\s*$$ | ||
^\s+Last\s+report\s+push:\s+${LAST_RPT_PUSH}\s*$$ | ||
^\s+Last\s+report\s+file\s+write:\s+${LAST_RPT_FILE_WRITE}\s*$$ | ||
^\s*$$ -> Start | ||
^. -> 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
33 changes: 33 additions & 0 deletions
33
tests/cisco_ios/show_license_status/cisco_ios_show_license_status1.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,33 @@ | ||
Smart Licensing is ENABLED | ||
|
||
Utility: | ||
Status: DISABLED | ||
|
||
Data Privacy: | ||
Sending Hostname: yes | ||
Callhome hostname privacy: DISABLED | ||
Smart Licensing hostname privacy: DISABLED | ||
Version privacy: DISABLED | ||
|
||
Transport: | ||
Type: Callhome | ||
|
||
Registration: | ||
Status: REGISTERED | ||
Smart Account: ACME Corporation | ||
Virtual Account: Wile E. Coyote | ||
Export-Controlled Functionality: ALLOWED | ||
Initial Registration: SUCCEEDED on Aug 22 18:58:03 2022 UTC | ||
Last Renewal Attempt: None | ||
Next Renewal Attempt: Feb 18 18:58:03 2023 UTC | ||
Registration Expires: Aug 22 18:52:49 2023 UTC | ||
|
||
License Authorization: | ||
Status: OUT OF COMPLIANCE on Aug 22 18:58:17 2022 UTC | ||
Last Communication Attempt: SUCCEEDED on Aug 22 18:58:17 2022 UTC | ||
Next Communication Attempt: Aug 23 06:58:17 2022 UTC | ||
Communication Deadline: Nov 20 18:53:16 2022 UTC | ||
|
||
Export Authorization Key: | ||
Features Authorized: | ||
<none> |
21 changes: 21 additions & 0 deletions
21
tests/cisco_ios/show_license_status/cisco_ios_show_license_status1.yml
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,21 @@ | ||
--- | ||
parsed_sample: | ||
- last_ack_received: "" | ||
last_rpt_file_write: "" | ||
last_rpt_push: "" | ||
license_auth: "OUT OF COMPLIANCE" | ||
next_ack_deadline: "" | ||
next_ack_push_check: "" | ||
next_rpt_push: "" | ||
proxy_address: "" | ||
proxy_password: "" | ||
proxy_port: "" | ||
proxy_username: "" | ||
reg_status: "REGISTERED" | ||
rpt_push_interval: "" | ||
sl_enabled: "ENABLED" | ||
smart_acct: "ACME Corporation" | ||
transport_type: "Callhome" | ||
url: "" | ||
virt_acct: "Wile E. Coyote" | ||
vrf: "" |
54 changes: 54 additions & 0 deletions
54
tests/cisco_ios/show_license_status/cisco_ios_show_license_status2.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,54 @@ | ||
Utility: | ||
Status: DISABLED | ||
|
||
Smart Licensing Using Policy: | ||
Status: ENABLED | ||
|
||
Account Information: | ||
Smart Account: <none> | ||
Virtual Account: <none> | ||
|
||
Data Privacy: | ||
Sending Hostname: yes | ||
Callhome hostname privacy: DISABLED | ||
Smart Licensing hostname privacy: DISABLED | ||
Version privacy: DISABLED | ||
|
||
Transport: | ||
Type: Transport Off | ||
|
||
Policy: | ||
Policy in use: Merged from multiple sources. | ||
Reporting ACK required: yes (CISCO default) | ||
Unenforced/Non-Export Perpetual Attributes: | ||
First report requirement (days): 365 (CISCO default) | ||
Reporting frequency (days): 0 (CISCO default) | ||
Report on change (days): 90 (CISCO default) | ||
Unenforced/Non-Export Subscription Attributes: | ||
First report requirement (days): 90 (CISCO default) | ||
Reporting frequency (days): 90 (CISCO default) | ||
Report on change (days): 90 (CISCO default) | ||
Enforced (Perpetual/Subscription) License Attributes: | ||
First report requirement (days): 0 (CISCO default) | ||
Reporting frequency (days): 0 (CISCO default) | ||
Report on change (days): 0 (CISCO default) | ||
Export (Perpetual/Subscription) License Attributes: | ||
First report requirement (days): 0 (CISCO default) | ||
Reporting frequency (days): 0 (CISCO default) | ||
Report on change (days): 0 (CISCO default) | ||
|
||
Miscellaneous: | ||
Custom Id: <empty> | ||
|
||
Usage Reporting: | ||
Last ACK received: Nov 08 10:31:23 2023 EDT | ||
Next ACK deadline: Feb 06 10:31:23 2024 EDT | ||
Reporting push interval: 30 days | ||
Next ACK push check: <none> | ||
Next report push: Jun 12 11:09:56 2024 EDT | ||
Last report push: Nov 09 11:18:00 2023 EDT | ||
Last report file write: <none> | ||
|
||
Trust Code Installed: <none> | ||
|
||
|
21 changes: 21 additions & 0 deletions
21
tests/cisco_ios/show_license_status/cisco_ios_show_license_status2.yml
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,21 @@ | ||
--- | ||
parsed_sample: | ||
- last_ack_received: "Nov 08 10:31:23 2023 EDT" | ||
last_rpt_file_write: "<none>" | ||
last_rpt_push: "Nov 09 11:18:00 2023 EDT" | ||
license_auth: "" | ||
next_ack_deadline: "Feb 06 10:31:23 2024 EDT" | ||
next_ack_push_check: "<none>" | ||
next_rpt_push: "Jun 12 11:09:56 2024 EDT" | ||
proxy_address: "" | ||
proxy_password: "" | ||
proxy_port: "" | ||
proxy_username: "" | ||
reg_status: "" | ||
rpt_push_interval: "30 days" | ||
sl_enabled: "ENABLED" | ||
smart_acct: "<none>" | ||
transport_type: "Transport Off" | ||
url: "" | ||
virt_acct: "<none>" | ||
vrf: "" |
61 changes: 61 additions & 0 deletions
61
tests/cisco_ios/show_license_status/cisco_ios_show_license_status3.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,61 @@ | ||
|
||
Utility: | ||
Status: DISABLED | ||
|
||
Smart Licensing Using Policy: | ||
Status: ENABLED | ||
|
||
Account Information: | ||
Smart Account: Eg-SA As of Dec 03 15:26:02 2021 UTC | ||
Virtual Account: Eg-VA | ||
|
||
Data Privacy: | ||
Sending Hostname: yes | ||
Callhome hostname privacy: DISABLED | ||
Smart Licensing hostname privacy: DISABLED | ||
Version privacy: DISABLED | ||
|
||
Transport: | ||
Type: Smart | ||
URL: https://smartreceiver.cisco.com/licservice/license | ||
Proxy: | ||
Not Configured | ||
VRF: | ||
Not Configured | ||
|
||
Policy: | ||
Policy in use: Installed On Dec 03 08:23:45 2021 UTC | ||
Policy name: SLE Policy | ||
Reporting ACK required: yes (Customer Policy) | ||
Unenforced/Non-Export Perpetual Attributes: | ||
First report requirement (days): 30 (Customer Policy) | ||
Reporting frequency (days): 60 (Customer Policy) | ||
Report on change (days): 60 (Customer Policy) | ||
Unenforced/Non-Export Subscription Attributes: | ||
First report requirement (days): 120 (Customer Policy) | ||
Reporting frequency (days): 111 (Customer Policy) | ||
Report on change (days): 111 (Customer Policy) | ||
Enforced (Perpetual/Subscription) License Attributes: | ||
First report requirement (days): 30 (Customer Policy) | ||
Reporting frequency (days): 90 (Customer Policy) | ||
Report on change (days): 60 (Customer Policy) | ||
Export (Perpetual/Subscription) License Attributes: | ||
First report requirement (days): 30 (Customer Policy) | ||
Reporting frequency (days): 30 (Customer Policy) | ||
Report on change (days): 30 (Customer Policy) | ||
|
||
Miscellaneous: | ||
Custom Id: <empty> | ||
|
||
Usage Reporting: | ||
Last ACK received: Dec 03 08:34:58 2021 UTC | ||
Next ACK deadline: Jan 02 08:34:58 2022 UTC | ||
Reporting push interval: 30 days | ||
Next ACK push check: Dec 07 08:31:32 2021 UTC | ||
Next report push: Jan 02 08:30:57 2022 UTC | ||
Last report push: Dec 03 08:30:57 2021 UTC | ||
Last report file write: <none> | ||
|
||
Trust Code Installed: Dec 03 08:23:45 2021 UTC | ||
|
||
|
21 changes: 21 additions & 0 deletions
21
tests/cisco_ios/show_license_status/cisco_ios_show_license_status3.yml
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,21 @@ | ||
--- | ||
parsed_sample: | ||
- last_ack_received: "Dec 03 08:34:58 2021 UTC" | ||
last_rpt_file_write: "<none>" | ||
last_rpt_push: "Dec 03 08:30:57 2021 UTC" | ||
license_auth: "" | ||
next_ack_deadline: "Jan 02 08:34:58 2022 UTC" | ||
next_ack_push_check: "Dec 07 08:31:32 2021 UTC" | ||
next_rpt_push: "Jan 02 08:30:57 2022 UTC" | ||
proxy_address: "" | ||
proxy_password: "" | ||
proxy_port: "" | ||
proxy_username: "" | ||
reg_status: "" | ||
rpt_push_interval: "30 days" | ||
sl_enabled: "ENABLED" | ||
smart_acct: "Eg-SA" | ||
transport_type: "Smart" | ||
url: "https://smartreceiver.cisco.com/licservice/license" | ||
virt_acct: "Eg-VA" | ||
vrf: "" |
64 changes: 64 additions & 0 deletions
64
tests/cisco_ios/show_license_status/cisco_ios_show_license_status4.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,64 @@ | ||
Utility: | ||
Status: DISABLED | ||
|
||
Smart Licensing Using Policy: | ||
Status: ENABLED | ||
|
||
Account Information: | ||
Smart Account: Sample Smart Account As of Aug 03 09:03:25 2024 est | ||
Virtual Account: DEFAULT | ||
|
||
Data Privacy: | ||
Sending Hostname: yes | ||
Callhome hostname privacy: DISABLED | ||
Smart Licensing hostname privacy: DISABLED | ||
Version privacy: DISABLED | ||
|
||
Transport: | ||
Type: Smart | ||
URL: https://smartreceiver.cisco.com/licservice/license | ||
Proxy: | ||
Address: proxy.foo.bar.com | ||
Port: 80 | ||
Username: <empty> | ||
Password: <empty> | ||
VRF: <empty> | ||
|
||
Policy: | ||
Policy in use: Merged from multiple sources. | ||
Reporting ACK required: yes (CISCO default) | ||
Unenforced/Non-Export Perpetual Attributes: | ||
First report requirement (days): 365 (CISCO default) | ||
Reporting frequency (days): 0 (CISCO default) | ||
Report on change (days): 90 (CISCO default) | ||
Unenforced/Non-Export Subscription Attributes: | ||
First report requirement (days): 90 (CISCO default) | ||
Reporting frequency (days): 90 (CISCO default) | ||
Report on change (days): 90 (CISCO default) | ||
Enforced (Perpetual/Subscription) License Attributes: | ||
First report requirement (days): 0 (CISCO default) | ||
Reporting frequency (days): 0 (CISCO default) | ||
Report on change (days): 0 (CISCO default) | ||
Export (Perpetual/Subscription) License Attributes: | ||
First report requirement (days): 0 (CISCO default) | ||
Reporting frequency (days): 0 (CISCO default) | ||
Report on change (days): 0 (CISCO default) | ||
|
||
Miscellaneous: | ||
Custom Id: <empty> | ||
|
||
Usage Reporting: | ||
Last ACK received: Aug 03 09:03:25 2024 est | ||
Next ACK deadline: Aug 03 09:03:25 2025 est | ||
Reporting push interval: 0 (no reporting) | ||
Next ACK push check: Aug 03 09:05:29 2024 est | ||
Next report push: <none> | ||
Last report push: Aug 03 09:03:26 2024 est | ||
Last report file write: <none> | ||
|
||
Trust Code Installed: Aug 03 09:02:50 2024 est | ||
|
||
Device Telemetry Report Summary: | ||
================================ | ||
Data Channel: AVAILABLE | ||
Reports on disk: 0 |
21 changes: 21 additions & 0 deletions
21
tests/cisco_ios/show_license_status/cisco_ios_show_license_status4.yml
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,21 @@ | ||
--- | ||
parsed_sample: | ||
- last_ack_received: "Aug 03 09:03:25 2024 est" | ||
last_rpt_file_write: "<none>" | ||
last_rpt_push: "Aug 03 09:03:26 2024 est" | ||
license_auth: "" | ||
next_ack_deadline: "Aug 03 09:03:25 2025 est" | ||
next_ack_push_check: "Aug 03 09:05:29 2024 est" | ||
next_rpt_push: "<none>" | ||
proxy_address: "proxy.foo.bar.com" | ||
proxy_password: "<empty>" | ||
proxy_port: "80" | ||
proxy_username: "<empty>" | ||
reg_status: "" | ||
rpt_push_interval: "0 (no reporting)" | ||
sl_enabled: "ENABLED" | ||
smart_acct: "Sample Smart Account" | ||
transport_type: "Smart" | ||
url: "https://smartreceiver.cisco.com/licservice/license" | ||
virt_acct: "DEFAULT" | ||
vrf: "<empty>" |