Skip to content

Commit

Permalink
New Template: cisco_nxos_show_license_usage.textfsm (networktocode#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
network-dave authored Jun 23, 2020
1 parent fdd5328 commit 885ea18
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 0 deletions.
18 changes: 18 additions & 0 deletions templates/cisco_nxos_show_license_usage.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Value FEATURE (\S+)
Value INSTALLED (Yes|No)
Value LICENSE_COUNT (\d+|-)
Value STATUS (Unused|In\s+use)
Value EXPIRY_DATE (\S+|\s*?)
Value COMMENTS (.+)

Start
^Feature\s+Ins\s+Lic\s+Status\s+Expiry\s+Date\s+Comments -> Begin
^\s*$$
^. -> Error

Begin
^\s+Count
^${FEATURE}\s+${INSTALLED}\s+${LICENSE_COUNT}\s+${STATUS}\s+?${EXPIRY_DATE}\s+${COMMENTS}\s*$$ -> Record
^-+\s*$$
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ cisco_nxos_show_ip_bgp_summary.textfsm, .*, cisco_nxos, sh[[ow]] ip b[[gp]] s[[u
cisco_nxos_show_lldp_neighbors.textfsm, .*, cisco_nxos, sh[[ow]] ll[[dp]] nei[[ghbors]]
cisco_nxos_show_cdp_neighbors.textfsm, .*, cisco_nxos, sh[[ow]] cd[[p]] neig[[hbors]]
cisco_nxos_show_ip_arp_detail.textfsm, .*, cisco_nxos, sh[[ow]] i[[p]] a[[rp]] det[[ail]]
cisco_nxos_show_license_usage.textfsm, .*, cisco_nxos, sh[[ow]] lic[[ense]] us[[age]]
cisco_nxos_show_processes_cpu.textfsm, .*, cisco_nxos, sh[[ow]] proc[[esses]] c[[pu]]
cisco_nxos_show_vrf_interface.textfsm, .*, cisco_nxos, sh[[ow]] vrf int[[erface]]
cisco_nxos_show_access-lists.textfsm, .*, cisco_nxos, sh[[ow]] acc[[ess-lists]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

Feature Ins Lic Status Expiry Date Comments
Count
--------------------------------------------------------------------------------
MPLS_PKG No - Unused Grace 10D 1H
STORAGE-ENT No - Unused Grace 20D 6H
VDC_LICENSES No 0 Unused -
ENTERPRISE_PKG No - Unused -
FCOE-N7K-F132XP No 0 Unused -
FCOE-N7K-F248XP No 0 Unused -
ENHANCED_LAYER2_PKG No - Unused Grace 20D 6H
SCALABLE_SERVICES_PKG No - Unused -
TRANSPORT_SERVICES_PKG Yes - Unused Never -
LAN_ADVANCED_SERVICES_PKG Yes - Unused Never -
LAN_ENTERPRISE_SERVICES_PKG Yes - In use Never -
--------------------------------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
parsed_sample:
- feature: "MPLS_PKG"
installed: "No"
license_count: "-"
status: "Unused"
expiry_date: ""
comments: "Grace 10D 1H"
- feature: "STORAGE-ENT"
installed: "No"
license_count: "-"
status: "Unused"
expiry_date: ""
comments: "Grace 20D 6H"
- feature: "VDC_LICENSES"
installed: "No"
license_count: "0"
status: "Unused"
expiry_date: ""
comments: "-"
- feature: "ENTERPRISE_PKG"
installed: "No"
license_count: "-"
status: "Unused"
expiry_date: ""
comments: "-"
- feature: "FCOE-N7K-F132XP"
installed: "No"
license_count: "0"
status: "Unused"
expiry_date: ""
comments: "-"
- feature: "FCOE-N7K-F248XP"
installed: "No"
license_count: "0"
status: "Unused"
expiry_date: ""
comments: "-"
- feature: "ENHANCED_LAYER2_PKG"
installed: "No"
license_count: "-"
status: "Unused"
expiry_date: ""
comments: "Grace 20D 6H"
- feature: "SCALABLE_SERVICES_PKG"
installed: "No"
license_count: "-"
status: "Unused"
expiry_date: ""
comments: "-"
- feature: "TRANSPORT_SERVICES_PKG"
installed: "Yes"
license_count: "-"
status: "Unused"
expiry_date: "Never"
comments: "-"
- feature: "LAN_ADVANCED_SERVICES_PKG"
installed: "Yes"
license_count: "-"
status: "Unused"
expiry_date: "Never"
comments: "-"
- feature: "LAN_ENTERPRISE_SERVICES_PKG"
installed: "Yes"
license_count: "-"
status: "In use"
expiry_date: "Never"
comments: "-"

0 comments on commit 885ea18

Please sign in to comment.