show ipv6 adjacency summary vrf vni-51000
show ipv6 adjacency summary 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 ipv6 adjacency summary 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 ipv6 adjacency summary vrf vni-51000",
"msg": "Success",
"code": "200",
"body": {
"count-static": 0,
"count-dynamic": 2,
"count-others": 0,
"count-throttle": 0,
"count-total": 2
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 adjacency summary 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 ipv6 adjacency vrf vni-51000
show ipv6 adjacency 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 ipv6 adjacency 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 ipv6 adjacency vrf vni-51000",
"msg": "Success",
"code": "200",
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"vrf-name-out": "vni-51000",
"TABLE_afi": {
"ROW_afi": {
"afi": "ipv6",
"count": 2,
"TABLE_adj": {
"ROW_adj": [
{
"intf-out": "Vlan410",
"ipv6-addr": "41::10",
"time-stamp": "00:03:03",
"mac": "e8ed.f324.6cc2",
"pref": 50,
"owner": "icmpv6"
},
{
"intf-out": "Vlan410",
"ipv6-addr": "fe80::eaed:f3ff:fe24:6cc2",
"time-stamp": "00:03:08",
"mac": "e8ed.f324.6cc2",
"pref": 50,
"owner": "icmpv6"
}
]
}
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 adjacency 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 ipv6 client
show ipv6 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 ipv6 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 ipv6 client",
"msg": "Success",
"code": "200",
"body": {
"TABLE_ipv6_client": {
"ROW_ipv6_client": [
{
"cli-name": "dhclient",
"cli-stat": "up",
"cli-pid": 28260,
"cli-ext-pid": 28260,
"pib-index": 22,
"cli-uuid": 1292,
"rou-vrf": 65535,
"rou-flg": 3,
"ctrl-sap": 1363,
"data-sap": 1363,
"ipc-ctrl-mq": 914,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "ospfv3-0",
"cli-stat": "up",
"cli-pid": 30462,
"cli-ext-pid": 30462,
"protocol": 89,
"pib-index": 21,
"cli-uuid": 1090519322,
"rou-vrf": 65535,
"rou-flg": 3,
"ctrl-sap": 328,
"data-sap": 332,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 1439767,
"ipc-data-fail": 0,
"if-ext-ind": 1090519322
},
{
"cli-name": "vrrpv3",
"cli-stat": "up",
"cli-pid": 30446,
"cli-ext-pid": 30446,
"pib-index": 20,
"cli-uuid": 1154,
"rou-vrf": 65535,
"rou-flg": 3,
"ctrl-sap": 672,
"data-sap": 5352,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "hsrp_engine",
"cli-stat": "up",
"cli-pid": 30457,
"cli-ext-pid": 30457,
"pib-index": 19,
"cli-uuid": 406,
"rou-vrf": 65535,
"rou-flg": 3,
"ctrl-sap": 340,
"data-sap": 340,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "pim",
"cli-stat": "up",
"cli-pid": 30563,
"cli-ext-pid": 30563,
"pib-index": 18,
"cli-uuid": 284,
"rou-vrf": 65535,
"rou-flg": 3,
"ctrl-sap": 5260,
"data-sap": 0,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "bgp-101",
"cli-stat": "up",
"cli-pid": 30458,
"cli-ext-pid": 30458,
"pib-index": 17,
"cli-uuid": 283,
"rou-vrf": 1,
"rou-flg": 3,
"ctrl-sap": 5233,
"data-sap": 0,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "icmpv6",
"cli-stat": "up",
"cli-pid": 28938,
"cli-ext-pid": 28938,
"protocol": 58,
"pib-index": 16,
"cli-uuid": 270,
"rou-vrf": 65535,
"rou-flg": 3,
"ctrl-sap": 5198,
"data-sap": 5199,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 910181,
"ipc-data-fail": 0
},
{
"cli-name": "isis-0",
"cli-stat": "up",
"cli-pid": 30464,
"cli-ext-pid": 30464,
"pib-index": 15,
"cli-uuid": 1090519320,
"rou-vrf": 65535,
"rou-flg": 3,
"ctrl-sap": 5177,
"data-sap": 0,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "tm",
"cli-stat": "up",
"cli-pid": 30450,
"cli-ext-pid": 30450,
"pib-index": 14,
"cli-uuid": 508,
"rou-vrf": 65535,
"rou-flg": 3,
"ctrl-sap": 10,
"data-sap": 10,
"ipc-ctrl-mq": 0,
"ipc-ctrl-fail": 948,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "rip-0",
"cli-stat": "up",
"cli-pid": 30461,
"cli-ext-pid": 30461,
"pib-index": 13,
"cli-uuid": 1090519319,
"rou-vrf": 65535,
"rou-flg": 3,
"ctrl-sap": 5024,
"data-sap": 0,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "eigrp-0",
"cli-stat": "up",
"cli-pid": 30465,
"cli-ext-pid": 30465,
"protocol": 88,
"pib-index": 12,
"cli-uuid": 1090519344,
"rou-vrf": 65535,
"rou-flg": 3,
"ctrl-sap": 881,
"data-sap": 881,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 989235,
"ipc-data-fail": 0,
"if-ext-ind": 1090519344
},
{
"cli-name": "rpm",
"cli-stat": "up",
"cli-pid": 30260,
"cli-ext-pid": 30260,
"pib-index": 11,
"cli-uuid": 305,
"rou-vrf": 1,
"rou-flg": 3,
"ctrl-sap": 4688,
"data-sap": 0,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "ntp",
"cli-stat": "up",
"cli-pid": 30275,
"cli-ext-pid": 30275,
"pib-index": 10,
"cli-uuid": 71,
"rou-vrf": 65535,
"rou-flg": 3,
"ctrl-sap": 72,
"data-sap": 72,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "Netstack",
"cli-stat": "up",
"cli-pid": 28967,
"cli-ext-pid": 28967,
"pib-index": 9,
"cli-uuid": 545,
"rou-vrf": 65535,
"rou-flg": 4,
"ctrl-sap": 0,
"data-sap": 0,
"ipc-ctrl-mq": 0,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 0,
"ipc-data-fail": 0,
"recv-fn": "tcp_process_ipv6_data_msg",
"recv-hex": "1054ca7a"
},
{
"cli-name": "tcpudp",
"cli-stat": "up",
"cli-pid": 28967,
"cli-ext-pid": 28967,
"protocol": 112,
"pib-index": 8,
"cli-uuid": 545,
"rou-vrf": 65535,
"rou-flg": 4,
"ctrl-sap": 4454,
"data-sap": 4455,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 2532614,
"ipc-data-fail": 0,
"recv-fn": "tcp_process_ipv6_data_msg",
"recv-hex": "1054ca7a"
},
{
"cli-name": "tcpudp",
"cli-stat": "up",
"cli-pid": 28967,
"cli-ext-pid": 28967,
"protocol": 17,
"pib-index": 7,
"cli-uuid": 545,
"rou-vrf": 65535,
"rou-flg": 4,
"ctrl-sap": 4454,
"data-sap": 4455,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 1235066,
"ipc-data-fail": 0,
"recv-fn": "tcp_process_ipv6_data_msg",
"recv-hex": "1054ca7a"
},
{
"cli-name": "tcpudp",
"cli-stat": "up",
"cli-pid": 28967,
"cli-ext-pid": 28967,
"protocol": 6,
"pib-index": 6,
"cli-uuid": 545,
"rou-vrf": 65535,
"rou-flg": 4,
"ctrl-sap": 4454,
"data-sap": 4455,
"ipc-ctrl-mq": 948,
"ipc-ctrl-fail": 0,
"ipc-data-mq": 0,
"ipc-data-fail": 0,
"recv-fn": "tcp_process_ipv6_data_msg",
"recv-hex": "1054ca7a"
},
{
"cli-name": "pktmgr",
"cli-stat": "up",
"cli-pid": 28939,
"cli-ext-pid": 28939,
"protocol": 59,
"pib-index": 5,
"cli-uuid": 263,
"rou-vrf": 65535,
"rou-flg": 7,
"ctrl-sap": 18446744073709552000,
"data-sap": 250,
"ipc-ctrl-mq": 0,
"ipc-ctrl-fail": 948,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "pktmgr",
"cli-stat": "up",
"cli-pid": 28939,
"cli-ext-pid": 28939,
"protocol": 44,
"pib-index": 4,
"cli-uuid": 263,
"rou-vrf": 65535,
"rou-flg": 7,
"ctrl-sap": 18446744073709552000,
"data-sap": 250,
"ipc-ctrl-mq": 0,
"ipc-ctrl-fail": 948,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "pktmgr",
"cli-stat": "up",
"cli-pid": 28939,
"cli-ext-pid": 28939,
"protocol": 41,
"pib-index": 3,
"cli-uuid": 263,
"rou-vrf": 65535,
"rou-flg": 7,
"ctrl-sap": 18446744073709552000,
"data-sap": 250,
"ipc-ctrl-mq": 0,
"ipc-ctrl-fail": 948,
"ipc-data-mq": 0,
"ipc-data-fail": 0
},
{
"cli-name": "pktmgr",
"cli-stat": "up",
"cli-pid": 28939,
"cli-ext-pid": 28939,
"protocol": 47,
"pib-index": 2,
"cli-uuid": 263,
"rou-vrf": 65535,
"rou-flg": 7,
"ctrl-sap": 18446744073709552000,
"data-sap": 250,
"ipc-ctrl-mq": 0,
"ipc-ctrl-fail": 948,
"ipc-data-mq": 0,
"ipc-data-fail": 0
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 client command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 icmp adjacency
show ipv6 icmp 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.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ipv6 icmp 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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ipv6 icmp adjacency",
"msg": "Success",
"code": "200",
"body": {
"icmpv6-vrftype": "VRF",
"icmpv6-cxt-name": "default",
"TABLE_icmpv6_all_int": {
"ROW_icmpv6_all_int": {
"TABLE_icmpv6_one_int": {
"ROW_icmpv6_one_int": [
{
"icmpv6-ipv6-addr": "28:2:1::2",
"time-stamp-icmpv6": "00:15:11",
"icmpv6-mac": "0027.e3ad.b2e9",
"icmpv6-state": "STALE",
"icmpv6-short-name": "Vlan1752"
},
{
"icmpv6-ipv6-addr": "fe80::227:e3ff:fead:b2e9",
"time-stamp-icmpv6": "00:16:31",
"icmpv6-mac": "0027.e3ad.b2e9",
"icmpv6-state": "STALE",
"icmpv6-short-name": "Vlan1752"
},
{
"icmpv6-ipv6-addr": "fe80::2be:75ff:fef2:a33f",
"time-stamp-icmpv6": "00:18:46",
"icmpv6-mac": "00be.75f2.a33f",
"icmpv6-state": "STALE",
"icmpv6-short-name": "Vlan502"
},
{
"icmpv6-ipv6-addr": "12:1:1::1",
"time-stamp-icmpv6": "00:21:43",
"icmpv6-mac": "00be.75f2.a33f",
"icmpv6-state": "STALE",
"icmpv6-short-name": "Po1.2"
},
{
"icmpv6-ipv6-addr": "fe80::2be:75ff:fef2:a33f",
"time-stamp-icmpv6": "00:02:18",
"icmpv6-mac": "00be.75f2.a33f",
"icmpv6-state": "STALE",
"icmpv6-short-name": "Po1.2"
},
{
"icmpv6-ipv6-addr": "28:1:1::2",
"time-stamp-icmpv6": "00:07:54",
"icmpv6-mac": "0027.e3ad.b2e9",
"icmpv6-state": "STALE",
"icmpv6-short-name": "Po4.2"
},
{
"icmpv6-ipv6-addr": "fe80::227:e3ff:fead:b2e9",
"time-stamp-icmpv6": "00:07:28",
"icmpv6-mac": "0027.e3ad.b2e9",
"icmpv6-state": "STALE",
"icmpv6-short-name": "Po4.2"
},
{
"icmpv6-ipv6-addr": "28:3:1::2",
"time-stamp-icmpv6": "00:15:24",
"icmpv6-mac": "0027.e3ad.b2e9",
"icmpv6-state": "STALE",
"icmpv6-short-name": "Eth1/14.2"
},
{
"icmpv6-ipv6-addr": "fe80::227:e3ff:fead:b2e9",
"time-stamp-icmpv6": "00:08:40",
"icmpv6-mac": "0027.e3ad.b2e9",
"icmpv6-state": "STALE",
"icmpv6-short-name": "Eth1/14.2"
}
]
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 icmp adjacency command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 icmp global traffic
show ipv6 icmp global 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 ipv6 icmp global 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 ipv6 icmp global traffic",
"msg": "Success",
"code": "200",
"body": {
"TABLE_icmpv6_global_stat": {
"ROW_icmpv6_global_stat": {
"st-total": 1123918,
"rv-total": 1257946,
"st-err": 0,
"rv-err": 10362,
"st-int-drp-cnt": 83882,
"rv-int-drp-cnt": 0,
"st-adj-nt-recov-am-ha": 0,
"rv-adj-nt-recov-am-ha": 0,
"st-pkt-allow-inv-ttl-vpc": 0,
"rv-pkt-allow-inv-ttl-vpc": 3,
"st-drp-src-mac-own": 0,
"rv-drp-src-mac-own": 0,
"st-drp-tgt-ip-not-own": 0,
"rv-drp-tgt-ip-not-own": 175614,
"st-drp-src-ip-not-own": 0,
"rv-drp-src-ip-not-own": 0,
"st-dest-unreach": 0,
"rv-dest-unreach": 0,
"st-admin-prohibit": 0,
"rv-admin-prohibit": 0,
"st-time-exceed": 119,
"rv-time-exceed": 0,
"st-para-pbms": 0,
"rv-para-pbms": 0,
"st-echo-req": 0,
"rv-echo-req": 0,
"st-echo-reply": 0,
"rv-echo-reply": 0,
"st-redirect": 1019155,
"rv-redirect": 983735,
"st-pkt-too-big": 0,
"rv-pkt-too-big": 0,
"st-rtr-adver": 48055,
"rv-rtr-adver": 47333,
"st-rtr-solicit": 0,
"rv-rtr-solicit": 0,
"st-nei-adver": 21281,
"rv-nei-adver": 20405,
"st-nei-solicit": 35308,
"rv-nei-solicit": 20497,
"fast-path-pkts": 0,
"fastpath-disable": 0,
"ign-fastpath-pkts": 0,
"dup-rtr-ra-recvd": 0,
"rv-dup-rtr-ra-recvd": 0
}
},
"TABLE_icmpv6_mld_stat": {
"ROW_icmpv6_mld_stat": {
"st-v1-queries": 0,
"rv-v1-queries": 0,
"st-v2-queries": 0,
"rv-v2-queries": 0,
"st-v1-reports": 0,
"rv-v1-reports": 0,
"st-v2-reports": 0,
"rv-v2-reports": 0,
"st-v1-leaves": 0,
"rv-v1-leaves": 0
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 icmp global traffic command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 icmp interface vlan502 detail
show ipv6 icmp interface vlan502 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.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ipv6 icmp interface vlan502 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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ipv6 icmp interface vlan502 detail",
"msg": "Success",
"code": "200",
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"vrf-name-out": "default",
"TABLE_intf": {
"ROW_intf": {
"intf-name": "Vlan502",
"proto-state": "true",
"link-state": "true",
"admin-state": "true",
"subnet": "12:5:1::/64",
"last-ns-sent": "00:04:31",
"last-na-sent": "00:07:42",
"last-ra-sent": "00:04:24",
"next-na-sent": "00:00:57",
"ra-min-interval": "200",
"ra-interval": "600",
"set-m-flag": "false",
"set-o-flag": "false",
"current-hop-limit": 64,
"mtu": 9216,
"router-lifetime": 1800,
"reachable-time": 0,
"retrans-timer": [
0,
0,
0,
0
],
"ns-interval": [
1000,
1,
1000,
3
],
"send-redirect": "true",
"send-unreachables": "false",
"max-dad-attempts": 1,
"current-dad-attempts": 1,
"msg-sent": 0,
"msg-rec": 0,
"errors-sent": 0,
"erros-rec": 0,
"ifdown-sent": 0,
"ifdown-rec": 3582,
"am-ha-not-ready": 0,
"allow-mct-ttl": 0,
"our-own-mac": 0,
"tgt-not-us": 0,
"dest-unreachs-sent": 0,
"dest-unreachs-rec": 0,
"redirect-sent": 0,
"redirect-rec": 0,
"pkt-toobigs-sent": 0,
"pkt-toobigs-rec": 0,
"ra-sent": 172,
"ra-rec": 157,
"rs-sent": 0,
"rs-rec": 0,
"na-sent": 50,
"na-rec": 47,
"ns-sent": 334,
"ns-rec": 48,
"fastpath-pkt-recv": 0,
"fastpath-disable-pkt-recv": 0,
"fastpath-ignore-pkt-recv": 0,
"v1-queries-sent": 0,
"v1-queries-rec": 0,
"v2-queries-sent": 0,
"v2-queries-rec": 0,
"v1-reports-sent": 0,
"v1-reports-rec": 0,
"v2-reports-sent": 0,
"v2-reports-rec": 0,
"v1-leaves-sent": 0,
"v1-leaves-rec": 0,
"uptime": "never",
"TABLE_addr": {
"ROW_addr": {
"addr": "12:5:1::11/64"
}
}
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 icmp interface vlan502 detail command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 icmp vaddr link-local
show ipv6 icmp vaddr link-local
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 ipv6 icmp vaddr link-local ",
"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 ipv6 icmp vaddr link-local",
"msg": "Success",
"code": "200",
"body": {
"TABLE_vrf_all": {
"ROW_vrf_all": {
"TABLE_one_int": {
"ROW_one_int": {
"lcache-inter": "Vlan1002",
"cxt-name-int": "default",
"cxt_id-int": 1,
"TABLE_one_group": {
"ROW_one_group": [
{
"grp-id": 1,
"protocol-one-int": "HSRP",
"client-uuid": "196",
"client-state-act": "Yes",
"client-in-use": 1,
"client-state": 1,
"TABLE_vip_list": {
"ROW_vip_list": {
"virt-ipv6": "fe80::5:73ff:fea0:1",
"virt-mac": "0005.73a0.0001",
"cxt_name": "default",
"cxt_id": 1
}
}
},
{
"grp-id": 2,
"protocol-one-int": "VRRP",
"client-uuid": "482",
"client-state-act": "No",
"client-in-use": 1,
"client-state": 0,
"TABLE_vip_list": {
"ROW_vip_list": {
"virt-ipv6": "fe80:12:6:2::100",
"virt-mac": "0000.5e00.0201",
"cxt_name": "default",
"cxt_id": 1
}
}
}
]
}
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 icmp vaddr link-local command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 icmp vpc-statistics
show ipv6 icmp 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.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show ipv6 icmp 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.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show ipv6 icmp vpc-statistics",
"msg": "Success",
"code": "200",
"body": {
"TABLE_icmpv6_vpc_stats": {
"ROW_icmpv6_vpc_stats": {
"icmpv6-pro-drp-pull-disable": 0,
"icmpv6-pro-drp-push-msg-disable": 0,
"icmpv6-pro-ign-snd-pull-disabe": 0,
"icmpv6-ign-snd-push-disable": 0,
"icmpv6-drp-im-fail": 0,
"icmpv6-drp-mcecm-fail": 0,
"icmpv6-drp-invalid-pc-iod": 0,
"icmpv6-drp-pt-lookup-fail": 49,
"icmpv6-drp-resp-fail-no-mct": 0,
"icmpv6-drp-resp-fail": 0,
"icmpv6-vpc-id-ifindx-sending-pushmsg": 0,
"icmpv6-vpc-id-proc-cfs-payload": 0,
"icmpv6-resp-sent": 294,
"icmpv6-resp-recvd": 245,
"icmpv6-resp-recv-err": 0,
"icmpv6-rcvd-msg": 294,
"icmpv6-send-fail": 0,
"icmpv6-cfs-rel-dlvry-fail": 0,
"icmpv6-cfs-rel-dnvry-suc": 245,
"icmpv6-drp-pt-add-fail": 0,
"icmpv6-drp-no-mem": 0,
"icmpv6-drp-tmr-cre-fail": 0,
"icmpv6-drp-add-adj-fail": 0,
"icmpv6-off-drp-pt-lookup-fail": 245,
"icmpv6-dont-drp-vlan-mismat": 0,
"icmpv6-drp-svi-invalid": 0,
"icmpv6-dont-drop-sv-down": 0,
"icmpv6-drp-mct-down": 0,
"icmpv6-drp-ctxt-invalid": 0,
"icmpv6-drp-vrf-invalid": 0,
"icmpv6-drp-l3addr-invalid": 0,
"icmpv6-drp-l3addr-sanity-fail": 0,
"icmpv6-drp-mac-sanity-fail": 0,
"icmpv6-own-rtr-mac": 6448,
"icmpv6-drp-own-ipv6addr": 0,
"icmpv6-drp-own-vipv6add": 0,
"icmpv6-drp-adj-fail": 0,
"icmpv6-drp-subnet-mismatch": 0,
"icmpv6-drp-adj-exist": 0,
"icmpv6-dont-drp-ip-not-enable": 0,
"icmpv6-drp-total-cnt": 49,
"icmpv6-dont-drop-total-cnt": 245,
"icmpv6-add-adj": 49,
"icmpv6-del-adj": 49,
"icmpv6-adj-already-exist": 0,
"icmpv6-vpc-id-periodic-sync": 0,
"icmpv6-vpc-id-cfs-payload-periodic-sync": 0
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 icmp vpc-statistics command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 interface brief
show ipv6 interface brief
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 ipv6 interface brief",
"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 ipv6 interface brief",
"msg": "Success",
"code": "200",
"body": {
"TABLE_intf": {
"ROW_intf": [
{
"vrf-name-out": "default",
"intf-name": "Vlan502",
"prefix": "12:5:1::11",
"proto-state": "up",
"link-state": "up",
"admin-state": "up",
"linklocal-addr": "fe80::82e0:1dff:fecf:e8bf"
},
{
"vrf-name-out": "default",
"intf-name": "Vlan1002",
"prefix": "12:6:1::11",
"proto-state": "up",
"link-state": "up",
"admin-state": "up",
"linklocal-addr": "fe80::82e0:1dff:fecf:e8bf",
"TABLE_sec_addr": {
"ROW_sec_addr": {
"sec-prefix": {}
}
}
},
{
"vrf-name-out": "default",
"intf-name": "Vlan1752",
"prefix": "28:2:1::1",
"proto-state": "up",
"link-state": "up",
"admin-state": "up",
"linklocal-addr": "fe80::82e0:1dff:fecf:e8bf"
},
{
"vrf-name-out": "default",
"intf-name": "loopback2",
"prefix": "12:3:1::2",
"proto-state": "up",
"link-state": "up",
"admin-state": "up",
"linklocal-addr": "fe80::66f6:9dff:fe06:8db4"
},
{
"vrf-name-out": "default",
"intf-name": "loopback502",
"prefix": "102:102:102::102",
"proto-state": "up",
"link-state": "up",
"admin-state": "up",
"linklocal-addr": "fe80::66f6:9dff:fe06:8db4"
},
{
"vrf-name-out": "default",
"intf-name": "port-channel1.2",
"prefix": "12:1:1::2",
"proto-state": "up",
"link-state": "up",
"admin-state": "up",
"linklocal-addr": "fe80::82e0:1dff:fecf:e8bf"
},
{
"vrf-name-out": "default"
},
{
"vrf-name-out": "default",
"intf-name": "port-channel4.2",
"prefix": "28:1:1::1",
"proto-state": "up",
"link-state": "up",
"admin-state": "up",
"linklocal-addr": "fe80::82e0:1dff:fecf:e8bf"
},
{
"vrf-name-out": "default",
"intf-name": "Tunnel2",
"prefix": "12:4:1::2",
"proto-state": "up",
"link-state": "up",
"admin-state": "up",
"linklocal-addr": "fe80::66f6:9dff:fe06:8db4"
},
{
"vrf-name-out": "default",
"intf-name": "Ethernet1/14.2",
"prefix": "28:3:1::1",
"proto-state": "up",
"link-state": "up",
"admin-state": "up",
"linklocal-addr": "fe80::82e0:1dff:fecf:e8bf"
},
{
"vrf-name-out": "default",
"intf-name": "Ethernet1/21.2",
"prefix": "12:2:1::2",
"proto-state": "down",
"link-state": "down",
"admin-state": "up",
"linklocal-addr": "fe80::82e0:1dff:fecf:e8bf"
},
{
"vrf-name-out": "default",
"intf-name": "Ethernet1/29.2",
"prefix": "23:1:1::1",
"proto-state": "down",
"link-state": "down",
"admin-state": "up",
"linklocal-addr": "fe80::82e0:1dff:fecf:e8bf"
},
{
"vrf-name-out": "default",
"intf-name": "Ethernet1/31.2",
"prefix": "24:1:1::1",
"proto-state": "down",
"link-state": "down",
"admin-state": "up",
"linklocal-addr": "fe80::82e0:1dff:fecf:e8bf"
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 interface brief command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 local policy vrf all
show ipv6 local 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 ipv6 local 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": "local",
"rmap": "test_pol3",
"status": "Inactive",
"vrf_name": "default"
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 local 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 ipv6 mroute
show ipv6 mroute
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 ipv6 mroute",
"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 ipv6 mroute",
"msg": "Success",
"code": "200",
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"vrf-name": "default",
"TABLE_one_route": {
"ROW_one_route": [
{
"mcast-addrs": "(*, ff32::/32)",
"source_addrs": "*",
"group_addrs": "ff32::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
},
{
"mcast-addrs": "(*, ff33::/32)",
"source_addrs": "*",
"group_addrs": "ff33::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
},
{
"mcast-addrs": "(*, ff34::/32)",
"source_addrs": "*",
"group_addrs": "ff34::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
},
{
"mcast-addrs": "(*, ff35::/32)",
"source_addrs": "*",
"group_addrs": "ff35::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
},
{
"mcast-addrs": "(*, ff36::/32)",
"source_addrs": "*",
"group_addrs": "ff36::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
},
{
"mcast-addrs": "(*, ff37::/32)",
"source_addrs": "*",
"group_addrs": "ff37::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
},
{
"mcast-addrs": "(*, ff38::/32)",
"source_addrs": "*",
"group_addrs": "ff38::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
},
{
"mcast-addrs": "(*, ff39::/32)",
"source_addrs": "*",
"group_addrs": "ff39::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
},
{
"mcast-addrs": "(*, ff3a::/32)",
"source_addrs": "*",
"group_addrs": "ff3a::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
},
{
"mcast-addrs": "(*, ff3b::/32)",
"source_addrs": "*",
"group_addrs": "ff3b::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
},
{
"mcast-addrs": "(*, ff3c::/32)",
"source_addrs": "*",
"group_addrs": "ff3c::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
},
{
"mcast-addrs": "(*, ff3d::/32)",
"source_addrs": "*",
"group_addrs": "ff3d::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
},
{
"mcast-addrs": "(*, ff3e::/32)",
"source_addrs": "*",
"group_addrs": "ff3e::/32",
"pending": "false",
"bidir": "false",
"uptime": "6w4d",
"mofrr": "false",
"TABLE_mpib": {
"ROW_mpib": [
{
"mpib-name": "pim6",
"stale-route": "false"
},
{
"mpib-name": "ipv6",
"stale-route": "false"
}
]
},
"route-iif": "Null",
"rpf-nbr": "0::",
"mofrr-iif": "Null",
"mofrr-nbr": "0::",
"internal": "false",
"oif-count": "0",
"fabric-oif": "false",
"fabric-loser": "false"
}
]
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 mroute command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.3(3).
CLI Output |
---|
|
show ipv6 nd ra dns search-list interface vlan502
show ipv6 nd ra dns search-list interface vlan502
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 ipv6 nd ra dns search-list interface vlan502 ",
"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 ipv6 nd ra dns search-list interface vlan502",
"msg": "Success",
"code": "200",
"body": {
"TABLE_intf": {
"ROW_intf": {
"intf_name": "Vlan502",
"dns_supress_server_list": "No",
"TABLE_list": {
"ROW_list": {
"list_no": 1,
"list_name": "test",
"finite": 100,
"seq_no": 6999
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 nd ra dns search-list interface vlan502 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 nd ra dns server interface vlan502
show ipv6 nd ra dns server interface vlan502
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 ipv6 nd ra dns server interface vlan502",
"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 ipv6 nd ra dns server interface vlan502",
"msg": "Success",
"code": "200",
"body": {
"TABLE_intf": {
"ROW_intf": {
"dns-recursion-server-list": "Vlan502",
"dns-suppresion-server-list": "No",
"TABLE_dns_server": {
"ROW_dns_server": {
"dns-server-index": 1,
"dns-server-list": "100:100:100::100",
"lifetime": 49,
"second-seqno": 10
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 nd ra dns server interface vlan502 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 neighbor
show ipv6 neighbor
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 ipv6 neighbor",
"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 ipv6 neighbor",
"msg": "Success",
"code": "200",
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"vrf-name-out": "default",
"TABLE_afi": {
"ROW_afi": {
"afi": "ipv6",
"count": 9,
"TABLE_adj": {
"ROW_adj": [
{
"intf-out": "Vlan1752",
"ipv6-addr": "28:2:1::2",
"time-stamp": "00:21:30",
"mac": "0027.e3ad.b2e9",
"pref": 50,
"owner": "icmpv6"
},
{
"intf-out": "Vlan1752",
"ipv6-addr": "fe80::227:e3ff:fead:b2e9",
"time-stamp": "00:20:42",
"mac": "0027.e3ad.b2e9",
"pref": 50,
"owner": "icmpv6"
},
{
"intf-out": "Vlan502",
"ipv6-addr": "fe80::2be:75ff:fef2:a33f",
"time-stamp": "00:00:27",
"mac": "00be.75f2.a33f",
"pref": 50,
"owner": "icmpv6"
},
{
"intf-out": "port-channel1.2",
"ipv6-addr": "12:1:1::1",
"time-stamp": "00:03:15",
"mac": "00be.75f2.a33f",
"pref": 50,
"owner": "icmpv6"
},
{
"intf-out": "port-channel1.2",
"ipv6-addr": "fe80::2be:75ff:fef2:a33f",
"time-stamp": "00:06:23",
"mac": "00be.75f2.a33f",
"pref": 50,
"owner": "icmpv6"
},
{
"intf-out": "port-channel4.2",
"ipv6-addr": "28:1:1::2",
"time-stamp": "00:08:30",
"mac": "0027.e3ad.b2e9",
"pref": 50,
"owner": "icmpv6"
},
{
"intf-out": "port-channel4.2",
"ipv6-addr": "fe80::227:e3ff:fead:b2e9",
"time-stamp": "00:09:57",
"mac": "0027.e3ad.b2e9",
"pref": 50,
"owner": "icmpv6"
},
{
"intf-out": "Ethernet1/14.2",
"ipv6-addr": "28:3:1::2",
"time-stamp": "00:16:25",
"mac": "0027.e3ad.b2e9",
"pref": 50,
"owner": "icmpv6"
},
{
"intf-out": "Ethernet1/14.2",
"ipv6-addr": "fe80::227:e3ff:fead:b2e9",
"time-stamp": "00:10:53",
"mac": "0027.e3ad.b2e9",
"pref": 50,
"owner": "icmpv6"
}
]
}
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 neighbor command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 neighbor statistics vrf vni-51000
show ipv6 neighbor statistics 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 ipv6 neighbor statistics 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 ipv6 neighbor statistics vrf vni-51000",
"msg": "Success",
"code": "200",
"body": {
"invalid_pkt_cnt": 0,
"invalid_byte_cnt": 0,
"global_drop_pkt_cnt": 0,
"global_drop_byte_cnt": 0,
"global_punt_pkt_cnt": 0,
"global_punt_byte_cnt": 0,
"global_glean_pkt_cnt": 0,
"global_glean_byte_cnt": 0,
"glean_pkt_cnt": 0,
"glean_byte_cnt": 0,
"normal_pkt_cnt": 0,
"normal_byte_cnt": 0,
"last_updated": "never",
"TABLE_vrf": {
"ROW_vrf": {
"vrf-name-out": "vni-51000",
"TABLE_afi": {
"ROW_afi": {
"afi": "ipv6",
"count": 2,
"TABLE_adj": {
"ROW_adj": [
{
"intf-out": "Vlan410",
"ipv6-addr": "41::10",
"time-stamp": "00:00:47",
"mac": "e8ed.f324.6cc2",
"pref": 50,
"owner": "icmpv6",
"pkt-count": 0,
"byte-count": 0
},
{
"intf-out": "Vlan410",
"ipv6-addr": "fe80::eaed:f3ff:fe24:6cc2",
"time-stamp": "00:00:27",
"mac": "e8ed.f324.6cc2",
"pref": 50,
"owner": "icmpv6",
"pkt-count": 0,
"byte-count": 0
}
]
}
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 neighbor statistics 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 ipv6 neighbor vrf vni-51000
show ipv6 neighbor 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 ipv6 neighbor 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 ipv6 neighbor vrf vni-51000",
"msg": "Success",
"code": "200",
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"vrf-name-out": "vni-51000",
"TABLE_afi": {
"ROW_afi": {
"afi": "ipv6",
"count": 2,
"TABLE_adj": {
"ROW_adj": [
{
"intf-out": "Vlan410",
"ipv6-addr": "41::10",
"time-stamp": "00:03:46",
"mac": "e8ed.f324.6cc2",
"pref": 50,
"owner": "icmpv6"
},
{
"intf-out": "Vlan410",
"ipv6-addr": "fe80::eaed:f3ff:fe24:6cc2",
"time-stamp": "00:03:51",
"mac": "e8ed.f324.6cc2",
"pref": 50,
"owner": "icmpv6"
}
]
}
}
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 neighbor 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 ipv6 policy
show ipv6 policy
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 ipv6 policy ",
"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_pol2",
"status": "Active",
"vrf_name": "default"
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 policy command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 policy vrf all
show ipv6 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 ipv6 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_pol2",
"status": "Active",
"vrf_name": "default"
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 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 ipv6 prefix-list
show ipv6 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 ipv6 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_ipv6_pfl": {
"ROW_ipv6_pfl": [{
"name": "pfx3",
"seq": "1",
"action": "permit",
"rule": "1::/96"
}, {
"name": "pfx4",
"seq": "1",
"action": "permit",
"rule": "2::/96"
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 prefix-list command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 prefix-list pfx3
show ipv6 prefix-list pfx3
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 ipv6 prefix-list pfx3",
"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_ipv6_pfl": {
"ROW_ipv6_pfl": [{
"name": "pfx3",
"seq": "1",
"action": "permit",
"rule": "1::/96"
}
]
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 prefix-list pfx3 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 process
show ipv6 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 ipv6 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 ipv6 process",
"msg": "Success",
"code": "200",
"body": {
"TABLE_ipv6": {
"ROW_ipv6": {
"ipv6-vrf": "default",
"ipv6-vrf-id": 1,
"auto-disc": "disabled",
"auto-add": "not",
"sta-disc": "not",
"sta-def": 0,
"TABLE_ipv6_nxt": {
"ROW_ipv6_nxt": [
{
"ipv6-nxt": "12:1:1::"
},
{
"ipv6-nxt": "12:1:1::2"
},
{
"ipv6-nxt": "12:2:1::"
},
{
"ipv6-nxt": "12:2:1::2"
},
{
"ipv6-nxt": "12:3:1::2"
},
{
"ipv6-nxt": "12:4:1::"
},
{
"ipv6-nxt": "12:4:1::2"
},
{
"ipv6-nxt": "12:5:1::"
},
{
"ipv6-nxt": "12:5:1::11"
},
{
"ipv6-nxt": "12:6:1::"
},
{
"ipv6-nxt": "12:6:1::11"
},
{
"ipv6-nxt": "12:6:2::"
},
{
"ipv6-nxt": "12:6:2::11"
},
{
"ipv6-nxt": "12:6:2::101"
},
{
"ipv6-nxt": "23:1:1::"
},
{
"ipv6-nxt": "23:1:1::1"
},
{
"ipv6-nxt": "24:1:1::"
},
{
"ipv6-nxt": "24:1:1::1"
},
{
"ipv6-nxt": "28:1:1::"
},
{
"ipv6-nxt": "28:1:1::1"
},
{
"ipv6-nxt": "28:2:1::"
},
{
"ipv6-nxt": "28:2:1::1"
},
{
"ipv6-nxt": "28:3:1::"
},
{
"ipv6-nxt": "28:3:1::1"
},
{
"ipv6-nxt": "102:102:102::102"
},
{
"ipv6-nxt": "fe80::5:73ff:fea0:1"
},
{
"ipv6-nxt": "fe80::66f6:9dff:fe06:8db4"
},
{
"ipv6-nxt": "fe80::82e0:1dff:fecf:e8bf"
},
{
"ipv6-nxt": "fe80:12:6:2::100"
}
]
},
"TABLE_iod": {
"ROW_iod": [
{
"iod-val": 156,
"iod-ifind": "90101f6"
},
{
"iod-val": 107,
"iod-ifind": "90103ea"
},
{
"iod-val": 58,
"iod-ifind": "90106d8"
},
{
"iod-val": 313,
"iod-ifind": "14000002"
},
{
"iod-val": 362,
"iod-ifind": "140001f6"
},
{
"iod-val": 166,
"iod-ifind": "16002000"
},
{
"iod-val": 215,
"iod-ifind": "16002001"
},
{
"iod-val": 264,
"iod-ifind": "16002003"
},
{
"iod-val": 2,
"iod-ifind": "18010002"
},
{
"iod-val": 580,
"iod-ifind": "1a001a02"
},
{
"iod-val": 629,
"iod-ifind": "1a002802"
},
{
"iod-val": 727,
"iod-ifind": "1a003802"
},
{
"iod-val": 776,
"iod-ifind": "1a003c02"
}
]
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 process command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 routers
show ipv6 routers
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 ipv6 routers",
"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 ipv6 routers",
"msg": "Success",
"code": "200",
"body": {
"TABLE_ipv6_routers": {
"ROW_ipv6_routers": {
"TABLE_interface_ipv6": {
"ROW_interface_ipv6": [
{
"rtr-ipv6": "fe80::227:e3ff:fead:b2e9",
"ipv6-int-addr": "Vlan1752",
"rtr-flo-time": "4.050000",
"curr-hop-lmt": 64,
"life-time": 1800,
"addr-flag": 0,
"other-flg": 0,
"mtu-rtr": 9216,
"hm-agent-flg": 0,
"preference": "Medium",
"reach-time": 0,
"retrans-time": 0,
"TABLE_prefix_ipv6": {
"ROW_prefix_ipv6": {
"ipv6-prefix": "28:2:1::/64",
"buf-ipv6": "onlink_flag 1",
"buf-autono": "autonomous_flag 1",
"valid-life-time": 2592000,
"prefer-life": 604800
}
}
},
{
"rtr-ipv6": "fe80:12:6:2::100",
"ipv6-int-addr": "Vlan1002",
"rtr-flo-time": "7.250000",
"curr-hop-lmt": 64,
"life-time": 1800,
"addr-flag": 0,
"other-flg": 0,
"mtu-rtr": 9216,
"hm-agent-flg": 0,
"preference": "Medium",
"reach-time": 0,
"retrans-time": 0,
"TABLE_prefix_ipv6": {
"ROW_prefix_ipv6": [
{
"ipv6-prefix": "12:6:1::/64",
"buf-ipv6": "onlink_flag 1",
"buf-autono": "autonomous_flag 1",
"valid-life-time": 2592000,
"prefer-life": 604800
},
{
"ipv6-prefix": "12:6:2::/96",
"buf-ipv6": "onlink_flag 1",
"buf-autono": "autonomous_flag 1",
"valid-life-time": 2592000,
"prefer-life": 604800
}
]
}
},
{
"rtr-ipv6": "fe80::2be:75ff:fef2:a33f",
"ipv6-int-addr": "Vlan502",
"rtr-flo-time": "0.933333",
"curr-hop-lmt": 64,
"life-time": 1800,
"addr-flag": 0,
"other-flg": 0,
"mtu-rtr": 9216,
"hm-agent-flg": 0,
"preference": "Medium",
"reach-time": 0,
"retrans-time": 0,
"TABLE_prefix_ipv6": {
"ROW_prefix_ipv6": {
"ipv6-prefix": "12:5:1::/64",
"buf-ipv6": "onlink_flag 1",
"buf-autono": "autonomous_flag 1",
"valid-life-time": 2592000,
"prefer-life": 604800
}
}
},
{
"rtr-ipv6": "fe80::2be:75ff:fef2:a33f",
"ipv6-int-addr": "port-channel1.2",
"rtr-flo-time": "3.700000",
"curr-hop-lmt": 64,
"life-time": 1800,
"addr-flag": 0,
"other-flg": 0,
"mtu-rtr": 9216,
"hm-agent-flg": 0,
"preference": "Medium",
"reach-time": 0,
"retrans-time": 0,
"TABLE_prefix_ipv6": {
"ROW_prefix_ipv6": {
"ipv6-prefix": "12:1:1::/120",
"buf-ipv6": "onlink_flag 1",
"buf-autono": "autonomous_flag 1",
"valid-life-time": 2592000,
"prefer-life": 604800
}
}
},
{
"rtr-ipv6": "fe80::227:e3ff:fead:b2e9",
"ipv6-int-addr": "port-channel4.2",
"rtr-flo-time": "6.616667",
"curr-hop-lmt": 64,
"life-time": 1800,
"addr-flag": 0,
"other-flg": 0,
"mtu-rtr": 9216,
"hm-agent-flg": 0,
"preference": "Medium",
"reach-time": 0,
"retrans-time": 0,
"TABLE_prefix_ipv6": {
"ROW_prefix_ipv6": {
"ipv6-prefix": "28:1:1::/64",
"buf-ipv6": "onlink_flag 1",
"buf-autono": "autonomous_flag 1",
"valid-life-time": 2592000,
"prefer-life": 604800
}
}
},
{
"rtr-ipv6": "fe80::227:e3ff:fead:b2e9",
"ipv6-int-addr": "Ethernet1/14.2",
"rtr-flo-time": "3.183333",
"curr-hop-lmt": 64,
"life-time": 1800,
"addr-flag": 0,
"other-flg": 0,
"mtu-rtr": 9216,
"hm-agent-flg": 0,
"preference": "Medium",
"reach-time": 0,
"retrans-time": 0,
"TABLE_prefix_ipv6": {
"ROW_prefix_ipv6": {
"ipv6-prefix": "28:3:1::/64",
"buf-ipv6": "onlink_flag 1",
"buf-autono": "autonomous_flag 1",
"valid-life-time": 2592000,
"prefer-life": 604800
}
}
}
]
}
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 routers command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 static-route
show ipv6 static-route
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 ipv6 static-route",
"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 ipv6 static-route",
"msg": "Success",
"code": "200",
"body": {
"TABLE_route": {
"ROW_route": [
{
"prefix-out": "102:102:102::108/128",
"intf-name": "Vlan1752",
"pref": 1,
"next-hop-vrf": "default",
"reslv-tid": 80000001,
"real-nh": "0::",
"has-real-intf": "true",
"real-intf-name": "Vlan1752",
"rnh-status": "not installed in u6rib",
"bfd-status": "no"
},
{
"prefix-out": "102:102:102::101/128",
"next-hop": "12:4:1::1/128",
"pref": 1,
"next-hop-vrf": "default",
"reslv-tid": 80000001,
"real-nh": "12:4:1::1",
"has-real-intf": "true",
"real-intf-name": "Tunnel2",
"rnh-status": "not installed in u6rib",
"bfd-status": "no"
},
{
"prefix-out": "102:102:102::105/128",
"next-hop": "12:5:1::12/128",
"pref": 1,
"next-hop-vrf": "default",
"reslv-tid": 80000001,
"real-nh": "12:5:1::12",
"has-real-intf": "true",
"real-intf-name": "Vlan502",
"rnh-status": "not installed in u6rib",
"bfd-status": "no"
},
{
"prefix-out": "102:102:102::101/128",
"next-hop": "12:2:1::1/128",
"pref": 1,
"next-hop-vrf": "default",
"reslv-tid": 80000001,
"real-nh": "12:2:1::1",
"has-real-intf": "false",
"rnh-status": "not installed in u6rib",
"bfd-status": "no"
},
{
"prefix-out": "102:102:102::108/128",
"next-hop": "28:3:1::2/128",
"pref": 1,
"next-hop-vrf": "default",
"reslv-tid": 80000001,
"real-nh": "28:3:1::2",
"has-real-intf": "true",
"real-intf-name": "Ethernet1/14.2",
"rnh-status": "not installed in u6rib",
"bfd-status": "no"
},
{
"prefix-out": "102:102:102::101/128",
"next-hop": "12:1:1::1/128",
"pref": 1,
"next-hop-vrf": "default",
"reslv-tid": 80000001,
"real-nh": "12:1:1::1",
"has-real-intf": "true",
"real-intf-name": "port-channel1.2",
"rnh-status": "not installed in u6rib",
"bfd-status": "yes"
},
{
"prefix-out": "102:102:102::101/128",
"next-hop": "12:3:1::1/128",
"pref": 1,
"next-hop-vrf": "default",
"reslv-tid": 80000001,
"real-nh": "12:3:1::1",
"has-real-intf": "false",
"rnh-status": "not installed in u6rib",
"bfd-status": "no"
},
{
"prefix-out": "102:102:102::108/128",
"next-hop": "28:1:1::2/128",
"pref": 1,
"next-hop-vrf": "default",
"reslv-tid": 80000001,
"real-nh": "28:1:1::2",
"has-real-intf": "true",
"real-intf-name": "port-channel4.2",
"rnh-status": "not installed in u6rib",
"bfd-status": "no"
}
]
},
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 static-route command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show ipv6 traffic
show ipv6 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 ipv6 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 ipv6 traffic",
"msg": "Success",
"code": "200",
"body": {
"TABLE_ipv6_traffic": {
"ROW_ipv6_traffic": {
"uptime": "never",
"upkt-fwd": 76,
"mpkt-fwd": 0,
"ubyte-fwd": 4100124,
"mbyte-fwd": 0,
"upkt-orig": 822141,
"mpkt-orig": 4728326,
"ubyte-orig": 143281612,
"mbyte-orig": 499252732,
"upkt-consumed": 800768,
"mpkt-consumed": 6730109,
"ubyte-consumed": 124213777,
"mbyte-consumed": 575858578,
"ufrag-orig": 0,
"mfra-orig": 0,
"ufrag-consumed": 0,
"mfrag-consumed": 0,
"bad-version": 0,
"rt-lookup-fail": 0,
"hoplimit-excd": 126,
"opt-header-error": 0,
"pld-length-too-small": 0,
"pm-failed": 0,
"mbuf-error": 0,
"could-not-enc": 117,
"dest-if-down": 0,
"rx-pkts-recv": 8744611,
"rx-bytes-recv": 787464551,
"rx-inhdrerrors": 126,
"rx-innoroutes": 0,
"rx-inaddrerrors": 0,
"rx-inunknownprotos": 0,
"rx-intruncatedpkts": 0,
"rx-inforwdgrams": 1213251,
"rx-reasmreqds": 0,
"rx-reasmoks": 0,
"rx-reasmfails": 0,
"rx-indiscards": 0,
"rx-indelivers": 7530854,
"rx-inmcastpkts": 6678693,
"rx-inmcastbytes": 570352414,
"tx-pkts-sent": 5550467,
"tx-bytes-sent": 545279754,
"tx-outrequests": 5550508,
"tx-outnoroutes": 0,
"tx-outforwdgrams": 1213200,
"tx-outdiscards": 0,
"tx-outfragreqds": 0,
"tx-outfragoks": 0,
"tx-outfragfails": 0,
"tx-outfragcreates": 0,
"tx-outtransmits": 5550467,
"tx-outmcastpkts": 4728326,
"tx-outmcastbytes": 416743558
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ipv6 traffic command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|