Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Template: cisco_ios_show_license #440

Closed
bwks opened this issue Jul 23, 2019 · 1 comment · Fixed by #533
Closed

New Template: cisco_ios_show_license #440

bwks opened this issue Jul 23, 2019 · 1 comment · Fixed by #533

Comments

@bwks
Copy link

bwks commented Jul 23, 2019

ISSUE TYPE
  • Feature Idea
SUMMARY

I am proposing the addition of a new template to parse the licensing details from Cisco IOS devices. Assuming you are happy to accept a PR I will raise a PR against this issue.

TEMPLATE
Value FEATURE (\w+)
Value PERIOD_LEFT (.*)
Value PERIOD_USED (.*)
Value LICENSE_TYPE (.*)
Value LICENSE_STATE (.*)
Value LICENSE_COUNT (.*)
Value LICENSE_PRIORITY (.*)

Start
  ^Index\s\d\sFeature:\s${FEATURE}\s+$$
  ^\s+Period left:\s${PERIOD_LEFT}$$
  ^\s+Period Used:\s${PERIOD_USED}$$
  ^\s+License Type:\s${LICENSE_TYPE}$$
  ^\s+License State:\s${LICENSE_STATE}$$
  ^\s+License Count:\s${LICENSE_COUNT}$$
  ^\s+License Priority:\s${LICENSE_PRIORITY}$$ -> Record
Parsed output
[['appxk9',
  'Life time',
  '',
  'Permanent',
  'Active, In Use',
  'Non-Counted',
  'Medium'],
 ['uck9',
  'Not Activated',
  '0  minute  0  second  ',
  'EvalRightToUse',
  'Active, Not in Use, EULA not accepted',
  'Non-Counted',
  'None'],
 ['securityk9',
  'Life time',
  '',
  'Permanent',
  'Active, In Use',
  'Non-Counted',
  'Medium'],
 ['ipbasek9',
  'Life time',
  '',
  'Permanent',
  'Active, In Use',
  'Non-Counted',
  'Medium'],
 ['FoundationSuiteK9',
  'Not Activated',
  '0  minute  0  second  ',
  'EvalRightToUse',
  'Active, Not in Use, EULA not accepted',
  'Non-Counted',
  'None'],
 ['AdvUCSuiteK9',
  'Not Activated',
  '0  minute  0  second  ',
  'EvalRightToUse',
  'Active, Not in Use, EULA not accepted',
  'Non-Counted',
  'None'],
 ['',
  'Not Activated',
  '0  minute  0  second  ',
  'EvalRightToUse',
  'Active, Not in Use, EULA not accepted',
  '0/0  (In-use/Violation)',
  'None'],
 ['hseck9',
  'Life time',
  '',
  'Permanent',
  'Active, In Use',
  'Non-Counted',
  'Medium'],
 ['throughput',
  'Not Activated',
  '0  minute  0  second  ',
  'EvalRightToUse',
  'Active, Not in Use, EULA not accepted',
  'Non-Counted',
  'None']]
@bwks
Copy link
Author

bwks commented Nov 4, 2019

Thanks for finishing this one up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants