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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show system fast-reload stabilization-timer
Fast-reload timer value for network stabilization is set to 300


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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show system login

 Quiet-Mode access list test is applied.
If more than 5 login failures occur in 30 seconds or less,
 logins will be disabled for 30 seconds.

 Current Watch Window remaining time 6 seconds

 Present login failure count 0.
Switch is enabled to watch for login Attacks
Switch presently in Normal-Mode












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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show system login failures
 No logged failed login attempts with the device.









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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show system mode
Current boot mode is native mode show system mode
System Mode: Normal



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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show system nve infra-vlans 
Currently active infra Vlans: 500
Currently active infra Vlans: 500
Available 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
*Configuration of two infra-vlans which are 512 apart is not allowed. Ex: 4, 516 are not allowed to be configured together 

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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show system reset-reason
----- reset reason for module 1 (from Supervisor in slot 1) ---
1) At 292149 usecs after Wed Aug  8 18:01:50 2018
    Reason: Reset Requested by CLI command reload
    Service:
    Version: 9.2(1)
2) At 916295 usecs after Wed Aug  1 21:13:18 2018
    Reason: Reset Requested by CLI command reload
    Service:
    Version: 9.2(1)
3) At 98557 usecs after Fri Jul 27 18:22:07 2018
    Reason: Reset Requested by CLI command reload
    Service:
    Version: 9.2(1)
4) At 205474 usecs after Fri Jul 27 17:55:14 2018
    Reason: Reset Requested by CLI command reload
    Service:
    Version: 9.2(1u)I9(1u)


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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show system resources
Load average:   1 minute: 0.75   5 minutes: 0.63   15 minutes: 0.64
Processes   :   827 total, 2 running
CPU states  :   7.10% user,   5.58% kernel,   87.30% idle
        CPU0 states  :   5.15% user,   2.06% kernel,   92.78% idle
        CPU1 states  :   4.08% user,   11.22% kernel,   84.69% idle
        CPU2 states  :   13.13% user,   2.02% kernel,   84.84% idle
        CPU3 states  :   6.12% user,   6.12% kernel,   87.75% idle
Memory usage:   16400304K total,   7062996K used,   9337308K free
Current memory status: OK





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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show system redundancy ha status
VDC No    This supervisor                         Other supervisor
------    ---------------                         ---------------

vdc 1     Active with HA standby                  HA standby

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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show system redundancy status
Redundancy mode
---------------
      administrative:   HA
         operational:   HA

This supervisor (sup-2)
-----------------------
    Redundancy state:   Active
    Supervisor state:   Active
      Internal state:   Active with HA standby

Other supervisor (sup-1)
------------------------
    Redundancy state:   Standby
    Supervisor state:   HA standby
      Internal state:   HA standby

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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show system uptime
System start time:          Wed Aug  8 00:13:33 2018
System uptime:              0 days, 20 hours, 36 minutes, 59 seconds
Kernel uptime:              0 days, 20 hours, 38 minutes, 16 seconds

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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show system vlan reserved 

system current running vlan reservation: 3968-4095