show checkpoint all
show checkpoint all
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 checkpoint 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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show checkpoint all",
"msg": "Success",
"code": "200",
"body": {
"TABLE_checkpoint_details": {
"ROW_checkpoint_details": [
{
"name": "user-checkpoint-4",
"checkpoint_config": [
"!Command: Checkpoint cmd vdc 1\n",
"!Time: Thu Jul 19 05:54:57 2018\n",
"version 9.2(1) Bios:version 08.32 \n",
"class-map type network-qos c-nq1\n",
" description Default class on qos-group 1\n",
" match qos-group 1\n",
"class-map type network-qos c-nq2\n",
" description Default class on qos-group 2\n",
" match qos-group 2\n",
"class-map type network-qos c-nq3\n",
" description Default class on qos-group 3\n",
" match qos-group 3\n",
"class-map type network-qos c-8q-nq1\n",
" description Default class on qos-group 1\n",
" match qos-group 1\n",
"class-map type network-qos c-8q-nq2\n",
" description Default class on qos-group 2\n",
" match qos-group 2\n",
"class-map type network-qos c-8q-nq3\n",
" description Default class on qos-group 3\n",
" match qos-group 3\n",
"class-map type network-qos c-8q-nq4\n",
" description Default class on qos-group 4\n",
" match qos-group 4\n",
"class-map type network-qos c-8q-nq5\n",
" description Default class on qos-group 5\n",
" match qos-group 5\n",
"class-map type network-qos c-8q-nq6\n",
" description Default class on qos-group 6\n",
" match qos-group 6\n",
"class-map type network-qos c-8q-nq7\n",
" description Default class on qos-group 7\n",
" match qos-group 7\n",
"class-map type network-qos c-nq-default\n",
" description Default class on qos-group 0\n",
" match qos-group 0\n",
"class-map type network-qos c-8q-nq-default\n",
" description Default class on qos-group 0\n",
" match qos-group 0\n",
"policy-map type network-qos default-nq-policy\n",
" class type network-qos c-nq3\n",
" mtu 1500\n",
" class type network-qos c-nq2\n",
" mtu 1500\n",
" class type network-qos c-nq1\n",
" mtu 1500\n",
" class type network-qos c-nq-default\n",
" mtu 1500\n",
"policy-map type network-qos default-8q-nq-policy\n",
" class type network-qos c-8q-nq7\n",
" mtu 1500\n",
" class type network-qos c-8q-nq6\n",
" mtu 1500\n",
" class type network-qos c-8q-nq5\n",
" mtu 1500\n",
" class type network-qos c-8q-nq4\n",
" mtu 1500\n",
" class type network-qos c-8q-nq3\n",
" mtu 1500\n",
" class type network-qos c-8q-nq2\n",
" mtu 1500\n",
" class type network-qos c-8q-nq1\n",
" mtu 1500\n",
" class type network-qos c-8q-nq-default\n",
" mtu 1500\n",
"vdc switch id 1\n",
" limit-resource vlan minimum 16 maximum 4094\n",
" limit-resource vrf minimum 2 maximum 4096\n",
" limit-resource port-channel minimum 0 maximum 511\n",
" limit-resource u4route-mem minimum 248 maximum 248\n",
" limit-resource u6route-mem minimum 96 maximum 96\n",
" limit-resource m4route-mem minimum 58 maximum 58\n",
" limit-resource m6route-mem minimum 8 maximum 8\n",
"feature nxapi\n",
"feature bash-shell\n",
" feature ssh\n",
" ssh key rsa 1024\n",
"role name priv-15\n",
" description This is a system defined privilege role.\n",
" rule 1 permit read-write \n",
"role name priv-14\n",
" description This is a system defined privilege role.\n",
" rule 1 permit read-write \n",
"role name priv-13\n",
" description This is a system defined privilege role.\n",
"role name priv-12\n",
" description This is a system defined privilege role.\n",
"role name priv-11\n",
" description This is a system defined privilege role.\n",
"role name priv-10\n",
" description This is a system defined privilege role.\n",
"role name priv-9\n",
" description This is a system defined privilege role.\n",
"role name priv-8\n",
" description This is a system defined privilege role.\n",
"role name priv-7\n",
" description This is a system defined privilege role.\n",
"role name priv-6\n",
" description This is a system defined privilege role.\n",
"role name priv-5\n",
" description This is a system defined privilege role.\n",
"role name priv-4\n",
" description This is a system defined privilege role.\n",
"role name priv-3\n",
" description This is a system defined privilege role.\n",
"role name priv-2\n",
" description This is a system defined privilege role.\n",
"role name priv-1\n",
" description This is a system defined privilege role.\n",
"role name priv-0\n",
" description This is a system defined privilege role.\n",
" rule 10 permit command traceroute6 *\n",
" rule 9 permit command traceroute *\n",
" rule 8 permit command telnet6 *\n",
" rule 7 permit command telnet *\n",
" rule 6 permit command ping6 *\n",
" rule 5 permit command ping *\n",
" rule 4 permit command ssh6 *\n",
" rule 3 permit command ssh *\n",
" rule 2 permit command enable *\n",
" rule 1 permit read \n",
"no password strength-check\n",
"username admin password 5 $5$qb.xSESp$ol5ZmZHuSHYZYFzajrX1Ny9cFTD1Y/e8j2L1b6YLpi5 role network-admin\n",
"ip domain-lookup\n",
" qos statistics\n",
" class-map type queuing match-any c-out-q3\n",
" match qos-group 3\n",
" class-map type queuing match-any c-out-q2\n",
" match qos-group 2\n",
" class-map type queuing match-any c-out-q1\n",
" match qos-group 1\n",
" class-map type queuing match-any c-out-q-default\n",
" match qos-group 0\n",
" class-map type queuing match-any c-out-8q-q7\n",
" match qos-group 7\n",
" class-map type queuing match-any c-out-8q-q6\n",
" match qos-group 6\n",
" class-map type queuing match-any c-out-8q-q5\n",
" match qos-group 5\n",
" class-map type queuing match-any c-out-8q-q4\n",
" match qos-group 4\n",
" class-map type queuing match-any c-out-8q-q3\n",
" match qos-group 3\n",
" class-map type queuing match-any c-out-8q-q2\n",
" match qos-group 2\n",
" class-map type queuing match-any c-out-8q-q1\n",
" match qos-group 1\n",
" class-map type queuing match-any c-out-8q-q-default\n",
" match qos-group 0\n",
" class-map type queuing match-any c-in-q7\n",
" match qos-group 7\n",
" class-map type queuing match-any c-in-q6\n",
" match qos-group 6\n",
" class-map type queuing match-any c-in-q5\n",
" match qos-group 5\n",
" class-map type queuing match-any c-in-q4\n",
" match qos-group 4\n",
" class-map type queuing match-any c-in-q3\n",
" match qos-group 3\n",
" class-map type queuing match-any c-in-q2\n",
" match qos-group 2\n",
" class-map type queuing match-any c-in-q1\n",
" match qos-group 1\n",
" class-map type queuing match-any c-in-q-default\n",
" match qos-group 0\n",
"policy-map type queuing default-out-policy\n",
" class type queuing c-out-q3\n",
" priority level 1\n",
" class type queuing c-out-q2\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-q1\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-q-default\n",
" bandwidth remaining percent 100\n",
"policy-map type queuing default-8q-out-policy\n",
" class type queuing c-out-8q-q7\n",
" priority level 1\n",
" class type queuing c-out-8q-q6\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q5\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q4\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q3\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q2\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q1\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q-default\n",
" bandwidth remaining percent 100\n",
"copp profile strict\n",
"no system mode maintenance\n",
"snmp-server user admin network-admin auth md5 0x931668ddcace7406c09e2921aa15bda1 priv 0x931668ddcace7406c09e2921aa15bda1 localizedkey\n",
"rmon event 1 description FATAL(1) owner PMON@FATAL\n",
"rmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n",
"rmon event 3 description ERROR(3) owner PMON@ERROR\n",
"rmon event 4 description WARNING(4) owner PMON@WARNING\n",
"rmon event 5 description INFORMATION(5) owner PMON@INFO\n",
"callhome\n",
" destination-profile CiscoTAC-1 message-level 0\n",
" destination-profile CiscoTAC-1 message-size 5000000\n",
" destination-profile full_txt message-level 0\n",
" destination-profile full_txt message-size 2500000\n",
" destination-profile short_txt message-level 0\n",
" destination-profile short_txt message-size 4000\n",
" periodic-inventory notification interval 7\n",
" periodic-inventory notification timeofday 08:00\n",
"vlan 1\n",
"vrf context management\n",
" ip route 0.0.0.0/0 10.105.194.129\n",
"nxapi http port 80\n",
"nxapi https port 443\n",
"no nxapi ssl ciphers weak\n",
"nxapi ssl protocols TLSv1.1 TLSv1.2\n",
"interface Ethernet1/1\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/2\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/3\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/4\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/5\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/6\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/7\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/8\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/9\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/10\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/11\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/12\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/13\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/14\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/15\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/16\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/17\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/18\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/19\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/20\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/21\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/22\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/23\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/24\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/25\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/26\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/27\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/28\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/29\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/30\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/31\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/32\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/33\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/34\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/35\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/36\n",
" shutdown\n",
" no switchport\n",
"interface mgmt0\n",
" vrf member management\n",
" ip address 10.105.194.196/25\n",
"line console\n",
"line vty\n",
"xml server timeout 1200\n",
"no priority-flow-control override-interface mode off\n",
" logging logfile messages 5 size 4194304\n",
" logging monitor\n",
" logging module\n",
" logging console\n",
[
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{}
]
]
},
{
"name": "user-checkpoint-5",
"checkpoint_config": [
"!Command: Checkpoint cmd vdc 1\n",
"!Time: Thu Jul 19 05:55:11 2018\n",
"version 9.2(1) Bios:version 08.32 \n",
"class-map type network-qos c-nq1\n",
" description Default class on qos-group 1\n",
" match qos-group 1\n",
"class-map type network-qos c-nq2\n",
" description Default class on qos-group 2\n",
" match qos-group 2\n",
"class-map type network-qos c-nq3\n",
" description Default class on qos-group 3\n",
" match qos-group 3\n",
"class-map type network-qos c-8q-nq1\n",
" description Default class on qos-group 1\n",
" match qos-group 1\n",
"class-map type network-qos c-8q-nq2\n",
" description Default class on qos-group 2\n",
" match qos-group 2\n",
"class-map type network-qos c-8q-nq3\n",
" description Default class on qos-group 3\n",
" match qos-group 3\n",
"class-map type network-qos c-8q-nq4\n",
" description Default class on qos-group 4\n",
" match qos-group 4\n",
"class-map type network-qos c-8q-nq5\n",
" description Default class on qos-group 5\n",
" match qos-group 5\n",
"class-map type network-qos c-8q-nq6\n",
" description Default class on qos-group 6\n",
" match qos-group 6\n",
"class-map type network-qos c-8q-nq7\n",
" description Default class on qos-group 7\n",
" match qos-group 7\n",
"class-map type network-qos c-nq-default\n",
" description Default class on qos-group 0\n",
" match qos-group 0\n",
"class-map type network-qos c-8q-nq-default\n",
" description Default class on qos-group 0\n",
" match qos-group 0\n",
"policy-map type network-qos default-nq-policy\n",
" class type network-qos c-nq3\n",
" mtu 1500\n",
" class type network-qos c-nq2\n",
" mtu 1500\n",
" class type network-qos c-nq1\n",
" mtu 1500\n",
" class type network-qos c-nq-default\n",
" mtu 1500\n",
"policy-map type network-qos default-8q-nq-policy\n",
" class type network-qos c-8q-nq7\n",
" mtu 1500\n",
" class type network-qos c-8q-nq6\n",
" mtu 1500\n",
" class type network-qos c-8q-nq5\n",
" mtu 1500\n",
" class type network-qos c-8q-nq4\n",
" mtu 1500\n",
" class type network-qos c-8q-nq3\n",
" mtu 1500\n",
" class type network-qos c-8q-nq2\n",
" mtu 1500\n",
" class type network-qos c-8q-nq1\n",
" mtu 1500\n",
" class type network-qos c-8q-nq-default\n",
" mtu 1500\n",
"vdc switch id 1\n",
" limit-resource vlan minimum 16 maximum 4094\n",
" limit-resource vrf minimum 2 maximum 4096\n",
" limit-resource port-channel minimum 0 maximum 511\n",
" limit-resource u4route-mem minimum 248 maximum 248\n",
" limit-resource u6route-mem minimum 96 maximum 96\n",
" limit-resource m4route-mem minimum 58 maximum 58\n",
" limit-resource m6route-mem minimum 8 maximum 8\n",
"feature nxapi\n",
"feature bash-shell\n",
" feature ssh\n",
" ssh key rsa 1024\n",
"role name priv-15\n",
" description This is a system defined privilege role.\n",
" rule 1 permit read-write \n",
"role name priv-14\n",
" description This is a system defined privilege role.\n",
" rule 1 permit read-write \n",
"role name priv-13\n",
" description This is a system defined privilege role.\n",
"role name priv-12\n",
" description This is a system defined privilege role.\n",
"role name priv-11\n",
" description This is a system defined privilege role.\n",
"role name priv-10\n",
" description This is a system defined privilege role.\n",
"role name priv-9\n",
" description This is a system defined privilege role.\n",
"role name priv-8\n",
" description This is a system defined privilege role.\n",
"role name priv-7\n",
" description This is a system defined privilege role.\n",
"role name priv-6\n",
" description This is a system defined privilege role.\n",
"role name priv-5\n",
" description This is a system defined privilege role.\n",
"role name priv-4\n",
" description This is a system defined privilege role.\n",
"role name priv-3\n",
" description This is a system defined privilege role.\n",
"role name priv-2\n",
" description This is a system defined privilege role.\n",
"role name priv-1\n",
" description This is a system defined privilege role.\n",
"role name priv-0\n",
" description This is a system defined privilege role.\n",
" rule 10 permit command traceroute6 *\n",
" rule 9 permit command traceroute *\n",
" rule 8 permit command telnet6 *\n",
" rule 7 permit command telnet *\n",
" rule 6 permit command ping6 *\n",
" rule 5 permit command ping *\n",
" rule 4 permit command ssh6 *\n",
" rule 3 permit command ssh *\n",
" rule 2 permit command enable *\n",
" rule 1 permit read \n",
"no password strength-check\n",
"username admin password 5 $5$qb.xSESp$ol5ZmZHuSHYZYFzajrX1Ny9cFTD1Y/e8j2L1b6YLpi5 role network-admin\n",
"ip domain-lookup\n",
" qos statistics\n",
" class-map type queuing match-any c-out-q3\n",
" match qos-group 3\n",
" class-map type queuing match-any c-out-q2\n",
" match qos-group 2\n",
" class-map type queuing match-any c-out-q1\n",
" match qos-group 1\n",
" class-map type queuing match-any c-out-q-default\n",
" match qos-group 0\n",
" class-map type queuing match-any c-out-8q-q7\n",
" match qos-group 7\n",
" class-map type queuing match-any c-out-8q-q6\n",
" match qos-group 6\n",
" class-map type queuing match-any c-out-8q-q5\n",
" match qos-group 5\n",
" class-map type queuing match-any c-out-8q-q4\n",
" match qos-group 4\n",
" class-map type queuing match-any c-out-8q-q3\n",
" match qos-group 3\n",
" class-map type queuing match-any c-out-8q-q2\n",
" match qos-group 2\n",
" class-map type queuing match-any c-out-8q-q1\n",
" match qos-group 1\n",
" class-map type queuing match-any c-out-8q-q-default\n",
" match qos-group 0\n",
" class-map type queuing match-any c-in-q7\n",
" match qos-group 7\n",
" class-map type queuing match-any c-in-q6\n",
" match qos-group 6\n",
" class-map type queuing match-any c-in-q5\n",
" match qos-group 5\n",
" class-map type queuing match-any c-in-q4\n",
" match qos-group 4\n",
" class-map type queuing match-any c-in-q3\n",
" match qos-group 3\n",
" class-map type queuing match-any c-in-q2\n",
" match qos-group 2\n",
" class-map type queuing match-any c-in-q1\n",
" match qos-group 1\n",
" class-map type queuing match-any c-in-q-default\n",
" match qos-group 0\n",
"policy-map type queuing default-out-policy\n",
" class type queuing c-out-q3\n",
" priority level 1\n",
" class type queuing c-out-q2\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-q1\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-q-default\n",
" bandwidth remaining percent 100\n",
"policy-map type queuing default-8q-out-policy\n",
" class type queuing c-out-8q-q7\n",
" priority level 1\n",
" class type queuing c-out-8q-q6\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q5\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q4\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q3\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q2\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q1\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q-default\n",
" bandwidth remaining percent 100\n",
"copp profile strict\n",
"no system mode maintenance\n",
"snmp-server user admin network-admin auth md5 0x931668ddcace7406c09e2921aa15bda1 priv 0x931668ddcace7406c09e2921aa15bda1 localizedkey\n",
"rmon event 1 description FATAL(1) owner PMON@FATAL\n",
"rmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n",
"rmon event 3 description ERROR(3) owner PMON@ERROR\n",
"rmon event 4 description WARNING(4) owner PMON@WARNING\n",
"rmon event 5 description INFORMATION(5) owner PMON@INFO\n",
"callhome\n",
" destination-profile CiscoTAC-1 message-level 0\n",
" destination-profile CiscoTAC-1 message-size 5000000\n",
" destination-profile full_txt message-level 0\n",
" destination-profile full_txt message-size 2500000\n",
" destination-profile short_txt message-level 0\n",
" destination-profile short_txt message-size 4000\n",
" periodic-inventory notification interval 7\n",
" periodic-inventory notification timeofday 08:00\n",
"vlan 1\n",
"vrf context management\n",
" ip route 0.0.0.0/0 10.105.194.129\n",
"nxapi http port 80\n",
"nxapi https port 443\n",
"no nxapi ssl ciphers weak\n",
"nxapi ssl protocols TLSv1.1 TLSv1.2\n",
"interface Ethernet1/1\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/2\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/3\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/4\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/5\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/6\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/7\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/8\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/9\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/10\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/11\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/12\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/13\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/14\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/15\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/16\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/17\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/18\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/19\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/20\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/21\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/22\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/23\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/24\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/25\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/26\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/27\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/28\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/29\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/30\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/31\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/32\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/33\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/34\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/35\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/36\n",
" shutdown\n",
" no switchport\n",
"interface mgmt0\n",
" vrf member management\n",
" ip address 10.105.194.196/25\n",
"line console\n",
"line vty\n",
"xml server timeout 1200\n",
"no priority-flow-control override-interface mode off\n",
" logging logfile messages 5 size 4194304\n",
" logging monitor\n",
" logging module\n",
" logging console\n",
[
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{}
]
]
},
{
"name": "checkpoint1",
"checkpoint_config": [
"!Command: Checkpoint cmd vdc 1\n",
"!Time: Thu Jul 19 05:55:29 2018\n",
"version 9.2(1) Bios:version 08.32 \n",
"class-map type network-qos c-nq1\n",
" description Default class on qos-group 1\n",
" match qos-group 1\n",
"class-map type network-qos c-nq2\n",
" description Default class on qos-group 2\n",
" match qos-group 2\n",
"class-map type network-qos c-nq3\n",
" description Default class on qos-group 3\n",
" match qos-group 3\n",
"class-map type network-qos c-8q-nq1\n",
" description Default class on qos-group 1\n",
" match qos-group 1\n",
"class-map type network-qos c-8q-nq2\n",
" description Default class on qos-group 2\n",
" match qos-group 2\n",
"class-map type network-qos c-8q-nq3\n",
" description Default class on qos-group 3\n",
" match qos-group 3\n",
"class-map type network-qos c-8q-nq4\n",
" description Default class on qos-group 4\n",
" match qos-group 4\n",
"class-map type network-qos c-8q-nq5\n",
" description Default class on qos-group 5\n",
" match qos-group 5\n",
"class-map type network-qos c-8q-nq6\n",
" description Default class on qos-group 6\n",
" match qos-group 6\n",
"class-map type network-qos c-8q-nq7\n",
" description Default class on qos-group 7\n",
" match qos-group 7\n",
"class-map type network-qos c-nq-default\n",
" description Default class on qos-group 0\n",
" match qos-group 0\n",
"class-map type network-qos c-8q-nq-default\n",
" description Default class on qos-group 0\n",
" match qos-group 0\n",
"policy-map type network-qos default-nq-policy\n",
" class type network-qos c-nq3\n",
" mtu 1500\n",
" class type network-qos c-nq2\n",
" mtu 1500\n",
" class type network-qos c-nq1\n",
" mtu 1500\n",
" class type network-qos c-nq-default\n",
" mtu 1500\n",
"policy-map type network-qos default-8q-nq-policy\n",
" class type network-qos c-8q-nq7\n",
" mtu 1500\n",
" class type network-qos c-8q-nq6\n",
" mtu 1500\n",
" class type network-qos c-8q-nq5\n",
" mtu 1500\n",
" class type network-qos c-8q-nq4\n",
" mtu 1500\n",
" class type network-qos c-8q-nq3\n",
" mtu 1500\n",
" class type network-qos c-8q-nq2\n",
" mtu 1500\n",
" class type network-qos c-8q-nq1\n",
" mtu 1500\n",
" class type network-qos c-8q-nq-default\n",
" mtu 1500\n",
"vdc switch id 1\n",
" limit-resource vlan minimum 16 maximum 4094\n",
" limit-resource vrf minimum 2 maximum 4096\n",
" limit-resource port-channel minimum 0 maximum 511\n",
" limit-resource u4route-mem minimum 248 maximum 248\n",
" limit-resource u6route-mem minimum 96 maximum 96\n",
" limit-resource m4route-mem minimum 58 maximum 58\n",
" limit-resource m6route-mem minimum 8 maximum 8\n",
"feature nxapi\n",
"feature bash-shell\n",
" feature ssh\n",
" ssh key rsa 1024\n",
"role name priv-15\n",
" description This is a system defined privilege role.\n",
" rule 1 permit read-write \n",
"role name priv-14\n",
" description This is a system defined privilege role.\n",
" rule 1 permit read-write \n",
"role name priv-13\n",
" description This is a system defined privilege role.\n",
"role name priv-12\n",
" description This is a system defined privilege role.\n",
"role name priv-11\n",
" description This is a system defined privilege role.\n",
"role name priv-10\n",
" description This is a system defined privilege role.\n",
"role name priv-9\n",
" description This is a system defined privilege role.\n",
"role name priv-8\n",
" description This is a system defined privilege role.\n",
"role name priv-7\n",
" description This is a system defined privilege role.\n",
"role name priv-6\n",
" description This is a system defined privilege role.\n",
"role name priv-5\n",
" description This is a system defined privilege role.\n",
"role name priv-4\n",
" description This is a system defined privilege role.\n",
"role name priv-3\n",
" description This is a system defined privilege role.\n",
"role name priv-2\n",
" description This is a system defined privilege role.\n",
"role name priv-1\n",
" description This is a system defined privilege role.\n",
"role name priv-0\n",
" description This is a system defined privilege role.\n",
" rule 10 permit command traceroute6 *\n",
" rule 9 permit command traceroute *\n",
" rule 8 permit command telnet6 *\n",
" rule 7 permit command telnet *\n",
" rule 6 permit command ping6 *\n",
" rule 5 permit command ping *\n",
" rule 4 permit command ssh6 *\n",
" rule 3 permit command ssh *\n",
" rule 2 permit command enable *\n",
" rule 1 permit read \n",
"no password strength-check\n",
"username admin password 5 $5$qb.xSESp$ol5ZmZHuSHYZYFzajrX1Ny9cFTD1Y/e8j2L1b6YLpi5 role network-admin\n",
"ip domain-lookup\n",
" qos statistics\n",
" class-map type queuing match-any c-out-q3\n",
" match qos-group 3\n",
" class-map type queuing match-any c-out-q2\n",
" match qos-group 2\n",
" class-map type queuing match-any c-out-q1\n",
" match qos-group 1\n",
" class-map type queuing match-any c-out-q-default\n",
" match qos-group 0\n",
" class-map type queuing match-any c-out-8q-q7\n",
" match qos-group 7\n",
" class-map type queuing match-any c-out-8q-q6\n",
" match qos-group 6\n",
" class-map type queuing match-any c-out-8q-q5\n",
" match qos-group 5\n",
" class-map type queuing match-any c-out-8q-q4\n",
" match qos-group 4\n",
" class-map type queuing match-any c-out-8q-q3\n",
" match qos-group 3\n",
" class-map type queuing match-any c-out-8q-q2\n",
" match qos-group 2\n",
" class-map type queuing match-any c-out-8q-q1\n",
" match qos-group 1\n",
" class-map type queuing match-any c-out-8q-q-default\n",
" match qos-group 0\n",
" class-map type queuing match-any c-in-q7\n",
" match qos-group 7\n",
" class-map type queuing match-any c-in-q6\n",
" match qos-group 6\n",
" class-map type queuing match-any c-in-q5\n",
" match qos-group 5\n",
" class-map type queuing match-any c-in-q4\n",
" match qos-group 4\n",
" class-map type queuing match-any c-in-q3\n",
" match qos-group 3\n",
" class-map type queuing match-any c-in-q2\n",
" match qos-group 2\n",
" class-map type queuing match-any c-in-q1\n",
" match qos-group 1\n",
" class-map type queuing match-any c-in-q-default\n",
" match qos-group 0\n",
"policy-map type queuing default-out-policy\n",
" class type queuing c-out-q3\n",
" priority level 1\n",
" class type queuing c-out-q2\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-q1\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-q-default\n",
" bandwidth remaining percent 100\n",
"policy-map type queuing default-8q-out-policy\n",
" class type queuing c-out-8q-q7\n",
" priority level 1\n",
" class type queuing c-out-8q-q6\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q5\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q4\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q3\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q2\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q1\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q-default\n",
" bandwidth remaining percent 100\n",
"copp profile strict\n",
"no system mode maintenance\n",
"snmp-server user admin network-admin auth md5 0x931668ddcace7406c09e2921aa15bda1 priv 0x931668ddcace7406c09e2921aa15bda1 localizedkey\n",
"rmon event 1 description FATAL(1) owner PMON@FATAL\n",
"rmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n",
"rmon event 3 description ERROR(3) owner PMON@ERROR\n",
"rmon event 4 description WARNING(4) owner PMON@WARNING\n",
"rmon event 5 description INFORMATION(5) owner PMON@INFO\n",
"callhome\n",
" destination-profile CiscoTAC-1 message-level 0\n",
" destination-profile CiscoTAC-1 message-size 5000000\n",
" destination-profile full_txt message-level 0\n",
" destination-profile full_txt message-size 2500000\n",
" destination-profile short_txt message-level 0\n",
" destination-profile short_txt message-size 4000\n",
" periodic-inventory notification interval 7\n",
" periodic-inventory notification timeofday 08:00\n",
"vlan 1\n",
"vrf context management\n",
" ip route 0.0.0.0/0 10.105.194.129\n",
"nxapi http port 80\n",
"nxapi https port 443\n",
"no nxapi ssl ciphers weak\n",
"nxapi ssl protocols TLSv1.1 TLSv1.2\n",
"interface Ethernet1/1\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/2\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/3\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/4\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/5\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/6\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/7\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/8\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/9\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/10\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/11\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/12\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/13\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/14\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/15\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/16\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/17\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/18\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/19\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/20\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/21\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/22\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/23\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/24\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/25\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/26\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/27\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/28\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/29\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/30\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/31\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/32\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/33\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/34\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/35\n",
" shutdown\n",
" no switchport\n",
"interface Ethernet1/36\n",
" shutdown\n",
" no switchport\n",
"interface mgmt0\n",
" vrf member management\n",
" ip address 10.105.194.196/25\n",
"line console\n",
"line vty\n",
"xml server timeout 1200\n",
"no priority-flow-control override-interface mode off\n",
" logging logfile messages 5 size 4194304\n",
" logging monitor\n",
" logging module\n",
" logging console\n",
[
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{}
]
]
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show checkpoint all command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show checkpoint user
show checkpoint user
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 checkpoint user",
"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 checkpoint user",
"msg": "Success",
"code": "200",
"body": {
"TABLE_checkpoint_details": {
"ROW_checkpoint_details": [
{
"name": "user-checkpoint-4",
"checkpoint_config": [
"!Command: Checkpoint cmd vdc 1\n",
"!Time: Thu Jul 19 05:54:57 2018\n",
"version 9.2(1) Bios:version 08.32 \n",
"class-map type network-qos c-nq1\n",
" description Default class on qos-group 1\n",
" match qos-group 1\n",
"class-map type network-qos c-nq2\n",
" description Default class on qos-group 2\n",
" match qos-group 2\n",
"class-map type network-qos c-nq3\n",
" description Default class on qos-group 3\n",
" match qos-group 3\n",
"class-map type network-qos c-8q-nq1\n",
" description Default class on qos-group 1\n",
" match qos-group 1\n",
"class-map type network-qos c-8q-nq2\n",
" description Default class on qos-group 2\n",
" match qos-group 2\n",
"class-map type network-qos c-8q-nq3\n",
" description Default class on qos-group 3\n",
" match qos-group 3\n",
"class-map type network-qos c-8q-nq4\n",
" description Default class on qos-group 4\n",
" match qos-group 4\n",
"class-map type network-qos c-8q-nq5\n",
" description Default class on qos-group 5\n",
" match qos-group 5\n",
"class-map type network-qos c-8q-nq6\n",
" description Default class on qos-group 6\n",
" match qos-group 6\n",
"class-map type network-qos c-8q-nq7\n",
" description Default class on qos-group 7\n",
" match qos-group 7\n",
"class-map type network-qos c-nq-default\n",
" description Default class on qos-group 0\n",
" match qos-group 0\n",
"class-map type network-qos c-8q-nq-default\n",
" description Default class on qos-group 0\n",
" match qos-group 0\n",
"policy-map type network-qos default-nq-policy\n",
" class type network-qos c-nq3\n",
" mtu 1500\n",
" class type network-qos c-nq2\n",
" mtu 1500\n",
" class type network-qos c-nq1\n",
" mtu 1500\n",
" class type network-qos c-nq-default\n",
" mtu 1500\n",
"policy-map type network-qos default-8q-nq-policy\n",
" class type network-qos c-8q-nq7\n",
" mtu 1500\n",
" class type network-qos c-8q-nq6\n",
" mtu 1500\n",
" class type network-qos c-8q-nq5\n",
" mtu 1500\n",
" class type network-qos c-8q-nq4\n",
" mtu 1500\n",
" class type network-qos c-8q-nq3\n",
" mtu 1500\n",
" class type network-qos c-8q-nq2\n",
" mtu 1500\n",
" class type network-qos c-8q-nq1\n",
" mtu 1500\n",
" class type network-qos c-8q-nq-default\n",
" mtu 1500\n",
"vdc switch id 1\n",
" limit-resource vlan minimum 16 maximum 4094\n",
" limit-resource vrf minimum 2 maximum 4096\n",
" limit-resource port-channel minimum 0 maximum 511\n",
" limit-resource u4route-mem minimum 248 maximum 248\n",
" limit-resource u6route-mem minimum 96 maximum 96\n",
" limit-resource m4route-mem minimum 58 maximum 58\n",
" limit-resource m6route-mem minimum 8 maximum 8\n",
"feature nxapi\n",
"feature bash-shell\n",
"role name priv-15\n",
" description This is a system defined privilege role.\n",
" rule 1 permit read-write \n",
"role name priv-14\n",
" description This is a system defined privilege role.\n",
" rule 1 permit read-write \n",
"role name priv-13\n",
" description This is a system defined privilege role.\n",
"role name priv-12\n",
" description This is a system defined privilege role.\n",
"role name priv-11\n",
" description This is a system defined privilege role.\n",
"role name priv-10\n",
" description This is a system defined privilege role.\n",
"role name priv-9\n",
" description This is a system defined privilege role.\n",
"role name priv-8\n",
" description This is a system defined privilege role.\n",
"role name priv-7\n",
" description This is a system defined privilege role.\n",
"role name priv-6\n",
" description This is a system defined privilege role.\n",
"role name priv-5\n",
" description This is a system defined privilege role.\n",
"role name priv-4\n",
" description This is a system defined privilege role.\n",
"role name priv-3\n",
" description This is a system defined privilege role.\n",
"role name priv-2\n",
" description This is a system defined privilege role.\n",
"role name priv-1\n",
" description This is a system defined privilege role.\n",
"role name priv-0\n",
" description This is a system defined privilege role.\n",
" rule 10 permit command traceroute6 *\n",
" rule 9 permit command traceroute *\n",
" rule 8 permit command telnet6 *\n",
" rule 7 permit command telnet *\n",
" rule 6 permit command ping6 *\n",
" rule 5 permit command ping *\n",
" rule 4 permit command ssh6 *\n",
" rule 3 permit command ssh *\n",
" rule 2 permit command enable *\n",
" rule 1 permit read \n",
"no password strength-check\n",
"username admin password 5 $5$qb.xSESp$ol5ZmZHuSHYZYFzajrX1Ny9cFTD1Y/e8j2L1b6YLpi5 role network-admin\n",
"ip domain-lookup\n",
"policy-map type queuing default-out-policy\n",
" class type queuing c-out-q3\n",
" priority level 1\n",
" class type queuing c-out-q2\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-q1\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-q-default\n",
" bandwidth remaining percent 100\n",
"policy-map type queuing default-8q-out-policy\n",
" class type queuing c-out-8q-q7\n",
" priority level 1\n",
" class type queuing c-out-8q-q6\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q5\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q4\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q3\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q2\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q1\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q-default\n",
" bandwidth remaining percent 100\n",
"copp profile strict\n",
"no system mode maintenance\n",
"snmp-server user admin network-admin auth md5 0x931668ddcace7406c09e2921aa15bda1 priv 0x931668ddcace7406c09e2921aa15bda1 localizedkey\n",
"rmon event 1 description FATAL(1) owner PMON@FATAL\n",
"rmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n",
"rmon event 3 description ERROR(3) owner PMON@ERROR\n",
"rmon event 4 description WARNING(4) owner PMON@WARNING\n",
"rmon event 5 description INFORMATION(5) owner PMON@INFO\n",
"callhome\n",
"vlan 1\n",
"vrf context management\n",
" ip route 0.0.0.0/0 10.105.194.129\n",
"nxapi http port 80\n",
"nxapi https port 443\n",
"no nxapi ssl ciphers weak\n",
"nxapi ssl protocols TLSv1.1 TLSv1.2\n",
"interface Ethernet1/1\n",
"interface Ethernet1/2\n",
"interface Ethernet1/3\n",
"interface Ethernet1/4\n",
"interface Ethernet1/5\n",
"interface Ethernet1/6\n",
"interface Ethernet1/7\n",
"interface Ethernet1/8\n",
"interface Ethernet1/9\n",
"interface Ethernet1/10\n",
"interface Ethernet1/11\n",
"interface Ethernet1/12\n",
"interface Ethernet1/13\n",
"interface Ethernet1/14\n",
"interface Ethernet1/15\n",
"interface Ethernet1/16\n",
"interface Ethernet1/17\n",
"interface Ethernet1/18\n",
"interface Ethernet1/19\n",
"interface Ethernet1/20\n",
"interface Ethernet1/21\n",
"interface Ethernet1/22\n",
"interface Ethernet1/23\n",
"interface Ethernet1/24\n",
"interface Ethernet1/25\n",
"interface Ethernet1/26\n",
"interface Ethernet1/27\n",
"interface Ethernet1/28\n",
"interface Ethernet1/29\n",
"interface Ethernet1/30\n",
"interface Ethernet1/31\n",
"interface Ethernet1/32\n",
"interface Ethernet1/33\n",
"interface Ethernet1/34\n",
"interface Ethernet1/35\n",
"interface Ethernet1/36\n",
"interface mgmt0\n",
" vrf member management\n",
" ip address 10.105.194.196/25\n",
"line console\n",
"line vty\n",
"xml server timeout 1200\n",
"no priority-flow-control override-interface mode off\n",
[
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{}
]
]
},
{
"name": "user-checkpoint-5",
"checkpoint_config": [
"!Command: Checkpoint cmd vdc 1\n",
"!Time: Thu Jul 19 05:55:11 2018\n",
"version 9.2(1) Bios:version 08.32 \n",
"class-map type network-qos c-nq1\n",
" description Default class on qos-group 1\n",
" match qos-group 1\n",
"class-map type network-qos c-nq2\n",
" description Default class on qos-group 2\n",
" match qos-group 2\n",
"class-map type network-qos c-nq3\n",
" description Default class on qos-group 3\n",
" match qos-group 3\n",
"class-map type network-qos c-8q-nq1\n",
" description Default class on qos-group 1\n",
" match qos-group 1\n",
"class-map type network-qos c-8q-nq2\n",
" description Default class on qos-group 2\n",
" match qos-group 2\n",
"class-map type network-qos c-8q-nq3\n",
" description Default class on qos-group 3\n",
" match qos-group 3\n",
"class-map type network-qos c-8q-nq4\n",
" description Default class on qos-group 4\n",
" match qos-group 4\n",
"class-map type network-qos c-8q-nq5\n",
" description Default class on qos-group 5\n",
" match qos-group 5\n",
"class-map type network-qos c-8q-nq6\n",
" description Default class on qos-group 6\n",
" match qos-group 6\n",
"class-map type network-qos c-8q-nq7\n",
" description Default class on qos-group 7\n",
" match qos-group 7\n",
"class-map type network-qos c-nq-default\n",
" description Default class on qos-group 0\n",
" match qos-group 0\n",
"class-map type network-qos c-8q-nq-default\n",
" description Default class on qos-group 0\n",
" match qos-group 0\n",
"policy-map type network-qos default-nq-policy\n",
" class type network-qos c-nq3\n",
" mtu 1500\n",
" class type network-qos c-nq2\n",
" mtu 1500\n",
" class type network-qos c-nq1\n",
" mtu 1500\n",
" class type network-qos c-nq-default\n",
" mtu 1500\n",
"policy-map type network-qos default-8q-nq-policy\n",
" class type network-qos c-8q-nq7\n",
" mtu 1500\n",
" class type network-qos c-8q-nq6\n",
" mtu 1500\n",
" class type network-qos c-8q-nq5\n",
" mtu 1500\n",
" class type network-qos c-8q-nq4\n",
" mtu 1500\n",
" class type network-qos c-8q-nq3\n",
" mtu 1500\n",
" class type network-qos c-8q-nq2\n",
" mtu 1500\n",
" class type network-qos c-8q-nq1\n",
" mtu 1500\n",
" class type network-qos c-8q-nq-default\n",
" mtu 1500\n",
"vdc switch id 1\n",
" limit-resource vlan minimum 16 maximum 4094\n",
" limit-resource vrf minimum 2 maximum 4096\n",
" limit-resource port-channel minimum 0 maximum 511\n",
" limit-resource u4route-mem minimum 248 maximum 248\n",
" limit-resource u6route-mem minimum 96 maximum 96\n",
" limit-resource m4route-mem minimum 58 maximum 58\n",
" limit-resource m6route-mem minimum 8 maximum 8\n",
"feature nxapi\n",
"feature bash-shell\n",
"role name priv-15\n",
" description This is a system defined privilege role.\n",
" rule 1 permit read-write \n",
"role name priv-14\n",
" description This is a system defined privilege role.\n",
" rule 1 permit read-write \n",
"role name priv-13\n",
" description This is a system defined privilege role.\n",
"role name priv-12\n",
" description This is a system defined privilege role.\n",
"role name priv-11\n",
" description This is a system defined privilege role.\n",
"role name priv-10\n",
" description This is a system defined privilege role.\n",
"role name priv-9\n",
" description This is a system defined privilege role.\n",
"role name priv-8\n",
" description This is a system defined privilege role.\n",
"role name priv-7\n",
" description This is a system defined privilege role.\n",
"role name priv-6\n",
" description This is a system defined privilege role.\n",
"role name priv-5\n",
" description This is a system defined privilege role.\n",
"role name priv-4\n",
" description This is a system defined privilege role.\n",
"role name priv-3\n",
" description This is a system defined privilege role.\n",
"role name priv-2\n",
" description This is a system defined privilege role.\n",
"role name priv-1\n",
" description This is a system defined privilege role.\n",
"role name priv-0\n",
" description This is a system defined privilege role.\n",
" rule 10 permit command traceroute6 *\n",
" rule 9 permit command traceroute *\n",
" rule 8 permit command telnet6 *\n",
" rule 7 permit command telnet *\n",
" rule 6 permit command ping6 *\n",
" rule 5 permit command ping *\n",
" rule 4 permit command ssh6 *\n",
" rule 3 permit command ssh *\n",
" rule 2 permit command enable *\n",
" rule 1 permit read \n",
"no password strength-check\n",
"username admin password 5 $5$qb.xSESp$ol5ZmZHuSHYZYFzajrX1Ny9cFTD1Y/e8j2L1b6YLpi5 role network-admin\n",
"ip domain-lookup\n",
"policy-map type queuing default-out-policy\n",
" class type queuing c-out-q3\n",
" priority level 1\n",
" class type queuing c-out-q2\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-q1\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-q-default\n",
" bandwidth remaining percent 100\n",
"policy-map type queuing default-8q-out-policy\n",
" class type queuing c-out-8q-q7\n",
" priority level 1\n",
" class type queuing c-out-8q-q6\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q5\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q4\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q3\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q2\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q1\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q-default\n",
" bandwidth remaining percent 100\n",
"copp profile strict\n",
"no system mode maintenance\n",
"snmp-server user admin network-admin auth md5 0x931668ddcace7406c09e2921aa15bda1 priv 0x931668ddcace7406c09e2921aa15bda1 localizedkey\n",
"rmon event 1 description FATAL(1) owner PMON@FATAL\n",
"rmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n",
"rmon event 3 description ERROR(3) owner PMON@ERROR\n",
"rmon event 4 description WARNING(4) owner PMON@WARNING\n",
"rmon event 5 description INFORMATION(5) owner PMON@INFO\n",
"callhome\n",
"vlan 1\n",
"vrf context management\n",
" ip route 0.0.0.0/0 10.105.194.129\n",
"nxapi http port 80\n",
"nxapi https port 443\n",
"no nxapi ssl ciphers weak\n",
"nxapi ssl protocols TLSv1.1 TLSv1.2\n",
"interface Ethernet1/1\n",
"interface Ethernet1/2\n",
"interface Ethernet1/3\n",
"interface Ethernet1/4\n",
"interface Ethernet1/5\n",
"interface Ethernet1/6\n",
"interface Ethernet1/7\n",
"interface Ethernet1/8\n",
"interface Ethernet1/9\n",
"interface Ethernet1/10\n",
"interface Ethernet1/11\n",
"interface Ethernet1/12\n",
"interface Ethernet1/13\n",
"interface Ethernet1/14\n",
"interface Ethernet1/15\n",
"interface Ethernet1/16\n",
"interface Ethernet1/17\n",
"interface Ethernet1/18\n",
"interface Ethernet1/19\n",
"interface Ethernet1/20\n",
"interface Ethernet1/21\n",
"interface Ethernet1/22\n",
"interface Ethernet1/23\n",
"interface Ethernet1/24\n",
"interface Ethernet1/25\n",
"interface Ethernet1/26\n",
"interface Ethernet1/27\n",
"interface Ethernet1/28\n",
"interface Ethernet1/29\n",
"interface Ethernet1/30\n",
"interface Ethernet1/31\n",
"interface Ethernet1/32\n",
"interface Ethernet1/33\n",
"interface Ethernet1/34\n",
"interface Ethernet1/35\n",
"interface Ethernet1/36\n",
"interface mgmt0\n",
" vrf member management\n",
" ip address 10.105.194.196/25\n",
"line console\n",
"line vty\n",
"xml server timeout 1200\n",
"no priority-flow-control override-interface mode off\n",
[
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{}
]
]
},
{
"name": "checkpoint1",
"checkpoint_config": [
"!Command: Checkpoint cmd vdc 1\n",
"!Time: Thu Jul 19 05:55:29 2018\n",
"version 9.2(1) Bios:version 08.32 \n",
"class-map type network-qos c-nq1\n",
" description Default class on qos-group 1\n",
" match qos-group 1\n",
"class-map type network-qos c-nq2\n",
" description Default class on qos-group 2\n",
" match qos-group 2\n",
"class-map type network-qos c-nq3\n",
" description Default class on qos-group 3\n",
" match qos-group 3\n",
"class-map type network-qos c-8q-nq1\n",
" description Default class on qos-group 1\n",
" match qos-group 1\n",
"class-map type network-qos c-8q-nq2\n",
" description Default class on qos-group 2\n",
" match qos-group 2\n",
"class-map type network-qos c-8q-nq3\n",
" description Default class on qos-group 3\n",
" match qos-group 3\n",
"class-map type network-qos c-8q-nq4\n",
" description Default class on qos-group 4\n",
" match qos-group 4\n",
"class-map type network-qos c-8q-nq5\n",
" description Default class on qos-group 5\n",
" match qos-group 5\n",
"class-map type network-qos c-8q-nq6\n",
" description Default class on qos-group 6\n",
" match qos-group 6\n",
"class-map type network-qos c-8q-nq7\n",
" description Default class on qos-group 7\n",
" match qos-group 7\n",
"class-map type network-qos c-nq-default\n",
" description Default class on qos-group 0\n",
" match qos-group 0\n",
"class-map type network-qos c-8q-nq-default\n",
" description Default class on qos-group 0\n",
" match qos-group 0\n",
"policy-map type network-qos default-nq-policy\n",
" class type network-qos c-nq3\n",
" mtu 1500\n",
" class type network-qos c-nq2\n",
" mtu 1500\n",
" class type network-qos c-nq1\n",
" mtu 1500\n",
" class type network-qos c-nq-default\n",
" mtu 1500\n",
"policy-map type network-qos default-8q-nq-policy\n",
" class type network-qos c-8q-nq7\n",
" mtu 1500\n",
" class type network-qos c-8q-nq6\n",
" mtu 1500\n",
" class type network-qos c-8q-nq5\n",
" mtu 1500\n",
" class type network-qos c-8q-nq4\n",
" mtu 1500\n",
" class type network-qos c-8q-nq3\n",
" mtu 1500\n",
" class type network-qos c-8q-nq2\n",
" mtu 1500\n",
" class type network-qos c-8q-nq1\n",
" mtu 1500\n",
" class type network-qos c-8q-nq-default\n",
" mtu 1500\n",
"vdc switch id 1\n",
" limit-resource vlan minimum 16 maximum 4094\n",
" limit-resource vrf minimum 2 maximum 4096\n",
" limit-resource port-channel minimum 0 maximum 511\n",
" limit-resource u4route-mem minimum 248 maximum 248\n",
" limit-resource u6route-mem minimum 96 maximum 96\n",
" limit-resource m4route-mem minimum 58 maximum 58\n",
" limit-resource m6route-mem minimum 8 maximum 8\n",
"feature nxapi\n",
"feature bash-shell\n",
"role name priv-15\n",
" description This is a system defined privilege role.\n",
" rule 1 permit read-write \n",
"role name priv-14\n",
" description This is a system defined privilege role.\n",
" rule 1 permit read-write \n",
"role name priv-13\n",
" description This is a system defined privilege role.\n",
"role name priv-12\n",
" description This is a system defined privilege role.\n",
"role name priv-11\n",
" description This is a system defined privilege role.\n",
"role name priv-10\n",
" description This is a system defined privilege role.\n",
"role name priv-9\n",
" description This is a system defined privilege role.\n",
"role name priv-8\n",
" description This is a system defined privilege role.\n",
"role name priv-7\n",
" description This is a system defined privilege role.\n",
"role name priv-6\n",
" description This is a system defined privilege role.\n",
"role name priv-5\n",
" description This is a system defined privilege role.\n",
"role name priv-4\n",
" description This is a system defined privilege role.\n",
"role name priv-3\n",
" description This is a system defined privilege role.\n",
"role name priv-2\n",
" description This is a system defined privilege role.\n",
"role name priv-1\n",
" description This is a system defined privilege role.\n",
"role name priv-0\n",
" description This is a system defined privilege role.\n",
" rule 10 permit command traceroute6 *\n",
" rule 9 permit command traceroute *\n",
" rule 8 permit command telnet6 *\n",
" rule 7 permit command telnet *\n",
" rule 6 permit command ping6 *\n",
" rule 5 permit command ping *\n",
" rule 4 permit command ssh6 *\n",
" rule 3 permit command ssh *\n",
" rule 2 permit command enable *\n",
" rule 1 permit read \n",
"no password strength-check\n",
"username admin password 5 $5$qb.xSESp$ol5ZmZHuSHYZYFzajrX1Ny9cFTD1Y/e8j2L1b6YLpi5 role network-admin\n",
"ip domain-lookup\n",
"policy-map type queuing default-out-policy\n",
" class type queuing c-out-q3\n",
" priority level 1\n",
" class type queuing c-out-q2\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-q1\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-q-default\n",
" bandwidth remaining percent 100\n",
"policy-map type queuing default-8q-out-policy\n",
" class type queuing c-out-8q-q7\n",
" priority level 1\n",
" class type queuing c-out-8q-q6\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q5\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q4\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q3\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q2\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q1\n",
" bandwidth remaining percent 0\n",
" class type queuing c-out-8q-q-default\n",
" bandwidth remaining percent 100\n",
"copp profile strict\n",
"no system mode maintenance\n",
"snmp-server user admin network-admin auth md5 0x931668ddcace7406c09e2921aa15bda1 priv 0x931668ddcace7406c09e2921aa15bda1 localizedkey\n",
"rmon event 1 description FATAL(1) owner PMON@FATAL\n",
"rmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n",
"rmon event 3 description ERROR(3) owner PMON@ERROR\n",
"rmon event 4 description WARNING(4) owner PMON@WARNING\n",
"rmon event 5 description INFORMATION(5) owner PMON@INFO\n",
"callhome\n",
"vlan 1\n",
"vrf context management\n",
" ip route 0.0.0.0/0 10.105.194.129\n",
"nxapi http port 80\n",
"nxapi https port 443\n",
"no nxapi ssl ciphers weak\n",
"nxapi ssl protocols TLSv1.1 TLSv1.2\n",
"interface Ethernet1/1\n",
"interface Ethernet1/2\n",
"interface Ethernet1/3\n",
"interface Ethernet1/4\n",
"interface Ethernet1/5\n",
"interface Ethernet1/6\n",
"interface Ethernet1/7\n",
"interface Ethernet1/8\n",
"interface Ethernet1/9\n",
"interface Ethernet1/10\n",
"interface Ethernet1/11\n",
"interface Ethernet1/12\n",
"interface Ethernet1/13\n",
"interface Ethernet1/14\n",
"interface Ethernet1/15\n",
"interface Ethernet1/16\n",
"interface Ethernet1/17\n",
"interface Ethernet1/18\n",
"interface Ethernet1/19\n",
"interface Ethernet1/20\n",
"interface Ethernet1/21\n",
"interface Ethernet1/22\n",
"interface Ethernet1/23\n",
"interface Ethernet1/24\n",
"interface Ethernet1/25\n",
"interface Ethernet1/26\n",
"interface Ethernet1/27\n",
"interface Ethernet1/28\n",
"interface Ethernet1/29\n",
"interface Ethernet1/30\n",
"interface Ethernet1/31\n",
"interface Ethernet1/32\n",
"interface Ethernet1/33\n",
"interface Ethernet1/34\n",
"interface Ethernet1/35\n",
"interface Ethernet1/36\n",
"interface mgmt0\n",
" vrf member management\n",
" ip address 10.105.194.196/25\n",
"line console\n",
"line vty\n",
"xml server timeout 1200\n",
"no priority-flow-control override-interface mode off\n",
[
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{}
]
]
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show checkpoint user command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show checkpoint summary user
show checkpoint summary user
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 checkpoint summary user ",
"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 checkpoint summary user",
"msg": "Success",
"code": "200",
"body": {
"TABLE_checkpoint_header_info": {
"ROW_checkpoint_header_info": [
{
"name": "user-checkpoint-4",
"user_name": "admin",
"timestamp": 1531979697,
"file_path": "/isan/etc/checkpoints/cfg_chkpoint_vdc1_4",
"chkpt_type": 1,
"description": "None"
},
{
"name": "user-checkpoint-5",
"user_name": "admin",
"timestamp": 1531979712,
"file_path": "/isan/etc/checkpoints/cfg_chkpoint_vdc1_5",
"chkpt_type": 1,
"description": "Test"
},
{
"name": "checkpoint1",
"user_name": "admin",
"timestamp": 1531979729,
"file_path": "/isan/etc/checkpoints/cfg_chkpoint_vdc1_6",
"chkpt_type": 1,
"description": "test1 "
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show checkpoint summary user command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|