show license
show license
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "sh license",
"msg": "Success",
"code": "200",
"body": {
"lic_file_name": [
"lan_copy.lic",
"365day_17nov.lic"
],
"lic_file_contents": [
"SERVER this_host ANY\nVENDOR cisco\nINCREMENT LAN_ENTERPRISE_SERVICES_PKG cisco 1.0 permanent uncounted \\\n VENDOR_STRING=<LIC_SOURCE>MDS_SWIFT</LIC_SOURCE><SKU>N7K-LAN1K9=</SKU> \\\n HOSTID=VDH=JAF1633BQDB \\\n NOTICE=\"<LicFileID>20180608144153474</LicFileID><LicLineID>1</LicLineID> \\\n <PAK></PAK>\" SIGN=0EF2A49E657A\n",
"SERVER this_host ANY\nVENDOR cisco\nINCREMENT ENHANCED_LAYER2_PKG cisco 1.0 17-nov-2018 uncounted \\\n VENDOR_STRING=<LIC_SOURCE>MDS_SWIFT</LIC_SOURCE><SKU>N7K-EL21K9=</SKU> \\\n HOSTID=VDH=JAF1633BQDB \\\n NOTICE=\"<LicFileID>20171117055614027</LicFileID><LicLineID>1</LicLineID> \\\n <PAK></PAK>\" SIGN=F763E5EC93B2\n"
]
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<lic_file_name>lan_copy.lic</lic_file_name>
<lic_file_contents>SERVER this_host ANY
VENDOR cisco
INCREMENT LAN_ENTERPRISE_SERVICES_PKG cisco 1.0 permanent uncounted \
VENDOR_STRING=<LIC_SOURCE>MDS_SWIFT</LIC_SOURCE>
<SKU>N7K-LAN1K9=</SKU> \
HOSTID=VDH=JAF1633BQDB \
NOTICE="<LicFileID>20180608144153474</LicFileID>
<LicLineID>1</LicLineID> \
<PAK/>" SIGN=0EF2A49E657A
</lic_file_contents>
<lic_file_name>365day_17nov.lic</lic_file_name>
<lic_file_contents>SERVER this_host ANY
VENDOR cisco
INCREMENT ENHANCED_LAYER2_PKG cisco 1.0 17-nov-2018 uncounted \
VENDOR_STRING=<LIC_SOURCE>MDS_SWIFT</LIC_SOURCE>
<SKU>N7K-EL21K9=</SKU> \
HOSTID=VDH=JAF1633BQDB \
NOTICE="<LicFileID>20171117055614027</LicFileID>
<LicLineID>1</LicLineID> \
<PAK/>" SIGN=F763E5EC93B2
</lic_file_contents>
</body>
<input>sh license</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display license information, use the show license command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
show license all
show license all
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license all",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "sh license all",
"msg": "Success",
"code": "200",
"body": {
"smart_status": "ENABLED",
"smart_version": {
"version": "3.2.1_rel/11"
},
"TABLE_smart_feat_info": {
"ROW_smart_feat_info": [
{
"feature_name": "\n(ENHANCED_LAYER2_PKG):",
"description": "This entitlement tag was created via Alpha Extension application",
"count": "1",
"version": "1.0",
"status": "AUTHORIZED"
},
{
"feature_name": "\n(LAN_ENTERPRISE_SERVICES_PKG):",
"description": "This entitlement tag was created via Alpha Extension application",
"count": "1",
"version": "1.0",
"status": "AUTHORIZED"
},
{
"feature_name": "\n(VDC_LICENSES):",
"description": "This entitlement tag was created via Alpha Extension application",
"count": "3",
"version": "1.0",
"status": "OUT OF COMPLIANCE"
}
]
},
"local_udi": {
"local_sn": "JAF1633BQDB"
},
"smart_reg_info": {
"reg_status": "REGISTERED",
"smart_account": "Nexus7004",
"virtual_account": "Default",
"export_controlled": "Allowed",
"initial_reg": "SUCCEEDED on Jul 12 09:28:16 2018 UTC",
"last_renew_attempt": "None",
"next_renew_attempt": "Jan 8 09:28:16 2019 UTC",
"reg_expire_time": "Jul 12 09:26:02 2019 UTC"
},
"smart_dlc_info": {
"autoconv_status": "False",
"conv_status": "Polling",
"conv_next_time": " Next response check: on Sep 7 06:05:39 2017 UTC"
},
"smart_auth_info": {
"auth_status": "OUT OF COMPLIANCE",
"last_attempt": "SUCCEEDED on Jul 12 09:28:30 2018 UTC",
"next_attempt": "Jul 12 21:28:30 2018 UTC",
"auth_expire_time": "Oct 10 09:26:16 2018 UTC"
}
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<smart_status>ENABLED</smart_status>
<smart_reg_info>
<reg_status>REGISTERED</reg_status>
<smart_account>Nexus7004</smart_account>
<virtual_account>Default</virtual_account>
<export_controlled>Allowed</export_controlled>
<initial_reg>SUCCEEDED on Jul 12 09:28:16 2018 UTC</initial_reg>
<last_renew_attempt>None</last_renew_attempt>
<next_renew_attempt>Jan 8 09:28:16 2019 UTC</next_renew_attempt>
<reg_expire_time>Jul 12 09:26:02 2019 UTC</reg_expire_time>
</smart_reg_info>
<smart_auth_info>
<auth_status>OUT OF COMPLIANCE</auth_status>
<last_attempt>SUCCEEDED on Jul 12 09:28:30 2018 UTC</last_attempt>
<next_attempt>Jul 12 21:28:30 2018 UTC</next_attempt>
<auth_expire_time>Oct 10 09:26:16 2018 UTC</auth_expire_time>
</smart_auth_info>
<smart_dlc_info>
<autoconv_status>False</autoconv_status>
<conv_status>Polling</conv_status>
<conv_next_time> Next response check: on Sep 7 06:05:39 2017 UTC</conv_next_time>
</smart_dlc_info>
<TABLE_smart_feat_info>
<ROW_smart_feat_info>
<feature_name>
(ENHANCED_LAYER2_PKG):</feature_name>
<description>This entitlement tag was created via Alpha Extension application</description>
<count>1</count>
<version>1.0</version>
<status>AUTHORIZED</status>
</ROW_smart_feat_info>
<ROW_smart_feat_info>
<feature_name>
(LAN_ENTERPRISE_SERVICES_PKG):</feature_name>
<description>This entitlement tag was created via Alpha Extension application</description>
<count>1</count>
<version>1.0</version>
<status>AUTHORIZED</status>
</ROW_smart_feat_info>
<ROW_smart_feat_info>
<feature_name>
(VDC_LICENSES):</feature_name>
<description>This entitlement tag was created via Alpha Extension application</description>
<count>3</count>
<version>1.0</version>
<status>OUT OF COMPLIANCE</status>
</ROW_smart_feat_info>
</TABLE_smart_feat_info>
<local_udi>
<local_sn>JAF1633BQDB</local_sn>
</local_udi>
<smart_version>
<version>3.2.1_rel/11</version>
</smart_version>
</body>
<input>sh license all</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display license information, use the show license all command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
Smart Licensing is ENABLED
Registration:
Status: REGISTERED
Smart Account: BU Production Test
Virtual Account: n9k-hamilton-test
Export-Controlled Functionality: Allowed
Initial Registration: SUCCEEDED on Jul 11 05:46:01 2018 UTC
Last Renewal Attempt: None
Next Renewal Attempt: Jan 7 05:46:01 2019 UTC
Registration Expires: Jul 11 05:39:47 2019 UTC
License Authorization:
Status: OUT OF COMPLIANCE
Last Communication Attempt: SUCCEEDED on Jul 11 05:46:35 2018 UTC
Next Communication Attempt: Jul 11 17:46:34 2018 UTC
Communication Deadline: Oct 9 05:40:21 2018 UTC
Smart License Conversion: Automatic Conversion Enabled: False Status: Polling Next response check: on Sep 7 06:05:39 2017 UTC
License Usage
(ENHANCED_LAYER2_PKG):
Description: EL2 license for Nexus 7000,7700 Platforms
Count: 1
Version: 1.0
Status: OUT OF COMPLIANCE
(LAN_ADVANCED_SERVICES_PKG):
Description: ADV license for Nexus 7000 Platforms
Count: 1
Version: 1.0
Status: OUT OF COMPLIANCE
(LAN_ENTERPRISE_SERVICES_PKG):
Description: LAN license for Nexus 7000,7700 Platforms
Count: 1
Version: 1.0
Status: OUT OF COMPLIANCE
Product Information
UDI: SN:JAF1633BQDB
Agent Version
Smart Agent for Licensing: 3.2.1_rel/11
show license brief
show license brief
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license brief",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "sh license brief",
"msg": "Success",
"code": "200",
"body": {
"lic_file_name": [
"lan_copy.lic",
"365day_17nov.lic"
]
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<lic_file_name>lan_copy.lic</lic_file_name>
<lic_file_name>365day_17nov.lic</lic_file_name>
</body>
<input>sh license brief</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display license information, use the show license brief command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
show license feature package mapping
show license feature package mapping
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license feature package mapping",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show license feature package mapping",
"msg": "Success",
"code": "200",
"body": {
"app_name": [
"fcoe",
"lisp",
"mpls_te",
"l3vpn",
"ldp"
],
"lc_type": [
"N7K-F132XP",
"N7K-F248XP",
"N7K-F312FQ",
"N7K-F348XP",
"N77-F324FQ",
"N77-F348XP",
"N77-F436FQ",
"SUP",
"SUP",
"SUP",
"SUP"
],
"flags": [
"0x1",
"0x1",
"0x1",
"0x1",
"0x1",
"0x1",
"0x1",
"0x1",
"0x1",
"0x1",
"0x1"
],
"pkg_name": [
"FCOE-N7K-F132XP",
"FCOE-N7K-F248XP",
"FCOE-N7K-F312FQ",
"FCOE-N7K-F348XP",
"FCOE-N77-F324FQ",
"FCOE-N77-F348XP",
"FCOE-N77-F436FQ",
"LAN_ENTERPRISE_SERVICES_PKG",
"MPLS_PKG",
"MPLS_PKG",
"MPLS_PKG"
],
"version": [
"1.0",
"1.0",
"1.0",
"1.0",
"1.0",
"1.0",
"1.0",
"1.0",
"1.0",
"1.0",
"1.0"
]
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<app_name>fcoe</app_name>
<lc_type>N7K-F132XP</lc_type>
<flags>0x1</flags>
<pkg_name>FCOE-N7K-F132XP</pkg_name>
<version>1.0</version>
<lc_type>N7K-F248XP</lc_type>
<flags>0x1</flags>
<pkg_name>FCOE-N7K-F248XP</pkg_name>
<version>1.0</version>
<lc_type>N7K-F312FQ</lc_type>
<flags>0x1</flags>
<pkg_name>FCOE-N7K-F312FQ</pkg_name>
<version>1.0</version>
<lc_type>N7K-F348XP</lc_type>
<flags>0x1</flags>
<pkg_name>FCOE-N7K-F348XP</pkg_name>
<version>1.0</version>
<lc_type>N77-F324FQ</lc_type>
<flags>0x1</flags>
<pkg_name>FCOE-N77-F324FQ</pkg_name>
<version>1.0</version>
<lc_type>N77-F348XP</lc_type>
<flags>0x1</flags>
<pkg_name>FCOE-N77-F348XP</pkg_name>
<version>1.0</version>
<lc_type>N77-F436FQ</lc_type>
<flags>0x1</flags>
<pkg_name>FCOE-N77-F436FQ</pkg_name>
<version>1.0</version>
<app_name>lisp</app_name>
<lc_type>SUP</lc_type>
<flags>0x1</flags>
<pkg_name>LAN_ENTERPRISE_SERVICES_PKG</pkg_name>
<version>1.0</version>
<app_name>mpls_te</app_name>
<lc_type>SUP</lc_type>
<flags>0x1</flags>
<pkg_name>MPLS_PKG</pkg_name>
<version>1.0</version>
<app_name>l3vpn</app_name>
<lc_type>SUP</lc_type>
<flags>0x1</flags>
<pkg_name>MPLS_PKG</pkg_name>
<version>1.0</version>
<app_name>ldp</app_name>
<lc_type>SUP</lc_type>
<flags>0x1</flags>
<pkg_name>MPLS_PKG</pkg_name>
<version>1.0</version>
</body>
<input>show license feature package mapping</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display feature-based license information, use the show license feature package mapping command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
show license file
show license file lan_copy.lic
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license file lan_copy.lic",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "sh lic file lan_copy.lic ",
"msg": "Success",
"code": "200",
"body": {
"lic_file_contents": "SERVER this_host ANY\nVENDOR cisco\nINCREMENT LAN_ENTERPRISE_SERVICES_PKG cisco 1.0 permanent uncounted \\\n VENDOR_STRING=<LIC_SOURCE>MDS_SWIFT</LIC_SOURCE><SKU>N7K-LAN1K9=</SKU> \\\n HOSTID=VDH=JAF1633BQDB \\\n NOTICE=\"<LicFileID>20180608144153474</LicFileID><LicLineID>1</LicLineID> \\\n <PAK></PAK>\" SIGN=0EF2A49E657A\n"
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<lic_file_contents>SERVER this_host ANY
VENDOR cisco
INCREMENT LAN_ENTERPRISE_SERVICES_PKG cisco 1.0 permanent uncounted \
VENDOR_STRING=<LIC_SOURCE>MDS_SWIFT</LIC_SOURCE>
<SKU>N7K-LAN1K9=</SKU> \
HOSTID=VDH=JAF1633BQDB \
NOTICE="<LicFileID>20180608144153474</LicFileID>
<LicLineID>1</LicLineID> \
<PAK/>" SIGN=0EF2A49E657A
</lic_file_contents>
</body>
<input>sh lic file lan_copy.lic </input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display license usage information, use the show license file lan_copy.lic command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
show license host-id
show license host-id
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license host-id",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "sh lic host-id",
"msg": "Success",
"code": "200",
"body": {
"host_id": "VDH=JAF1633BQDB"
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<host_id>VDH=JAF1633BQDB</host_id>
</body>
<input>sh lic host-id</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display license usage information, use the show license host-id command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
show license summary
show license summary
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license summary",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "sh license summary",
"msg": "Success",
"code": "200",
"body": {
"smart_status": "ENABLED",
"TABLE_smart_feat_info": {
"ROW_smart_feat_info": [
{
"license_name": "regid.2016-09.com.cisco...",
"feature_name": "(ENHANCED_LAYER2_PKG)",
"count": "1",
"status": "AUTHORIZED"
},
{
"license_name": "regid.2016-09.com.cisco...",
"feature_name": "(LAN_ENTERPRISE_SERVICES_PKG)",
"count": "1",
"status": "AUTHORIZED"
},
{
"license_name": "regid.2016-09.com.cisco...",
"feature_name": "(VDC_LICENSES)",
"count": "3",
"status": "OUT OF COMPLIANCE"
}
]
},
"smart_reg_info": {
"reg_status": "REGISTERED",
"smart_account": "Nexus7004",
"virtual_account": "Default",
"export_controlled": "Allowed"
},
"smart_dlc_info": {
"autoconv_status": "False",
"conv_status": "Polling",
"conv_next_time": " Next response check: on Sep 7 06:05:39 2017 UTC"
},
"smart_auth_info": {
"auth_status": "OUT OF COMPLIANCE",
"eval_period": " on Jul 12 09:28:30 2018 UTC"
}
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<smart_status>ENABLED</smart_status>
<smart_reg_info>
<reg_status>REGISTERED</reg_status>
<smart_account>Nexus7004</smart_account>
<virtual_account>Default</virtual_account>
<export_controlled>Allowed</export_controlled>
</smart_reg_info>
<smart_auth_info>
<auth_status>OUT OF COMPLIANCE</auth_status>
<eval_period> on Jul 12 09:28:30 2018 UTC</eval_period>
</smart_auth_info>
<smart_dlc_info>
<autoconv_status>False</autoconv_status>
<conv_status>Polling</conv_status>
<conv_next_time> Next response check: on Sep 7 06:05:39 2017 UTC</conv_next_time>
</smart_dlc_info>
<TABLE_smart_feat_info>
<ROW_smart_feat_info>
<license_name>regid.2016-09.com.cisco...</license_name>
<feature_name>(ENHANCED_LAYER2_PKG)</feature_name>
<count>1</count>
<status>AUTHORIZED</status>
</ROW_smart_feat_info>
<ROW_smart_feat_info>
<license_name>regid.2016-09.com.cisco...</license_name>
<feature_name>(LAN_ENTERPRISE_SERVICES_PKG)</feature_name>
<count>1</count>
<status>AUTHORIZED</status>
</ROW_smart_feat_info>
<ROW_smart_feat_info>
<license_name>regid.2016-09.com.cisco...</license_name>
<feature_name>(VDC_LICENSES)</feature_name>
<count>3</count>
<status>OUT OF COMPLIANCE</status>
</ROW_smart_feat_info>
</TABLE_smart_feat_info>
</body>
<input>sh license summary</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display license usage information, use the show license summary command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
show license udi
show license udi
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license udi",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
<<missing>>
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<clierror>
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:smartcli" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<license>
<udi>
<__readonly__>
<local_udi>
<local_sn>JAF1633BQDB</local_sn>
</local_udi>
</__readonly__>
</udi>
</license>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]></clierror>
<input>sh license udi</input>
<msg>CLI execution error</msg>
<code>400</code>
</output>
</outputs>
</ins_api>
To display license information, use the show license udi command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
show license usage
show license usage
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license usage",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show license usage",
"msg": "Success",
"code": "200",
"body": {
"TABLE_show_lic_usage": {
"ROW_show_lic_usage": [
{
"feature_name": "MPLS_PKG",
"lic_installed": "No",
"count": " -",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "STORAGE-ENT",
"lic_installed": "No",
"count": " -",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "VDC_LICENSES",
"lic_installed": "No",
"count": " 0",
"status": "In use",
"expiry_date": "",
"comments": "Grace 114D 7H"
},
{
"feature_name": "ENTERPRISE_PKG",
"lic_installed": "No",
"count": " -",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "FCOE-N7K-F132XP",
"lic_installed": "No",
"count": " 0",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "FCOE-N7K-F248XP",
"lic_installed": "No",
"count": " 0",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "FCOE-N7K-F312FQ",
"lic_installed": "No",
"count": " 0",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "FCOE-N7K-F348XP",
"lic_installed": "No",
"count": " 0",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "ENHANCED_LAYER2_PKG",
"lic_installed": "Yes",
"count": " -",
"status": "In use",
"expiry_date": "17 Nov 2018",
"comments": "-"
},
{
"feature_name": "SCALABLE_SERVICES_PKG",
"lic_installed": "No",
"count": " -",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "TRANSPORT_SERVICES_PKG",
"lic_installed": "No",
"count": " -",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "LAN_ADVANCED_SERVICES_PKG",
"lic_installed": "No",
"count": " -",
"status": "Unused",
"expiry_date": "",
"comments": "Grace 118D 19H"
},
{
"feature_name": "LAN_ENTERPRISE_SERVICES_PKG",
"lic_installed": "Yes",
"count": " -",
"status": "In use",
"expiry_date": "never ",
"comments": "-"
}
]
}
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<TABLE_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>MPLS_PKG</feature_name>
<lic_installed>No</lic_installed>
<count> -</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>STORAGE-ENT</feature_name>
<lic_installed>No</lic_installed>
<count> -</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>VDC_LICENSES</feature_name>
<lic_installed>No</lic_installed>
<count> 0</count>
<status>In use</status>
<expiry_date/>
<comments>Grace 114D 7H</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>ENTERPRISE_PKG</feature_name>
<lic_installed>No</lic_installed>
<count> -</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>FCOE-N7K-F132XP</feature_name>
<lic_installed>No</lic_installed>
<count> 0</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>FCOE-N7K-F248XP</feature_name>
<lic_installed>No</lic_installed>
<count> 0</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>FCOE-N7K-F312FQ</feature_name>
<lic_installed>No</lic_installed>
<count> 0</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>FCOE-N7K-F348XP</feature_name>
<lic_installed>No</lic_installed>
<count> 0</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>ENHANCED_LAYER2_PKG</feature_name>
<lic_installed>Yes</lic_installed>
<count> -</count>
<status>In use</status>
<expiry_date>17 Nov 2018</expiry_date>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>SCALABLE_SERVICES_PKG</feature_name>
<lic_installed>No</lic_installed>
<count> -</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>TRANSPORT_SERVICES_PKG</feature_name>
<lic_installed>No</lic_installed>
<count> -</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>LAN_ADVANCED_SERVICES_PKG</feature_name>
<lic_installed>No</lic_installed>
<count> -</count>
<status>Unused</status>
<expiry_date/>
<comments>Grace 118D 19H</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>LAN_ENTERPRISE_SERVICES_PKG</feature_name>
<lic_installed>Yes</lic_installed>
<count> -</count>
<status>In use</status>
<expiry_date>never </expiry_date>
<comments>-</comments>
</ROW_show_lic_usage>
</TABLE_show_lic_usage>
</body>
<input>show license usage</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display license usage information, use the show license usage command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
MPLS_PKG No - Unused - STORAGE-ENT No - Unused - VDC_LICENSES No 0 Unused Grace 114D 7H ENTERPRISE_PKG No - Unused - FCOE-N7K-F132XP No 0 Unused - FCOE-N7K-F248XP No 0 Unused - FCOE-N7K-F312FQ No 0 Unused - FCOE-N7K-F348XP No 0 Unused - ENHANCED_LAYER2_PKG Yes - In use 17 Nov 2018 - SCALABLE_SERVICES_PKG No - Unused - TRANSPORT_SERVICES_PKG No - Unused - LAN_ADVANCED_SERVICES_PKG No - In use Grace 118D 19H LAN_ENTERPRISE_SERVICES_PKG Yes - In use never -
show license usage LAN_ENTERPRISE_SERVICES_PKG
show license usage LAN_ENTERPRISE_SERVICES_PKG
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license usage LAN_ENTERPRISE_SERVICES_PKG",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show license usage LAN_ENTERPRISE_SERVICES_PKG",
"msg": "Success",
"code": "200",
"body": {
"application_name": [
"bgp N7K2 ",
"ospf N7K2 ",
"ospfv3 N7K2 "
]
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<application_name>bgp N7K2 </application_name>
<application_name>ospf N7K2 </application_name>
<application_name>ospfv3 N7K2 </application_name>
</body>
<input>show license usage LAN_ENTERPRISE_SERVICES_PKG</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display license usage information for LAN enterprise services packages, use the show license usage LAN_ENTERPRISE_SERVICES_PKG command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
bgp N7K2
ospf N7K2
ospfv3 N7K2
show license usage ENHANCED_LAYER2_PKG
show license usage ENHANCED_LAYER2_PKG
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license usage ENHANCED_LAYER2_PKG",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show license usage ENHANCED_LAYER2_PKG",
"msg": "Success",
"code": "200",
"body": {
"application_name": "itd N7K2"
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<application_name>itd N7K2 </application_name>
</body>
<input>show license usage ENHANCED_LAYER2_PKG</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display license usage information about enhanced layer 2 packages, use the show license usage ENHANCED_LAYER2_PKG command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
itd N7K2
icam N7K2
show license usage vdc-all
show license usage vdc-all
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license usage vdc-all",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "sh lic usage vdc-all",
"msg": "Success",
"code": "200",
"body": {
"TABLE_show_lic_usage": {
"ROW_show_lic_usage": [
{
"feature_name": "MPLS_PKG",
"lic_installed": "No",
"count": " -",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "STORAGE-ENT",
"lic_installed": "No",
"count": " -",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "VDC_LICENSES",
"lic_installed": "No",
"count": " 0",
"status": "In use",
"expiry_date": "",
"comments": "Grace 114D 4H"
},
{
"feature_name": "ENTERPRISE_PKG",
"lic_installed": "No",
"count": " -",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "FCOE-N7K-F132XP",
"lic_installed": "No",
"count": " 0",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "FCOE-N7K-F248XP",
"lic_installed": "No",
"count": " 0",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "FCOE-N7K-F312FQ",
"lic_installed": "No",
"count": " 0",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "FCOE-N7K-F348XP",
"lic_installed": "No",
"count": " 0",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "ENHANCED_LAYER2_PKG",
"lic_installed": "Yes",
"count": " -",
"status": "In use",
"expiry_date": "17 Nov 2018",
"comments": "-"
},
{
"feature_name": "SCALABLE_SERVICES_PKG",
"lic_installed": "No",
"count": " -",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "TRANSPORT_SERVICES_PKG",
"lic_installed": "No",
"count": " -",
"status": "Unused",
"expiry_date": "",
"comments": "-"
},
{
"feature_name": "LAN_ADVANCED_SERVICES_PKG",
"lic_installed": "No",
"count": " -",
"status": "Unused",
"expiry_date": "",
"comments": "Grace 118D 19H"
},
{
"feature_name": "LAN_ENTERPRISE_SERVICES_PKG",
"lic_installed": "Yes",
"count": " -",
"status": "In use",
"expiry_date": "never ",
"comments": "-"
}
]
}
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<TABLE_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>MPLS_PKG</feature_name>
<lic_installed>No</lic_installed>
<count> -</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>STORAGE-ENT</feature_name>
<lic_installed>No</lic_installed>
<count> -</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>VDC_LICENSES</feature_name>
<lic_installed>No</lic_installed>
<count> 0</count>
<status>In use</status>
<expiry_date/>
<comments>Grace 114D 4H</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>ENTERPRISE_PKG</feature_name>
<lic_installed>No</lic_installed>
<count> -</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>FCOE-N7K-F132XP</feature_name>
<lic_installed>No</lic_installed>
<count> 0</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>FCOE-N7K-F248XP</feature_name>
<lic_installed>No</lic_installed>
<count> 0</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>FCOE-N7K-F312FQ</feature_name>
<lic_installed>No</lic_installed>
<count> 0</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>FCOE-N7K-F348XP</feature_name>
<lic_installed>No</lic_installed>
<count> 0</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>ENHANCED_LAYER2_PKG</feature_name>
<lic_installed>Yes</lic_installed>
<count> -</count>
<status>In use</status>
<expiry_date>17 Nov 2018</expiry_date>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>SCALABLE_SERVICES_PKG</feature_name>
<lic_installed>No</lic_installed>
<count> -</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>TRANSPORT_SERVICES_PKG</feature_name>
<lic_installed>No</lic_installed>
<count> -</count>
<status>Unused</status>
<expiry_date/>
<comments>-</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>LAN_ADVANCED_SERVICES_PKG</feature_name>
<lic_installed>No</lic_installed>
<count> -</count>
<status>Unused</status>
<expiry_date/>
<comments>Grace 118D 19H</comments>
</ROW_show_lic_usage>
<ROW_show_lic_usage>
<feature_name>LAN_ENTERPRISE_SERVICES_PKG</feature_name>
<lic_installed>Yes</lic_installed>
<count> -</count>
<status>In use</status>
<expiry_date>never </expiry_date>
<comments>-</comments>
</ROW_show_lic_usage>
</TABLE_show_lic_usage>
</body>
<input>sh lic usage vdc-all</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display license usage information, use the show license usage vdc-all command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
MPLS_PKG No - Unused -
STORAGE-ENT No - Unused -
VDC_LICENSES No 0 Unused Grace 114D 7H
ENTERPRISE_PKG No - Unused -
FCOE-N7K-F132XP No 0 Unused -
FCOE-N7K-F248XP No 0 Unused -
FCOE-N7K-F312FQ No 0 Unused -
FCOE-N7K-F348XP No 0 Unused -
ENHANCED_LAYER2_PKG Yes - In use 17 Nov 2018 -
SCALABLE_SERVICES_PKG No - Unused -
TRANSPORT_SERVICES_PKG No - Unused -
LAN_ADVANCED_SERVICES_PKG No - In use Grace 119D 15H
LAN_ENTERPRISE_SERVICES_PKG Yes - In use never -
show license usage vdc-all ENHANCED_LAYER2_PKG
show license usage vdc-all ENHANCED_LAYER2_PKG
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license usage vdc-all ENHANCED_LAYER2_PKG",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "sh lic usage vdc-all ENHANCED_LAYER2_PKG ",
"msg": "Success",
"code": "200",
"body": {
"application_name": "itd N7K2 "
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<application_name>itd N7K2 </application_name>
</body>
<input>sh lic usage vdc-all ENHANCED_LAYER2_PKG </input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display license usage information, use the show license usage vdc-all ENHANCED_LAYER2_PKG command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|
itd N7K2-core
show license status
show license status
import requests
import json
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show license status",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "sh license status",
"msg": "Success",
"code": "200",
"body": {
"smart_status": "ENABLED",
"smart_reg_info": {
"reg_status": "REGISTERED",
"smart_account": "Nexus7004",
"virtual_account": "Default",
"export_controlled": "Allowed",
"initial_reg": "SUCCEEDED on Jul 12 09:28:16 2018 UTC",
"last_renew_attempt": "None",
"next_renew_attempt": "Jan 8 09:28:17 2019 UTC",
"reg_expire_time": "Jul 12 09:26:03 2019 UTC"
},
"smart_dlc_info": {
"autoconv_status": "False",
"conv_status": "Polling",
"conv_next_time": " Next response check: on Sep 7 06:05:39 2017 UTC"
},
"smart_auth_info": {
"auth_status": "OUT OF COMPLIANCE",
"eval_period": " on Jul 12 09:28:30 2018 UTC",
"last_attempt": "SUCCEEDED on Jul 12 09:28:30 2018 UTC",
"next_attempt": "Jul 12 21:28:30 2018 UTC",
"auth_expire_time": "Oct 10 09:26:16 2018 UTC"
}
}
}
}
}
}
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body>
<smart_status>ENABLED</smart_status>
<smart_reg_info>
<reg_status>REGISTERED</reg_status>
<smart_account>Nexus7004</smart_account>
<virtual_account>Default</virtual_account>
<export_controlled>Allowed</export_controlled>
<initial_reg>SUCCEEDED on Jul 12 09:28:16 2018 UTC</initial_reg>
<last_renew_attempt>None</last_renew_attempt>
<next_renew_attempt>Jan 8 09:28:16 2019 UTC</next_renew_attempt>
<reg_expire_time>Jul 12 09:26:02 2019 UTC</reg_expire_time>
</smart_reg_info>
<smart_auth_info>
<auth_status>OUT OF COMPLIANCE</auth_status>
<eval_period> on Jul 12 09:28:30 2018 UTC</eval_period>
<last_attempt>SUCCEEDED on Jul 12 09:28:30 2018 UTC</last_attempt>
<next_attempt>Jul 12 21:28:30 2018 UTC</next_attempt>
<auth_expire_time>Oct 10 09:26:16 2018 UTC</auth_expire_time>
</smart_auth_info>
<smart_dlc_info>
<autoconv_status>False</autoconv_status>
<conv_status>Polling</conv_status>
<conv_next_time> Next response check: on Sep 7 06:05:39 2017 UTC</conv_next_time>
</smart_dlc_info>
</body>
<input>sh license status</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
To display license status information, use the show license status command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output |
---|
|