show system fast-reload stabilization-timer
show system fast-reload stabilization-timer
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 fast-reload stabilization-timer",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show system fast-reload stabilization-timer",
"msg": "Success",
"code": "200",
"body": {
"timer_val": "300"
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show system fast-reload stabilization-timer command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show system login
show system login
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 login",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": " show system login",
"msg": "Success",
"code": "200",
"body": {
"acc_list": "test",
"attempts": 5,
"within": 30,
"block_for": 30,
"time": 1,
"fail_count": 0,
"switch_mode": "Switch is enabled to watch for login Attacks\nSwitch presently in Normal-Mode\n"
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show system login command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show system login failures
show system login failures
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 login failures",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"body": "",
"input": "show system login failures",
"msg": "Success",
"code": "200"
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show system login failures command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show system mode
show system mode
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 mode",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show system mode",
"msg": "Success",
"code": "200",
"body": {
"system_mode": "Normal"
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show system mode command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show system nve infra-vlans
show system nve infra-vlans
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 nve infra-vlans",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show system nve infra-vlans",
"msg": "Success",
"code": "200",
"body": {
"available_infra_vlan": {
"available_vlan_output": "Currently active infra Vlans: 500\nAvailable Infra Vlans : 12-499,501-511,524-1011,1013-1023,1036-1523,1525-1535,1548-2035,2037-2047,2060-2547,2549-2559,2572-3059,3061-3071,3084-3571,3573-3583,3596-3967\n*Configuration of two infra-vlans which are 512 apart is not allowed. Ex: 4, 516 are not allowed to be configured together \n"
},
"current_active_vlan": {
"active_vlan_output": "Currently active infra Vlans: 500\n"
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show system nve infra-vlans command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show system reset-reason
show system reset-reason
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 reset-reason",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show system reset-reason",
"msg": "Success",
"code": "200",
"body": {
"TABLE_reason": {
"ROW_reason": {
"slot": 0,
"TABLE_rr": {
"ROW_rr": [
{
"time": "1) At 292149 usecs after Wed Aug 8 18:01:50 2018\n",
"reason": "Reset Requested by CLI command reload",
"service": "",
"version": "9.2(1)"
},
{
"time": "2) At 916295 usecs after Wed Aug 1 21:13:18 2018\n",
"reason": "Reset Requested by CLI command reload",
"service": "",
"version": "9.2(1)"
},
{
"time": "3) At 98557 usecs after Fri Jul 27 18:22:07 2018\n",
"reason": "Reset Requested by CLI command reload",
"service": "",
"version": "9.2(1)"
},
{
"time": "4) At 205474 usecs after Fri Jul 27 17:55:14 2018\n",
"reason": "Reset Requested by CLI command reload",
"service": "",
"version": "9.2(1u)I9(1u)"
}
]
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show system reset-reason command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show system resources
show system resources
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 resources",
"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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show system resources",
"msg": "Success",
"code": "200",
"body": {
"load_avg_1min": "0.80",
"load_avg_5min": "0.68",
"load_avg_15min": "0.67",
"processes_total": 827,
"processes_running": 2,
"cpu_state_user": "7.36",
"cpu_state_kernel": "8.62",
"cpu_state_idle": "84.01",
"memory_usage_total": 16400304,
"memory_usage_used": 7069080,
"memory_usage_free": 9331224,
"current_memory_status": "OK",
"TABLE_cpu_usage": {
"ROW_cpu_usage": [
{
"cpuid": 0,
"user": "13.13",
"kernel": "12.12",
"idle": "74.74"
},
{
"cpuid": 1,
"user": "5.10",
"kernel": "13.26",
"idle": "81.63"
},
{
"cpuid": 2,
"user": "10.20",
"kernel": "4.08",
"idle": "85.71"
},
{
"cpuid": 3,
"user": "1.01",
"kernel": "5.05",
"idle": "93.93"
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show system resources command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show system redundancy ha status
show system redundancy ha status
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)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show system redundancy ha status",
"msg": "Success",
"code": "200",
"body": {
"TABLE_ha_status": {
"ROW_ha_status": {
"vdc_id": 0,
"this_sup_internal_state": "Active with HA standby ",
"other_sup_internal_state": "HA standby "
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show system redundancy ha status command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show system redundancy status
show system redundancy status
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)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show system redundancy status",
"msg": "Success",
"code": "200",
"body": {
"rdn_mode_admin": "HA",
"rdn_mode_oper": "HA",
"this_sup": "(sup-2)",
"this_sup_rdn_state": "Active",
"this_sup_sup_state": "Active",
"this_sup_internal_state": "Active with HA standby",
"other_sup": "(sup-1)",
"other_sup_rdn_state": "Standby",
"other_sup_sup_state": "HA standby",
"other_sup_internal_state": "HA standby"
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show system redundancy status command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show system uptime
show system uptime
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)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show system uptime",
"msg": "Success",
"code": "200",
"body": {
"sys_st_time": "Wed Aug 8 00:13:33 2018",
"sys_up_days": 0,
"sys_up_hrs": 20,
"sys_up_mins": 36,
"sys_up_secs": 36,
"kn_up_days": 0,
"kn_up_hrs": 20,
"kn_up_mins": 37,
"kn_up_secs": 54
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show system uptime command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show system vlan reserved
show system vlan reserved
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 vlan reserved ",
"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_vlan": {
"ROW_vlan": {
"current_reserved_vlan_start": "3968",
"current_reserved_vlan_end": "4095"
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show system vlan reserved command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|