Sysmgr Commands
show copyright
show copyright
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 copyright",
"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)
{
"content": "Cisco Nexus Operating System (NX-OS) Software\nTAC support: http://www.cisco.com/tac\nCopyright (c) 2002-2
018, Cisco Systems, Inc. All rights reserved.\nThe copyrights to certain works contained in this software are\nowned by
other third parties and used and distributed under\nlicense. Certain components of this software are licensed under\nthe
GNU General Public License (GPL) version 2.0 or the GNU\nLesser General Public License (LGPL) Version 2.1. A copy of ea
ch\nsuch license is available at\nhttp://www.opensource.org/licenses/gpl-2.0.php and\nhttp://www.opensource.org/licenses
/lgpl-2.1.php"
}
switch# show copyright | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<copyright>
<__readonly__>
<content>Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2018, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php
</content>
</__readonly__>
</copyright>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 core
show core
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 core",
"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)
{
"TABLE_cores": {
"ROW_cores": {
"vdc_id": 1,
"module_id": 1,
"instance": 1,
"process_name": "pixmc",
"pid": "7134",
"sys_time": "2018-07-11 03:45:17"
}
}
}
switch# show core | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<cores>
<__readonly__>
<TABLE_cores>
<ROW_cores>
<vdc_id>1</vdc_id>
<module_id>1</module_id>
<instance>1</instance>
<process_name>pixmc</process_name>
<pid>7134</pid>
<sys_time>2018-07-11 03:45:17</sys_time>
</ROW_cores>
</TABLE_cores>
</__readonly__>
</cores>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 cores vdc [ | ]
show cores vdc [<e-vdc2> | <vdc-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 core vdc 1",
"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)
{
"TABLE_cores": {
"ROW_cores": {
"vdc_id": 1,
"module_id": 1,
"instance": 1,
"process_name": "pixmc",
"pid": "7134",
"sys_time": "2018-07-11 03:45:17"
}
}
}
switch# show core vdc 1 | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<cores>
<vdc>
<__XML__PARAM__vdc-id>
<__XML__value>1</__XML__value>
<__readonly__>
<TABLE_cores>
<ROW_cores>
<vdc_id>1</vdc_id>
<module_id>1</module_id>
<instance>1</instance>
<process_name>pixmc</process_name>
<pid>7134</pid>
<sys_time>2018-07-11 03:45:17</sys_time>
</ROW_cores>
</TABLE_cores>
</__readonly__>
</__XML__PARAM__vdc-id>
</vdc>
</cores>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 cores vdc-all
show cores 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 cores 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)
{
"TABLE_cores": {
"ROW_cores": {
"vdc_id": 1,
"module_id": 1,
"instance": 1,
"process_name": "pixmc",
"pid": "7134",
"sys_time": "2018-07-11 03:45:17"
}
}
}
switch# show cores vdc-all | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<cores>
<vdc-all>
<__readonly__>
<TABLE_cores>
<ROW_cores>
<vdc_id>1</vdc_id>
<module_id>1</module_id>
<instance>1</instance>
<process_name>pixmc</process_name>
<pid>7134</pid>
<sys_time>2018-07-11 03:45:17</sys_time>
</ROW_cores>
</TABLE_cores>
</__readonly__>
</vdc-all>
</cores>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 feature-set services
show feature-set services <s0>
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 feature-set services fabricpath",
"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)
{
"TABLE_services": {
"ROW_services": [
{
"service_name": "u2rib"
},
{
"service_name": "fpoam"
},
{
"service_name": "drap"
},
{
"service_name": "isis_fabricpath"
}
]
},
"count": 4,
"feature_set": "fabricpath"
}
switch# show feature-set services fabricpath | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<feature-set>
<services>
<__XML__PARAM__s0>
<__XML__value>fabricpath</__XML__value>
<__readonly__>
<TABLE_services>
<ROW_services>
<service_name>u2rib</service_name>
</ROW_services>
<ROW_services>
<service_name>fpoam</service_name>
</ROW_services>
<ROW_services>
<service_name>drap</service_name>
</ROW_services>
<ROW_services>
<service_name>isis_fabricpath</service_name>
</ROW_services>
</TABLE_services>
<count>4</count>
<feature_set>fabricpath</feature_set>
</__readonly__>
</__XML__PARAM__s0>
</services>
</feature-set>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 system auto-collect tech-support
show system auto-collect tech-support
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 system auto-collect tech-support",
"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)
{
"result": "Automatic collection of show tech support is enabled, timeout:600 sec"
}
switch# show system auto-collect tech-support | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<system>
<auto-collect>
<tech-support>
<__readonly__>
<result>Automatic collection of show tech support is enabled, timeout:600 sec</result>
</__readonly__>
</tech-support>
</auto-collect>
</system>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 system cores
show system cores
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 system cores",
"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)
{
"content": "Cores are transferred to slot0:"
}
switch# show system cores | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<system>
<cores>
<__readonly__>
<content>Cores are transferred to slot0:
</content>
</__readonly__>
</cores>
</system>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 system pss shrink status
show system pss shrink 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 system pss shrink 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)
{
}
switch# show system pss shrink status | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<system>
<pss>
<shrink>
<status>
<__readonly__>
<summary>Last pss shrink started on: Wed Jul 11 05:48:29 2018
</summary>
</__readonly__>
</status>
</shrink>
</pss>
</system>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 system pss shrink status details
show system pss shrink status details
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 system pss shrink status details",
"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)
{
"summary": "Last pss shrink started on: Wed Jul 11 05:48:29 2018",
"TABLE_per_vdc": {
"ROW_per_vdc": {
"vdc_id": "VDC 1:",
"TABLE_detail_events": {
"ROW_detail_events": [
{
"service": "aaa",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "cert_enroll",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "ExceptionLog",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "ldap",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "psshelper_gsvc",
"vdc": 1,
"event": "pss shrink not needed (defaultcb invoked)"
},
{
"service": "platform",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "radius",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "securityd",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "tacacs",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "eigrp",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "isis",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "isis_fabricpath",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "isis_otv",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "ospf",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "ospfv3",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "rip",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "eigrp",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "isis",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "ospf",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "ospfv3",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "rip",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "eigrp",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "isis",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "ospf",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "ospfv3",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "rip",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "clp_mac",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "clp_xbar",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "cmm",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "cmond",
"vdc": 1,
"event": "pss shrink not needed (defaultcb invoked)"
},
{
"service": "confcheck",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "copp",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "core-dmon",
"vdc": 1,
"event": "pss shrink not needed (defaultcb invoked)"
},
{
"service": "cpuload",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "crdcfg_server",
"vdc": 1,
"event": "pss shrink not needed (defaultcb invoked)"
},
{
"service": "cts",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "dcm_cli_dp",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "dcm_core",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "dcm_snmp_dp",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "dcos-xinetd",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "device_test",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "dhcp_snoop",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "diag_port_lb",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "diagclient",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "diagmgr",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "dot1x",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "dpt",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "drap",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "ecp",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "eem_policy_dir",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "elo",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "eltm",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "epld_auto",
"vdc": 1,
"event": "pss shrink not needed (defaultcb invoked)"
},
{
"service": "epld_main_auto",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "epld_upgrade",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "epld_upgrade_stdby",
"vdc": 1,
"event": "pss shrink not needed (defaultcb invoked)"
},
{
"service": "eth_dstats",
"vdc": 1,
"event": "pss shrink not needed (defaultcb invoked)"
},
{
"service": "eth_port_channel",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "eth_port_sec",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "ethpm",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "evb",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "evc",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "evmc",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "evmed",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "evms",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "fabric-access",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "fabric_mcast",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "feature-mgr",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "fex",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "fmd",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "fpoam",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "fs-daemon",
"vdc": 1,
"event": "pss shrink not needed (defaultcb invoked)"
},
{
"service": "fscm",
"vdc": 1,
"event": "pss shrink not needed (defaultcb invoked)"
},
{
"service": "fw_app",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "giscm",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "glbp",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "hmm",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "hsrp_engine",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "icam",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "icmpv6",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "ifmgr",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "igmp",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "imp",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "installer",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "interface-vlan",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "ip_dummy",
"vdc": 1,
"event": "pss shrink not needed (defaultcb invoked)"
},
{
"service": "ipp",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "ipqosmgr",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "ipv6_dummy",
"vdc": 1,
"event": "pss shrink not needed (defaultcb invoked)"
},
{
"service": "iscm",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "l2fm",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "l2pt",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "l2rib",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "l2vpn",
"vdc": 1,
"event": "pss shrink request not sent"
},
{
"service": "l3vm",
"vdc": 1,
"event": "pss shrink completed successfully"
},
{
"service": "lacp",
}
switch# show system pss shrink status details | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<system>
<pss>
<shrink>
<status>
<details>
<__readonly__>
<summary>Last pss shrink started on: Wed Jul 11 05:48:29 2018
</summary>
<TABLE_per_vdc>
<ROW_per_vdc>
<vdc_id>
VDC 1:
</vdc_id>
<TABLE_detail_events>
<ROW_detail_events>
<service>aaa</service>
<vdc>1</vdc>
<event>pss shrink completed successfully
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>cert_enroll</service>
<vdc>1</vdc>
<event>pss shrink completed successfully
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ExceptionLog</service>
<vdc>1</vdc>
<event>pss shrink completed successfully
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ldap</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>psshelper_gsvc</service>
<vdc>1</vdc>
<event>pss shrink not needed (defaultcb invoked)
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>platform</service>
<vdc>1</vdc>
<event>pss shrink completed successfully
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>radius</service>
<vdc>1</vdc>
<event>pss shrink completed successfully
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>securityd</service>
<vdc>1</vdc>
<event>pss shrink completed successfully
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>tacacs</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>eigrp</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>isis</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>isis_fabricpath</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>isis_otv</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospf</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospfv3</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>rip</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>eigrp</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>isis</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospf</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospfv3</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>rip</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>eigrp</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>isis</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospf</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospfv3</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>rip</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>eigrp</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>isis</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospf</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospfv3</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>rip</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>eigrp</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>isis</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospf</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospfv3</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>eigrp</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>isis</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospf</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospfv3</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>eigrp</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>isis</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospf</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>ospfv3</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>eigrp</service>
<vdc>1</vdc>
<event>pss shrink request not sent
</event>
</ROW_detail_events>
<ROW_detail_events>
<service>xmlma</service>
<vdc>1</vdc>
<event>pss shrink completed successfully
</event>
</ROW_detail_events>
]]>]]>
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 system redundancy ha status
show system redundancy ha 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 system redundancy ha 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)
{
"TABLE_ha_status": {
"ROW_ha_status": {
"vdc_id": "vdc 1",
"this_sup_internal_state": "Active with HA standby",
"other_sup_internal_state": "HA standby"
}
}
}
switch# show system redundancy ha status | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<system>
<redundancy>
<ha>
<status>
<__readonly__>
<TABLE_ha_status>
<ROW_ha_status>
<vdc_id>vdc 1</vdc_id>
<this_sup_internal_state>Active with HA standby </this_sup_internal_state>
<other_sup_internal_state>HA standby </other_sup_internal_state>
</ROW_ha_status>
</TABLE_ha_status>
</__readonly__>
</status>
</ha>
</redundancy>
</system>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 system redundancy status
show system redundancy 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 system redundancy 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)
{
"rdn_mode_admin": "HA",
"rdn_mode_oper": "HA",
"this_sup": "(sup-1)",
"this_sup_rdn_state": "Active",
"this_sup_sup_state": "Active",
"this_sup_internal_state": "Active with HA standby",
"other_sup": "(sup-2)",
"other_sup_rdn_state": "Standby",
"other_sup_sup_state": "HA standby",
"other_sup_internal_state": "HA standby"
}
switch# show system redundancy status | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<system>
<redundancy>
<status>
<__readonly__>
<rdn_mode_admin>HA</rdn_mode_admin>
<rdn_mode_oper>HA</rdn_mode_oper>
<this_sup>(sup-1)</this_sup>
<this_sup_rdn_state>Active</this_sup_rdn_state>
<this_sup_sup_state>Active</this_sup_sup_state>
<this_sup_internal_state>Active with HA standby</this_sup_internal_state>
<other_sup>(sup-2)</other_sup>
<other_sup_rdn_state>Standby</other_sup_rdn_state>
<other_sup_sup_state>HA standby</other_sup_sup_state>
<other_sup_internal_state>HA standby</other_sup_internal_state>
</__readonly__>
</status>
</redundancy>
</system>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 |
|---|
|
administrative: HA
operational: HA
This supervisor (sup-1)
Redundancy state: Active
Supervisor state: Active
Internal state: Active with HA standby
Other supervisor (sup-2)
Redundancy state: Standby
Supervisor state: HA standby
Internal state: HA standby
show system standby manual-boot
show system standby manual-boot
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 system standby manual-boot",
"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)
{
"content": "system standby manual-boot option is disabled"
}
switch# show system standby manual-boot | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<system>
<standby>
<manual-boot>
<__readonly__>
<content>system standby manual-boot option is disabled
</content>
</__readonly__>
</manual-boot>
</standby>
</system>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 system uptime
show system uptime
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 system uptime",
"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)
{
"sys_st_time": "Tue Jul 10 22:15:16 2018",
"sys_up_days": 0,
"sys_up_hrs": 10,
"sys_up_mins": 5,
"sys_up_secs": 58,
"kn_up_days": 0,
"kn_up_hrs": 10,
"kn_up_mins": 9,
"kn_up_secs": 27,
"as_up_days": 0,
"as_up_hrs": 10,
"as_up_mins": 5,
"as_up_secs": 58
}
switch# show system uptime | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgr" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<system>
<uptime>
<__readonly__>
<sys_st_time>Tue Jul 10 22:15:16 2018</sys_st_time>
<sys_up_days>0</sys_up_days>
<sys_up_hrs>10</sys_up_hrs>
<sys_up_mins>5</sys_up_mins>
<sys_up_secs>52</sys_up_secs>
<kn_up_days>0</kn_up_days>
<kn_up_hrs>10</kn_up_hrs>
<kn_up_mins>9</kn_up_mins>
<kn_up_secs>22</kn_up_secs>
<as_up_days>0</as_up_days>
<as_up_hrs>10</as_up_hrs>
<as_up_mins>5</as_up_mins>
<as_up_secs>52</as_up_secs>
</__readonly__>
</uptime>
</system>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 version
show version
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 version",
"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)
{
"header_str": "Cisco Nexus Operating System (NX-OS) Software\nTAC support: http://www.cisco.com/tac\nDocuments: http:/
/www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html\nCopyright (c) 2002-2018, Cisco Systems, Inc.
All rights reserved.\nThe copyrights to certain works contained in this software are\nowned by other third parties and
used and distributed under\nlicense. Certain components of this software are licensed under\nthe GNU General Public Lice
nse (GPL) version 2.0 or the GNU\nLesser General Public License (LGPL) Version 2.1. A copy of each\nsuch license is avai
lable at\nhttp://www.opensource.org/licenses/gpl-2.0.php and\nhttp://www.opensource.org/licenses/lgpl-2.1.php",
"bios_ver_str": "2.12.0",
"kickstart_ver_str": "8.3(1) [gdb]",
"sys_ver_str": "8.3(1) [gdb]",
"bios_cmpl_time": "05/29/2013",
"kick_file_name": "bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin",
"kick_cmpl_time": "7/30/2018 12:00:00",
"kick_tmstmp": "07/06/2018 14:30:56",
"isan_file_name": "bootflash:///n7000-s2-dk9.8.3.1.S46.gbin",
"isan_cmpl_time": "7/30/2018 12:00:00",
"isan_tmstmp": "07/06/2018 17:56:26",
"chassis_id": "Nexus7000 C7004 (4 Slot) Chassis",
"module_id": "Supervisor Module-2",
"cpu_name": "Intel(R) Xeon(R) CPU",
"memory": 12295916,
"mem_type": "kB",
"proc_board_id": "JAF1637ALKH",
"host_name": "N7K-12",
"bootflash_size": 2007040,
"slot0_size": 0,
"kern_uptm_days": 0,
"kern_uptm_hrs": 5,
"kern_uptm_mins": 31,
"kern_uptm_secs": 32,
"rr_usecs": 448705,
"rr_ctime": "Wed Jul 11 06:11:27 2018",
"rr_reason": "Reset Requested by CLI command reload",
"rr_sys_ver": "8.3(0.42)",
"rr_service": null,
"manufacturer": "Cisco Systems, Inc."
}
switch# show version | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns="http://www.cisco.com/nxos:8.3.1.:sysmgrcli" xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0">
<nf:data>
<show>
<version>
<__readonly__>
<header_str>Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html
Copyright (c) 2002-2018, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php
</header_str>
<bios_ver_str>2.12.0</bios_ver_str>
<kickstart_ver_str>8.3(1) [gdb]</kickstart_ver_str>
<sys_ver_str>8.3(1) [gdb]</sys_ver_str>
<bios_cmpl_time>05/29/2013</bios_cmpl_time>
<kick_file_name>bootflash:///n7000-s2-kickstart.8.3.1.S46.gbin</kick_file_name>
<kick_cmpl_time> 7/30/2018 12:00:00</kick_cmpl_time>
<kick_tmstmp>07/06/2018 14:30:56</kick_tmstmp>
<isan_file_name>bootflash:///n7000-s2-dk9.8.3.1.S46.gbin</isan_file_name>
<isan_cmpl_time> 7/30/2018 12:00:00</isan_cmpl_time>
<isan_tmstmp>07/06/2018 17:56:26</isan_tmstmp>
<chassis_id>Nexus7000 C7004 (4 Slot) Chassis</chassis_id>
<module_id>Supervisor Module-2</module_id>
<cpu_name>Intel(R) Xeon(R) CPU </cpu_name>
<memory>12295916</memory>
<mem_type>kB</mem_type>
<proc_board_id>JAF1637ALKH</proc_board_id>
<host_name>N7K-12</host_name>
<bootflash_size>2007040</bootflash_size>
<slot0_size>0</slot0_size>
<kern_uptm_days>0</kern_uptm_days>
<kern_uptm_hrs>5</kern_uptm_hrs>
<kern_uptm_mins>31</kern_uptm_mins>
<kern_uptm_secs>24</kern_uptm_secs>
<rr_usecs>448705</rr_usecs>
<rr_ctime>Wed Jul 11 06:11:27 2018</rr_ctime>
<rr_reason>Reset Requested by CLI command reload</rr_reason>
<rr_sys_ver>8.3(0.42)</rr_sys_ver>
<rr_service></rr_service>
<manufacturer>Cisco Systems, Inc.</manufacturer>
</__readonly__>
</version>
</show>
</nf:data>
</nf:rpc-reply>
]]>]]>
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 |
|---|
|