show ip adjacency
show ip adjacency
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.2",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ip adjacency",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip adjacency",
"msg": "Success",
"code": "200",
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"vrf-name-out": "default",
"TABLE_afi": {
"ROW_afi": {
"afi": "ipv4",
"count": 1,
"TABLE_adj": {
"ROW_adj": {
"intf-out": "Ethernet3/2",
"ip-addr-out": "113.0.1.1",
"mac": "18ef.63e7.1dc2",
"pref": 50,
"owner": "arp"
}
}
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip adjacency command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip adjacency summary
show ip adjacency summary
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.2",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ip adjacency summary",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip adjacency summary",
"msg": "Success",
"code": "200",
"body": {
"count-static": 0,
"count-dynamic": 1,
"count-others": 0,
"count-throttle": 0,
"count-total": 1
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip adjacency summary command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip arp detail
show ip arp detail
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.2",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ip arp detail",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip arp detail",
"msg": "Success",
"code": "200",
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"vrf-name-out": "default",
"cnt-total": 1,
"TABLE_adj": {
"ROW_adj": {
"intf-out": "Ethernet3/2",
"ip-addr-out": "113.0.1.1",
"time-stamp": "00:10:15",
"mac": "18ef.63e7.1dc2",
"phy-intf": "Ethernet3/2"
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp detail command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip arp statistics
show ip arp statistics
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.2",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ip arp statistics",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip arp statistics",
"msg": "Success",
"code": "200",
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"vrf-name-out1": "default",
"TABLE_stat": {
"ROW_stat": {
"tx-total": 7,
"tx-req": 4,
"tx-reply": 1,
"tx-req-l2": 0,
"tx-reply-l2": 0,
"tx-grat": 2,
"tx-tunnel": 0,
"tx-drop": 0,
"tx-mbuf-fail": 0,
"tx-ctxt-not-crtd": 0,
"tx-bad-ctxt-id": 0,
"tx-invalid-ifindex": 0,
"tx-invalid-sip": 0,
"tx-invalid-dip": 0,
"tx-own-ip": 2,
"tx-unattached-ip": 2,
"tx-adj-create-fail": 0,
"tx-null-sip": 0,
"tx-null-smac": 0,
"tx-client-enq-fail": 0,
"tx-dest-unreachable": 0,
"tx-enhanced-proxy-dest-unreachable": 0,
"tx-l2-port-dest-unreachable": 0,
"tx-invalid-local-proxy": 0,
"tx-invalid-proxy": 0,
"tx-vip-not-active": 0,
"rx-total": 0,
"rx-req": 3,
"rx-reply": 2,
"rx-req-l2": 0,
"rx-reply-l2": 0,
"rx-proxy": 0,
"rx-local-proxy": 0,
"rx-enhanced-proxy": 0,
"rx-enhanced-proxy-anycast": 0,
"rx-enhanced-proxy-l2port-track": 0,
"rx-tunnel": 0,
"rx-fastpath": 0,
"rx-snoop": 0,
"rx-drop": 4,
"rx-srvrport": 0,
"bad-if": 0,
"bad-len": 0,
"invalid-prot": 0,
"invalid-hrd-type": 0,
"invalid-ctxt": 0,
"ctxt-not-crtd": 0,
"invalid-l2": 0,
"invalid-l3": 0,
"invalid-sip": 0,
"our-sip": 0,
"arp-if-no-mem": 0,
"subnet-mismatch": 0,
"dir-bcast": 0,
"invalid-dip": 0,
"non-local-dst": 0,
"non-active-fhrp": 0,
"invalid-smac": 0,
"our-smac": 0,
"not-init": 0,
"l2-prxy-en": 0,
"l2-port-untrusted": 0,
"stdby-fhrp-vip": 0,
"grat-prxy-en": 0,
"arp-req-ignore": 0,
"l2-intf": 0,
"l2fm-query-fail": 0,
"tunnel_fail": 0,
"incomplete-drop-count": 0,
"recv-glean-count": 5,
"adds": 1,
"dels": 0,
"timeouts": 0
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp statistics command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip arp summary vrf all
show ip arp summary vrf 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.2",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ip arp summary vrf all",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip arp summary vrf all",
"msg": "Success",
"code": "200",
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"vrf-name-out": "all",
"cnt-resolved": 6,
"cnt-incomplete": 0,
"cnt-thrtld-incomplete": 0,
"cnt-unknown": 0,
"cnt-total": 6
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp summary vrf all command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip arp suppression topo-info
show ip arp suppression topo-info
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.2",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ip arp suppression topo-info",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip arp suppression topo-info",
"msg": "Success",
"code": "200",
"body": {
"TABLE_arp_l2rib_topo": {
"ROW_arp_l2rib_topo": [
{
"sw-bd-topo-id": 90,
"arp-suppr-mode": "L2 ARP Suppression"
},
{
"sw-bd-topo-id": 110,
"arp-suppr-mode": "L2 ARP Suppression"
},
{
"sw-bd-topo-id": 210,
"arp-suppr-mode": "ARP Suppression Disabled"
},
{
"sw-bd-topo-id": 410,
"arp-suppr-mode": "L2/L3 ARP Suppression"
},
{
"sw-bd-topo-id": 610,
"arp-suppr-mode": "L2/L3 ARP Suppression"
},
{
"sw-bd-topo-id": 710,
"arp-suppr-mode": "L2/L3 ARP Suppression"
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp suppression topo-info command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip arp suppression-cache detail
show ip arp suppression-cache detail
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.2",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ip arp suppression-cache detail",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip arp suppression-cache detail",
"msg": "Success",
"code": "200",
"body": {
"TABLE_arp-suppression": {
"ROW_arp-suppression": {
"TABLE_entries": {
"ROW_entries": [
{
"ip-addr": "41.1.1.11",
"age": "00:07:31",
"mac": "0000.1111.1410",
"vlan": 410,
"physical-iod": "port-channel2",
"flag": "L"
},
{
"ip-addr": "41.1.1.10",
"age": "00:08:07",
"mac": "0000.1110.1410",
"vlan": 410,
"physical-iod": "Ethernet3/1/1",
"flag": "L"
}
]
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp suppression-cache detail command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip arp suppression-cache summary
show ip arp suppression-cache summary
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.2",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ip arp suppression-cache summary",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip arp suppression-cache summary",
"msg": "Success",
"code": "200",
"body": {
"TABLE_arp-suppression": {
"ROW_arp-suppression": {
"TABLE_summary": {
"ROW_summary": {
"remote-count": 0,
"local-count": 2,
"total-count": 2
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp suppression-cache summary command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip arp suppression-cache vlan 410
show ip arp suppression-cache vlan 410
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.2",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ip arp suppression-cache vlan 410",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": " show ip arp suppression-cache vlan 410",
"msg": "Success",
"code": "200",
"body": {
"TABLE_arp-suppression": {
"ROW_arp-suppression": {
"TABLE_entries": {
"ROW_entries": [
{
"ip-addr": "41.1.1.11",
"age": "00:13:41",
"mac": "0000.1111.1410",
"vlan": 410,
"physical-iod": "port-channel2",
"flag": "L"
},
{
"ip-addr": "41.1.1.10",
"age": "00:14:16",
"mac": "0000.1110.1410",
"vlan": 410,
"physical-iod": "Ethernet3/1/1",
"flag": "L"
}
]
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp suppression-cache vlan 410 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip arp sync-entries vrf vni-51000
show ip arp sync-entries vrf vni-51000
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 ip arp sync-entries vrf vni-51000",
"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 ip arp sync-entries vrf vni-51000",
"msg": "Success",
"code": "200",
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"vrf-name-out": "vni-51000",
"TABLE_adj": {
"ROW_adj": {
"intf-out": "Vlan410",
"ip-addr-out": "41.1.1.10",
"time-stamp": "PT6M6S",
"mac": "e8ed.f324.6cc2"
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp sync-entries vrf vni-51000 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip arp tunnel-statistics
show ip arp tunnel-statistics
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 ip arp tunnel-statistics",
"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 ip arp tunnel-statistics",
"msg": "Success",
"code": "200",
"body": {
"TABLE_ip_arp_tunnel_stat": {
"ROW_ip_arp_tunnel_stat": {
"arp-tun-pkt-rcv-cnt": 6,
"arp-tun-pkt-rcv-ing-vpc": 0,
"arp-tun-pkt-rcv-ing-gpc": 0,
"arp-tun-pkt-rcv-ing-orp-vpc": 6,
"arp-tun-pkt-rcv-ing-orp-vpc-pl": 0,
"arp-tun-pkt-snd-cnt": 12,
"arp-tun-pkt-snd-snoop-cnt": 0,
"arp-tun-pkt-snd-non-local-vip-cnt": 0,
"arp-tun-pkt-snd-peer-gate-cnt": 12,
"arp-tun-pkt-snd-ing-vpc": 0,
"arp-tun-pkt-snd-ing-gpc": 0,
"arp-tun-pkt-snd-ing-orp-vpc": 12,
"arp-tun-pkt-snd-ing-orp-vpc-pl": 0,
"arp-tun-pkt-rcv-drp-cnt": 0,
"arp-tun-pkt-snd-drp-cnt": 0,
"arp-tun-pkt-snd-drp-snd-fail-cnt": 0,
"arp-tun-pkt-rcv-drp-ver-cnt": 0,
"arp-tun-pkt-rcv-drp-pl-cnt": 0,
"arp-tun-pkt-rcv-drp-ing-non-mct": 0,
"arp-tun-pkt-rcv-drp-inv-ing-intf": 0,
"arp-tun-pkt-snd-drp-inv-ing-intf": 0,
"arp-tun-pkt-rcvdrp-inv-gpc-core-sw": 0,
"arp-tun-pkt-rcvdrp-inv-gpc-peer-sw": 0,
"arp-tun-pkt-drp-inv-mcec": 0,
"arp-tun-pkt-im-api-fail": 0,
"arp-tun-pkt-drp-ctxt-inv": 0,
"arp-tun-pkt-drp-mct-dwn": 0,
"arp-tun-pkt-rcv-drp-mbuf-op-fail": 0,
"arp-tun-pkt-snd-drp-mbuf-op-fail": 0,
"arp-tun-pkt-snd-drp-tunnel": 0,
"arp-tun-pkt-snd-drp-ce": 0,
"arp-tun-pkt-snd-drp-inv-gpc": 0,
"arp-tun-pkt-rcv-drp-inv-gpc": 0,
"arp-tun-pkt-sys-mcecm-key-not-found": 0
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp tunnel-statistics command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip arp vpc-statistics
show ip arp vpc-statistics
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.2",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ip arp vpc-statistics",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.2",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ip arp vpc-statistics",
"msg": "Success",
"code": "200",
"body": {
"TABLE_arp_vpc_stats": {
"ROW_arp_vpc_stats": {
"arp-drp-im-fail": 5,
"arp-drp-mcecm-fail": 1,
"arp-drp-pt-lookup-fail": 1,
"arp-resp-sent": 1,
"arp-resp-recvd": 1,
"arp-rcvd-msg": 1,
"arp-cfs-rel-dnvry-suc": 1,
"arp-add-adj": 1,
"arp-del-adj": 1,
"sync-send-op-add-adj": 1,
"sync-recv-op-add-adj": 1,
"sync-push-msg-adj-cnt": 1,
"arp-sync-adj-cnt": 2
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp vpc-statistics command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip as-path-access-list
show ip as-path-access-list
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 ip as-path-access-list ",
"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_aspl": {
"ROW_aspl": [
{
"name": "acl1",
"action": "permit",
"rule": "\"20\""
},
{
"name": "acl1",
"action": "deny",
"rule": "\"10\""
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip as-path-access-list command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip client
show ip client
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 ip client",
"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 ip client",
"msg": "Success",
"code": "200",
"body": {
"TABLE_ip_clnt": {
"ROW_ip_clnt": {
"TABLE_clnt": {
"ROW_clnt": [
{
"clnt-name": "arp",
"clnt-uuid": 268,
"clnt-pid": 29074,
"clnt-ext-pid": 29074,
"clnt-ind": 4,
"clnt-cntxt-id": 65535,
"clnt-mts-sap": 280,
"clnt-flg": "3",
"clnt-msg-succ-cnt": 0,
"clnt-msg-fail-cnt": 0
},
{
"clnt-name": "rpm",
"clnt-uuid": 305,
"clnt-pid": 30599,
"clnt-ext-pid": 30599,
"clnt-ind": 11,
"clnt-cntxt-id": 1,
"clnt-mts-sap": 0,
"clnt-flg": "3",
"clnt-msg-succ-cnt": 0,
"clnt-msg-fail-cnt": 0
},
{
"clnt-name": "tcpudp",
"clnt-uuid": 545,
"clnt-pid": 29090,
"clnt-ext-pid": 29090,
"clnt-proto": 1,
"clnt-ind": 6,
"clnt-cntxt-id": 65535,
"clnt-mts-sap": 4448,
"clnt-flg": "1",
"clnt-msg-succ-cnt": 1,
"clnt-msg-fail-cnt": 0,
"clnt-recv-fn-name": "tcp_process_ip_data_msg",
"clnt-recv-fn": "1060706c"
},
{
"clnt-name": "igmp",
"clnt-uuid": 286,
"clnt-pid": 30617,
"clnt-ext-pid": 30617,
"clnt-proto": 2,
"clnt-ind": 5,
"clnt-cntxt-id": 65535,
"clnt-mts-sap": 5247,
"clnt-flg": "3",
"clnt-msg-succ-cnt": 0,
"clnt-msg-fail-cnt": 0
},
{
"clnt-name": "tcpudp",
"clnt-uuid": 545,
"clnt-pid": 29090,
"clnt-ext-pid": 29090,
"clnt-proto": 2,
"clnt-ind": 7,
"clnt-cntxt-id": 65535,
"clnt-mts-sap": 4448,
"clnt-flg": "1",
"clnt-msg-succ-cnt": 0,
"clnt-msg-fail-cnt": 0,
"clnt-recv-fn-name": "tcp_process_ip_data_msg",
"clnt-recv-fn": "1060706c"
},
{
"clnt-name": "pktmgr",
"clnt-uuid": 263,
"clnt-pid": 29076,
"clnt-ext-pid": 29076,
"clnt-proto": 4,
"clnt-ind": 1,
"clnt-cntxt-id": 65535,
"clnt-mts-sap": 250,
"clnt-flg": "7",
"clnt-msg-succ-cnt": 0,
"clnt-msg-fail-cnt": 0
},
{
"clnt-name": "tcpudp",
"clnt-uuid": 545,
"clnt-pid": 29090,
"clnt-ext-pid": 29090,
"clnt-proto": 6,
"clnt-ind": 8,
"clnt-cntxt-id": 65535,
"clnt-mts-sap": 4448,
"clnt-flg": "1",
"clnt-msg-succ-cnt": 493,
"clnt-msg-fail-cnt": 0,
"clnt-recv-fn-name": "tcp_process_ip_data_msg",
"clnt-recv-fn": "1060706c"
},
{
"clnt-name": "tcpudp",
"clnt-uuid": 545,
"clnt-pid": 29090,
"clnt-ext-pid": 29090,
"clnt-proto": 17,
"clnt-ind": 9,
"clnt-cntxt-id": 65535,
"clnt-mts-sap": 4448,
"clnt-flg": "1",
"clnt-msg-succ-cnt": 6,
"clnt-msg-fail-cnt": 0,
"clnt-recv-fn-name": "tcp_process_ip_data_msg",
"clnt-recv-fn": "1060706c"
},
{
"clnt-name": "pktmgr",
"clnt-uuid": 263,
"clnt-pid": 29076,
"clnt-ext-pid": 29076,
"clnt-proto": 41,
"clnt-ind": 2,
"clnt-cntxt-id": 65535,
"clnt-mts-sap": 250,
"clnt-flg": "7",
"clnt-msg-succ-cnt": 0,
"clnt-msg-fail-cnt": 0
},
{
"clnt-name": "pktmgr",
"clnt-uuid": 263,
"clnt-pid": 29076,
"clnt-ext-pid": 29076,
"clnt-proto": 47,
"clnt-ind": 3,
"clnt-cntxt-id": 65535,
"clnt-mts-sap": 250,
"clnt-flg": "7",
"clnt-msg-succ-cnt": 0,
"clnt-msg-fail-cnt": 0
},
{
"clnt-name": "tcpudp",
"clnt-uuid": 545,
"clnt-pid": 29090,
"clnt-ext-pid": 29090,
"clnt-proto": 112,
"clnt-ind": 10,
"clnt-cntxt-id": 65535,
"clnt-mts-sap": 4448,
"clnt-flg": "1",
"clnt-msg-succ-cnt": 0,
"clnt-msg-fail-cnt": 0,
"clnt-recv-fn-name": "tcp_process_ip_data_msg",
"clnt-recv-fn": "1060706c"
}
]
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip client command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip community-list bal-local-primary-exp
show ip community-list bal-local-primary-exp
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 ip community-list bal-local-primary-exp ",
"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_cl": {
"ROW_cl": [
{
"name": "bal-local-primary-exp",
"action": "permit",
"rule": "64642:10300"
},
{
"name": "bal-local-primary-exp",
"action": "permit",
"rule": "64643:10300"
},
{
"name": "bal-local-primary-exp",
"action": "permit",
"rule": "64639:10300"
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip community-list bal-local-primary-exp command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip community-list
show ip community-list
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 ip community-list ",
"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_cl": {
"ROW_cl": [
{
"name": "bal-local-primary-exp",
"action": "permit",
"rule": "64642:10300"
},
{
"name": "bal-local-primary-exp",
"action": "permit",
"rule": "64643:10300"
},
{
"name": "bal-local-primary-exp",
"action": "permit",
"rule": "64639:10300"
},
{
"name": "comm_eg",
"action": "permit",
"rule": "1:1 1:2 1:3 1:4 1:5 1:6 1:7 1:8 1:9"
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip community-list command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip dns source-interface
show ip dns source-interface
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 ip dns source-interface",
"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 ip dns source-interface",
"msg": "Success",
"code": "200",
"body": {
"TABLE_ipdnsvrf": {
"ROW_ipdnsvrf": [
{
"vrfname": "management",
"ifname": "mgmt0"
},
{
"vrfname": "default",
"ifname": "Ethernet1/1"
},
{
"vrfname": "test",
"ifname": "loopback100"
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip dns source-interface command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip dns source-interface vrf management
show ip dns source-interface vrf management
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 ip dns source-interface vrf management",
"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 ip dns source-interface vrf managemen",
"msg": "Success",
"code": "200",
"body": {
"TABLE_ipdnsvrf": {
"ROW_ipdnsvrf": {
"vrfname": "management",
"ifname": "mgmt0"
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip dns source-interface vrf management command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip extcommunity-list
show ip extcommunity-list
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 ip extcommunity-list ",
"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_extcl": {
"ROW_extcl": [
{
"name": "extcomm1"
},
{
"name": "extcomm2"
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip extcommunity-list command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip extcommunity-list extcomm1
show ip extcommunity-list extcomm1
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 ip extcommunity-list extcomm1 ",
"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_extcl": {
"ROW_extcl": {
"name": "extcomm1"
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip extcommunity-list extcomm1 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip int br vrf all
show ip int br vrf 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 ip int br vrf 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 ip int br vrf all",
"msg": "Success",
"code": "200",
"body": {
"TABLE_intf": {
"ROW_intf": {
"vrf-name-out": "management",
"intf-name": "mgmt0",
"proto-state": "up",
"link-state": "up",
"admin-state": "up",
"iod": 2,
"prefix": "10.105.194.176",
"ip-disabled": "FALSE"
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip int br vrf all command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip load-sharing
show ip load-sharing
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 ip load-sharing ",
"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 ip load-sharing ",
"msg": "Success",
"code": "200",
"body": {
"univer-id-ran-seed": 2160302253,
"l34-msg-load": "address source-destination port source-destination",
"gre-outer-hash": "disabled",
"concatenation": "disabled",
"rotate": 32
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip load-sharing command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip policy vrf all
show ip policy vrf 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 ip policy vrf all ",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"TABLE_pbr": {
"ROW_pbr": {
"interface": "Ethernet4/36",
"rmap": "test_pol1",
"status": "Inactive",
"vrf_name": "--"
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip policy vrf all command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip prefix-list
show ip prefix-list
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 ip prefix-list",
"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_ip_pfl": {
"ROW_ip_pfl": [{
"name": "pfx1",
"seq": "1",
"action": "permit",
"rule": "1.1.1.0/24"
}, {
"name": "pfx2",
"seq": "1",
"action": "deny",
"rule": "10.1.1.0/24"
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip prefix-list command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip prefix-list pfx1 seq 1
show ip prefix-list pfx1 seq 1
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 ip prefix-list pfx1 seq 1",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"TABLE_ip_pfl": {
"ROW_ip_pfl": [{
"name": "pfx1",
"seq": "1",
"action": "permit",
"rule": "1.1.1.0/24"
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip prefix-list pfx1 seq 1 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip process
show ip process
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 ip process ",
"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 ip process",
"msg": "Success",
"code": "200",
"body": {
"TABLE_ip_pro_vrf": {
"ROW_ip_pro_vrf": {
"pro-cntxt-name": "default",
"pro-cntxt-id": 1,
"pro-base-tid": 1,
"pro-auto-disc": "disabled",
"pro-atuo-add": "not",
"pro-null-bcast": "",
"auto-punt-bcast": "",
"static-disc": "not",
"static-def-route": 0,
"ip-unreach": 0
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip process command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla application
show ip sla application
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 ip sla application ",
"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)
{
"version": "2.2.0 Round Trip Time MIB,
Infrastructure Engine - III",
"type - name": "icmpEcho,
udpEcho,
tcpConnect,
http,
dns,
udpJitter",
"feature - name":"",
"lowmemorymark": 112978403,
"max - entries": 82747,
"probe - cap": 82735,
"entries - config": 12,
"entries - active": 0,
"entries - pending": 0,
"entries - inactive": 12,
"last - change - time": "15: 46: 50 IST Thu Aug 09 2018 \ n",
"rttMonApplReset": 1
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla application command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla configuration 1
show ip sla configuration 1
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 ip sla configuration 1",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"TABLE_configuration": {
"ROW_configuration": [{
"index": 1,
"owner":"",
"tag":"",
"timeout": 5000,
"oper - type": "udp - jitter",
"dest - ip": "10.104.99.185",
"source - ip": "0.0.0.0",
"dest - port": 23456,
"source - port": 0,
"traffic - class": 0,
"tos": 0,
"switch - id": 0, "profile - id": 0, "interface":"", "packet - size": 32, "packet - interval": 20, "num - packets": 10, "verify - data": "disabled", "vrf - name": "management", "control - enabled": "enabled", "frequency": 60, "next - start - time": "Pending trigger \ n", "group - scheduled": "disabled", "randomly - scheduled": "disable
d", "life": 3600000, "ageout": 0, "recurring": "disabled", "status - of - entry": "notInService", "threshold": 5000, "hours": 2, "buckets": 1, "interval": "Statistic distribution interval(milliseconds)
: 20 \ n"
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla configuration 1 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla enhanced-history Collection-statistics 11 interval 1
show ip sla enhanced-history Collection-statistics 11 interval 1
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 ip sla enhanced-history Collection-statistics 11 interval 1",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"TABLE_generic": {
"ROW_generic": [{
"entry - num": 1920233029,
"aggregate - interval": "Aggregation Interval: 1 \ n",
"TABLE_bkt": {
"ROW_bkt": [{
"bkt - index": "Bucket Index: 1 \ n",
"agg - sti": "Aggregation start time 11: 42: 31 IST Mon Aug 13 2018 \ n",
"tgt - addr": "100.100.100.100",
"nofod": "Number of failed operations due to a Disconnect: 0 \ n",
"nofot": "Number of failed operations due to a Timeout: 0 \ n",
"nofob": "Number of failed operations due to a Busy: 0 \ n",
"nofonc": "Number of failed operations due to a No Connection: 0 \ n",
"nofoi
e": "Number of failed operations due to an Internal Error: 0 \ n",
"nofose": "Number of failed operations due to a Sequence Error: 0 \ n",
"nofove": "Number of failed operations due to a Verify Error: 0 \ n"
}
]
}
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla enhanced-history Collection-statistics 11 interval 1 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla enhanced-history distribution-statistics 11 interval 1
show ip sla enhanced-history distribution-statistics 11 interval 1
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 ip sla enhanced-history distribution-statistics 11 interval 1",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"hdr": "Point by point Enhanced History \ nEntry = Entry Number \ nInt = Aggregation Interval \ nBucI = Bucket Index \ nStartT = Aggregation Start Time \ nPth = Path index \ nHop = Hop in path index \ nComps = Operations completed \ nOvrTh = Operations completed over thresholds \ nSumCmp = Sum of RTT(milliseconds) \ nSumCmp2L = Sum of RTT squared low 32 bits(milliseconds) \ nSumCmp2H = Sum of RTT squared high 32 bits(milliseconds) \ nTMax = RTT maximum(milliseconds) \ nTMin = RTT minimum
(milliseconds) \ n \ nEntry Int BucI StartT Pth Hop Comps OvrTh SumCmp SumCmp2L SumCmp2H TMax TMin \ n",
"TABLE_generic": {
"ROW_generic": [{
"col1": "11 1 1 331123635",
"col2": "1 1 1 0 1 1 0 1",
"col3": "1"
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla enhanced-history distribution-statistics 11 interval 1 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla group schedule
show ip sla group schedule
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 ip sla group schedule ",
"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)
{
"entry - number": 1,
"probe - list": "11 - 12",
"num - probes": 2,
"sched - period": 5,
"mode": "disabled",
"freq": 0,
"snmp - status": "Active",
"next - start - time": "Start Time already passed \ n",
"life": 3600000,
"ageout": 0
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla group schedule command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla history 11 tabular
show ip sla history 11 tabular
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 ip sla history 11 tabular ",
"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)
{
"outstring": "Point by point History \ nEntry = Entry number \ nLifeI = Life index \ nBucketI = Bucket index \ nSampleI = Sample index \ nSampleT = Sample start time(milliseconds) \ nCompT = RTT(milliseconds) \ nSense = Response return code \ n \ nEntry LifeI BucketI SampleI SampleT CompT Sense TargetAddr \ n"
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla history 11 tabular command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla history 11 full
show ip sla history 11 full
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 ip sla history 11 full ",
"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)
{
"outstring": "Point by point History \ nEntry = Entry number \ nLifeI = Life index \ nBucketI = Bucket index \ nSampleI = Sample index \ nSampleT = Sample start time(milliseconds) \ nCompT = RTT(milliseconds) \ nSense = Response return code \ n \ nEntry LifeI BucketI SampleI SampleT CompT Sense TargetAddr \ n"
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla history 11 full command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla history 11 interval-statistics
show ip sla history 11 interval-statistics
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 ip sla history 11 interval-statistics ",
"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)
{
"outstring": "Point by point History \ nEntry = Entry number \ nLifeI = Life index \ nBucketI = Bucket index \ nSampleI = Sample index \ nSampleT = Sample start time(milliseconds) \ nCompT = RTT(milliseconds) \ nSense = Response return code \ n \ nEntry LifeI BucketI SampleI SampleT CompT Sense TargetAddr \ n"
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla history 11 interval-statistics command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla reaction-configuration 11
show ip sla reaction-configuration 11
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 ip sla reaction-configuration 11",
"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_reaction": {
"ROW_reaction": [{
"entry - number": 11,
"index": 1,
"reaction": "rtt",
"threshold - type": "Never",
"rising - value": 5000,
"falling - value": 3000,
"action - type": "None"
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla reaction-configuration 11 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla reaction-trigger 11
show ip sla reaction-trigger 11
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 ip sla reaction-trigger 11 ",
"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_trigger": {
"ROW_trigger": [{
"entry - number": 11,
"target - entry": 100,
"snmp - status": "active",
"operational - state": "pending"
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla reaction-trigger 11 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla responder
show ip sla responder
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 ip sla responder ",
"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)
{
"rttMonApplResponder": "true",
"gen-enabled": "enabled",
"ctrl-msg-count": 5853277,
"errors": 0,
"TABLE_recent": {
"ROW_recent": [{
"print-recent-hdr": "enabled",
"recent-addr": "6.6.6.1",
"recent-time": "11:21:03 IST Mon Aug 13 2018\n",
"recent-addr": "6.6.6.1",
"recent-time": "11:21:03 IST Mon Aug 13 2018\n",
"recent-addr": "6.6.6.1",
"recent-time": "11:21:03 IST Mon Aug 13 2018\n",
"recent-addr": "6.6.6.1",
"recent-time": "11:21:03 IST Mon Aug 13 2018\n",
"recent-addr": "6.6.6.1",
"recent-time": "11:21:03 IST Mon Aug 13 2018\n",
"print
-recent-err-hdr": "enabled"
}
]
},
"perm-enabled": "disabled"
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla responder command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla statistics aggregated 11
show ip sla statistics aggregated 11
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 ip sla statistics aggregated 11 ",
"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)
{
"print_type": 25,
"TABLE_stats": {
"ROW_stats": [{
"index": 11,
"top": "Type of operation: icmp - echo \ n",
"TABLE_detail": {
"ROW_detail": [{
"sti": "Start Time Index: 11: 58: 05 IST Mon Aug 13 2018 \ n \ n",
"rtt - count": 308,
"rtt - min": 1,
"rtt - avg": 1,
"micro - accuracy": "disabled",
"nano - accuracy": "disabled",
"rtt - max": 2,
"outstring1": "Number of successes: 308 \ n",
"outstring2": "Number of failures: 0 \ n"
}
]
}
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla statistics aggregated 11 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip sla statistics aggregated 11 details
show ip sla statistics aggregated 11 details
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 ip sla statistics aggregated 11 details ",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"print_type": 26,
"TABLE_stats": {
"ROW_stats": [{
"index": 11,
"top": "Type of operation: icmp - echo \ n",
"TABLE_detail": {
"ROW_detail": [{
"sti": "Start Time Index: 11: 58: 05 IST Mon Aug 13 2018 \ n \ n",
"rtt - count": 365,
"rtt - min": 1,
"rtt - avg": 1,
"micro - accuracy": "disabled",
"nano - accuracy": "disabled",
"rtt - max": 2,
"nos": "Number of successes: 365 \ n",
"nof": "Number of failures: 0 \ n",
"noot": "Number of over thresholds: 0 \ n",
"nofo1": "Failed Operations due to Disconnect / TimeOut / Busy / No Connection:",
"nofo2": "Failed Operations due to In
ternal / Sequence / Verify Error:",
"TABLE_br": {
"ROW_br": [{
"br": "Bucket Range: 0 to < 1000ms \ n",
"avg - lat": "Avg.Latency: 1 ms \ n",
"potc": "Percent of Total Completions for this Range: 100 % \ n",
"noc - by - lat": "Number of Completions / Sum of Latency: 365 / 367 \ n",
"sortthigh - by - low": "Sum of RTT squared low 32 Bits / Sum of RTT squared high 32 Bits: 371 / 0 \ n",
"operot": "Operations completed over thresholds: 0 \ n \ n"
}
]
}
}
]
}
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla statistics aggregated 11 details command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip static-route vrf all
show ip static-route vrf 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 ip static-route vrf 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 ip static-route vrf all",
"msg": "Success",
"code": "200",
"body": {
"TABLE_vrf_all": {
"ROW_vrf_all": {
"cntxt_name": "management",
"cntxt_id": 2,
"TABLE_each_vrf": {
"ROW_each_vrf": {
"prefix_addr_msk": "0.0.0.0/0",
"nhop_addr_msk": "10.105.194.129/32",
"nhop_vrf_info": "",
"nhop_intr_info": "",
"urib_stat": " (installed in urib)",
"nhop_urib_stat": " rnh(installed in urib)"
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip static-route vrf all command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip telnet source-interface
show ip telnet source-interface
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 ip telnet source-interface",
"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 ip telnet source-interface",
"msg": "Success",
"code": "200",
"body": {
"TABLE_iptelnetvrf": {
"ROW_iptelnetvrf": [
{
"vrfname": "management",
"ifname": "mgmt0"
},
{
"vrfname": "default",
"ifname": "Ethernet1/1"
},
{
"vrfname": "test",
"ifname": "loopback100"
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip telnet source-interface command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip telnet source-interface vr default
show ip telnet source-interface vr default
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 ip telnet source-interface vr default",
"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 ip telnet source-interface vr default",
"msg": "Success",
"code": "200",
"body": {
"TABLE_iptelnetvrf": {
"ROW_iptelnetvrf": {
"vrfname": "default",
"ifname": "Ethernet1/1"
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip telnet source-interface vr default command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip tftp source-interface
show ip tftp source-interface
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 ip tftp source-interface",
"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 ip tftp source-interface",
"msg": "Success",
"code": "200",
"body": {
"TABLE_iptftpvrf": {
"ROW_iptftpvrf": [
{
"vrfname": "management",
"ifname": "mgmt0"
},
{
"vrfname": "default",
"ifname": "Ethernet1/1"
},
{
"vrfname": "test",
"ifname": "loopback100"
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip tftp source-interface command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ip traffic
show ip traffic
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 ip traffic ",
"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 ip traffic",
"msg": "Success",
"code": "200",
"body": {
"TABLE_icmp_software_proc_traffic": {
"ROW_icmp_software_proc_traffic": {
"TABLE_stat_last_never": {
"ROW_stat_last_never": {
"stat-last-never": "never"
}
},
"TABLE_transmission": {
"ROW_transmission": {
"tx-redir": 0,
"tx-unreach": 0,
"tx-echo-req": 0,
"tx-echo-reply": 3,
"tx-mask-req": 0,
"tx-mask-rep": 0,
"tx-info-req": 0,
"tx-info-reply": 0,
"tx-param-prob": 0,
"tx-source-quench": 0,
"tx-tstamp-req": 0,
"tx-tstamp-reply": 0,
"tx-time-exceeded": 0,
"tx-router-solicit": 0,
"tx-router-advert": 0,
"out-drop-badlen": 0,
"encap-fail": 0,
"xmit-fail": 0,
"icmp-orginate": 1,
"redirect-orginate-req": 0,
"orginate-deny": 0,
"short-ip": 0,
"old-icmp": 0,
"error-drop": 0
}
},
"TABLE_reception": {
"ROW_reception": {
"rx-redir": 0,
"rx-unreach": 0,
"rx-echo-req": 3,
"rx-echo-reply": 0,
"rx-mask-req": 0,
"rx-mask-rep": 0,
"rx-info-req": 0,
"rx-info-reply": 0,
"rx-param-prob": 0,
"rx-source-quench": 0,
"rx-tstamp-req": 0,
"rx-tstamp-reply": 0,
"rx-time-exceeded": 0,
"rx-router-solicit": 0,
"rx-router-advert": 0,
"rx-format-errors": 0,
"rx-csum-errors": 0,
"lisp-processed": 0,
"lisp-noclient": 0,
"lisp-consumed": 1,
"icmp-replies": 6,
"icmp-reply-drop": 0,
"icmp-inactive-addr": 0
}
}
}
},
"TABLE_rfc4293_ip_soft_proc_traffic": {
"ROW_rfc4293_ip_soft_proc_traffic": {
"TABLE_rfc_reception": {
"ROW_rfc_reception": {
"inrcv": 217912,
"inoctet": 16390448,
"inhdrerr": 0,
"innoroutes": 0,
"inaddrerr": 0,
"innoproto": 0,
"intruncated": 0,
"inforw": 11815,
"reasmreqds": 0,
"reasmoks": 0,
"reasmfails": 0,
"indiscards": 0,
"indelivers": 634,
"inmcastpkts": 205464,
"inmcastbytes": 15040415,
"inbastpkts": 11815
}
},
"TABLE_rfc_transmission": {
"ROW_rfc_transmission": {
"out-req": 2598,
"out-no-route": 0,
"out-forwdgrams": 0,
"out-discards": 0,
"out-frag-req": 0,
"out-frag-oks": 0,
"out-frag-fails": 0,
"out-frag-create": 0,
"out-transmits": 2597,
"byte-sent": 1427865,
"out-mcast-pkts": 0,
"out-mcast-bytes": 0,
"out-bcast-pkts": 0,
"out-bcast-bytes": 0
}
}
}
},
"TABLE_vrf": {
"ROW_vrf": {
"vrf-name-out": "default"
}
},
"TABLE_ip_soft_processed_traffic": {
"ROW_ip_soft_processed_traffic": {
"TABLE_fragment": {
"ROW_fragment": {
"frag": 0,
"fragmented": 0,
"out-frag": 0,
"frag-drop": 0,
"cant-frag": 0,
"reasm": 0,
"frag-to": 0
}
},
"TABLE_trans_and_reception": {
"ROW_trans_and_reception": {
"rcvd": 217912,
"sent": 2597,
"consumed": 633,
"fwd-ucast": 0,
"fwd-mcast": 0,
"fwd-label": 0,
"ingress-mcecfrwd": 0
}
},
"TABLE_opts": {
"ROW_opts": {
"opts-end": 0,
"opts-nop": 0,
"opts-bsec": 0,
"opts-loosesrc-route": 0,
"opts-timestamp": 0,
"opts-esec": 0,
"opts-record-route": 0,
"opts-strsrc-route": 0,
"opts-alert": 0,
"opts-other": 0
}
},
"TABLE_errors": {
"ROW_errors": {
"bad-csum": 0,
"too-small": 0,
"bad-ver": 0,
"bad-hlen": 0,
"bad-len": 0,
"bad-dest": 0,
"bad-ttl": 0,
"cant-fwd": 11815,
"out-drop": 0,
"bad-encap": 1,
"no-route": 0,
"no-proto": 0,
"bad-options": 0,
"vinci": 0,
"snoop": 0,
"svi": 0,
"restart-recovery": 0,
"mbuf-fail": 0,
"bad-context": 0,
"rpf-drops": 0,
"bad-gw-mac": 0,
"ing-ips-option-fail": 0,
"nat-in-drop": 0,
"nat-out-drop": 0,
"ing-option-proc-fail": 0,
"ing-mfrwd-fail": 205464,
"ing-lisp-drop": 0,
"ing-lisp-decap-drop": 0,
"ing-lisp-encap-drop": 0,
"ing-lisp-encap": 0,
"ing-mfwd-copy-drop": 0,
"ing-ra-reass-drop": 0,
"ing-icmp-redirect": 0,
"ing-drop-ifmgr-init": 0,
"ing-drop-invld-filter": 0,
"ing-drop-invld-l2-msg": 0,
"ingress": 0,
"egrees": 0,
"directed_bdcast": 0
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip traffic command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|