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:

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

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

CLI Output
Switch# show ipv6 adjacency summary  vrf vni-51000

IPv6 AM Table - Adjacency Summary

  SDB Limit      : 174080
  Static  : 0
  Dynamic : 2
  Others  : 0 (Throttled : 0)
  Total   : 2

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:

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

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

CLI Output
Switch# show ipv6 adjacency  vrf vni-51000

Flags: # - Adjacencies Throttled for Glean
       G - Adjacencies of vPC peer with G/W bit
       R - Adjacencies learnt remotely
CP - Added via L2RIB, Control plane Adjacencies PS - Added via L2RIB, Peer Sync RO - Re-Originated Peer Sync Entry IPv6 Adjacency Table for VRF vni-51000 Total number of entries: 2 Address Age MAC Address Pref Source Interface 41::10 00:00:16 e8ed.f324.6cc2 50 icmpv6 Vlan410 fe80::eaed:f3ff:fe24:6cc2 00:00:21 e8ed.f324.6cc2 50 icmpv6 Vlan410

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:

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

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

CLI Output
Switch# show ipv6 client 
IPv6 Registered Client Status

Client: dhclient, status: up, pid: 28260, extended pid: 28260
  Protocol: (none), pib-index: 22, uuid: 1292
  Routing VRF id: 65535, flags: 3
  Control mts SAP: 1363
  Data mts SAP: 1363
  IPC messages to control mq: 914 (failed: 0)
  IPC messages to data mq: 0 (failed: 0)

Client: ospfv3-0, status: up, pid: 30462, extended pid: 30462
  Protocol: 89, pib-index: 21, uuid: 1090519322
  Routing VRF id: 65535, flags: 3
  Control mts SAP: 328
  Data mts SAP: 332
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 1431523 (failed: 0)
  if_ext_index: 1090519322

Client: vrrpv3, status: up, pid: 30446, extended pid: 30446
  Protocol: (none), pib-index: 20, uuid: 1154
  Routing VRF id: 65535, flags: 3
  Control mts SAP: 672
  Data mts SAP: 5352
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 0 (failed: 0)

Client: hsrp_engine, status: up, pid: 30457, extended pid: 30457
  Protocol: (none), pib-index: 19, uuid: 406
  Routing VRF id: 65535, flags: 3
  Control mts SAP: 340
  Data mts SAP: 340
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 0 (failed: 0)

Client: pim, status: up, pid: 30563, extended pid: 30563
  Protocol: (none), pib-index: 18, uuid: 284
  Routing VRF id: 65535, flags: 3
  Control mts SAP: 5260
  Data mts SAP: 0
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 0 (failed: 0)

Client: bgp-101, status: up, pid: 30458, extended pid: 30458
  Protocol: (none), pib-index: 17, uuid: 283
  Routing VRF id: 1, flags: 3
  Control mts SAP: 5233
  Data mts SAP: 0
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 0 (failed: 0)

Client: icmpv6, status: up, pid: 28938, extended pid: 28938
  Protocol: 58, pib-index: 16, uuid: 270
  Routing VRF id: 65535, flags: 3
  Control mts SAP: 5198
  Data mts SAP: 5199
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 904574 (failed: 0)

Client: isis-0, status: up, pid: 30464, extended pid: 30464
  Protocol: (none), pib-index: 15, uuid: 1090519320
  Routing VRF id: 65535, flags: 3
  Control mts SAP: 5177
  Data mts SAP: 0
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 0 (failed: 0)

Client: tm, status: up, pid: 30450, extended pid: 30450
  Protocol: (none), pib-index: 14, uuid: 508
  Routing VRF id: 65535, flags: 3
  Control mts SAP: 10
  Data mts SAP: 10
  IPC messages to control mq: 0 (failed: 948)
  IPC messages to data mq: 0 (failed: 0)

Client: rip-0, status: up, pid: 30461, extended pid: 30461
  Protocol: (none), pib-index: 13, uuid: 1090519319
  Routing VRF id: 65535, flags: 3
  Control mts SAP: 5024
  Data mts SAP: 0
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 0 (failed: 0)

Client: eigrp-0, status: up, pid: 30465, extended pid: 30465
  Protocol: 88, pib-index: 12, uuid: 1090519344
  Routing VRF id: 65535, flags: 3
  Control mts SAP: 881
  Data mts SAP: 881
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 983899 (failed: 0)
  if_ext_index: 1090519344

Client: rpm, status: up, pid: 30260, extended pid: 30260
  Protocol: (none), pib-index: 11, uuid: 305
  Routing VRF id: 1, flags: 3
  Control mts SAP: 4688
  Data mts SAP: 0
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 0 (failed: 0)

Client: ntp, status: up, pid: 30275, extended pid: 30275
  Protocol: (none), pib-index: 10, uuid: 71
  Routing VRF id: 65535, flags: 3
  Control mts SAP: 72
  Data mts SAP: 72
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 0 (failed: 0)

Client: Netstack, status: up, pid: 28967, extended pid: 28967
  Protocol: (none), pib-index: 9, uuid: 545
  Routing VRF id: 65535, flags: 4
  Control mts SAP: 0
  Data mts SAP: 0
  IPC messages to control mq: 0 (failed: 0)
  IPC messages to data mq: 0 (failed: 0)
  Recv fn: tcp_process_ipv6_data_msg (0x1054ca7a)

Client: tcpudp, status: up, pid: 28967, extended pid: 28967
  Protocol: 112, pib-index: 8, uuid: 545
  Routing VRF id: 65535, flags: 4
  Control mts SAP: 4454
  Data mts SAP: 4455
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 2518924 (failed: 0)
  Recv fn: tcp_process_ipv6_data_msg (0x1054ca7a)

Client: tcpudp, status: up, pid: 28967, extended pid: 28967
  Protocol: 17, pib-index: 7, uuid: 545
  Routing VRF id: 65535, flags: 4
  Control mts SAP: 4454
  Data mts SAP: 4455
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 1228381 (failed: 0)
  Recv fn: tcp_process_ipv6_data_msg (0x1054ca7a)

Client: tcpudp, status: up, pid: 28967, extended pid: 28967
  Protocol: 6, pib-index: 6, uuid: 545
  Routing VRF id: 65535, flags: 4
  Control mts SAP: 4454
  Data mts SAP: 4455
  IPC messages to control mq: 948 (failed: 0)
  IPC messages to data mq: 0 (failed: 0)
  Recv fn: tcp_process_ipv6_data_msg (0x1054ca7a)

Client: pktmgr, status: up, pid: 28939, extended pid: 28939
  Protocol: 59, pib-index: 5, uuid: 263
  Routing VRF id: 65535, flags: 7
  Control mts SAP: -1
  Data mts SAP: 250
  IPC messages to control mq: 0 (failed: 948)
  IPC messages to data mq: 0 (failed: 0)

Client: pktmgr, status: up, pid: 28939, extended pid: 28939
  Protocol: 44, pib-index: 4, uuid: 263
  Routing VRF id: 65535, flags: 7
  Control mts SAP: -1
  Data mts SAP: 250
  IPC messages to control mq: 0 (failed: 948)
  IPC messages to data mq: 0 (failed: 0)

Client: pktmgr, status: up, pid: 28939, extended pid: 28939
  Protocol: 41, pib-index: 3, uuid: 263
  Routing VRF id: 65535, flags: 7
  Control mts SAP: -1
  Data mts SAP: 250
  IPC messages to control mq: 0 (failed: 948)
  IPC messages to data mq: 0 (failed: 0)

Client: pktmgr, status: up, pid: 28939, extended pid: 28939
  Protocol: 47, pib-index: 2, uuid: 263
  Routing VRF id: 65535, flags: 7
  Control mts SAP: -1
  Data mts SAP: 250
  IPC messages to control mq: 0 (failed: 948)
  IPC messages to data mq: 0 (failed: 0)











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:

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

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

CLI Output
Switch# show ipv6 icmp adjacency

Flags: + - Adjacencies synced via CFSoE
# - Adjacencies Throttled for Glean

ICMPv6 Adjacency Table for VRF default
Address         Age       MAC Address     State       Interface
28:2:1::2       00:12:43  0027.e3ad.b2e9  STALE       Vlan1752 

fe80::227:e3ff:fead:b2e9
                00:14:03  0027.e3ad.b2e9  STALE       Vlan1752 

fe80::2be:75ff:fef2:a33f
                00:16:18  00be.75f2.a33f  STALE       Vlan502
12:1:1::1 00:19:15 00be.75f2.a33f STALE Po1.2
fe80::2be:75ff:fef2:a33f 00:23:26 00be.75f2.a33f STALE Po1.2
28:1:1::2 00:05:26 0027.e3ad.b2e9 STALE Po4.2
fe80::227:e3ff:fead:b2e9 00:05:00 0027.e3ad.b2e9 STALE Po4.2
28:3:1::2 00:12:55 0027.e3ad.b2e9 STALE Eth1/14.2 fe80::227:e3ff:fead:b2e9 00:06:11 0027.e3ad.b2e9 STALE Eth1/14.2

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:

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

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

CLI Output
Switch# show ipv6 icmp global traffic
  ICMPv6 packet Statisitcs (sent/received):
  Total Messages             :   1121583/1255172
Error Messages : 0/10362
Interface down drop count : 83707/0
Adjacency not recovered from AM aft HA: 0/0
Pkts allowed due to inv ttl on vPC-MCT: 0/3
Pkts dropped as source mac addr is own: 0/0
Pkts dropped as tgt ip addr is not own: 0/175280
Pkts dropped as src ip addr is not own: 0/0
Destination Unreachables : 0/0
Administratively Prohibited: 0/0
Time Exceeded : 119/0
Parameter Problems : 0/0
Echo Request : 0/0
Echo Replies : 0/0
Redirects : 1017146/981473
Packet Too Big : 0/0
Router Advertisements : 47948/47227
Router Solicitations : 0/0
Neighbor Advertisements : 21237/20377
Neighbor Solicitations : 35133/20453
Fastpath Packets : 0 [Fastpath diasbled / others]: 0 Packets drop request ignore count: 0 Duplicate router RA received: 0/0
ICMPv6 MLD Statistics (sent/received): V1 Queries: 0/0
V2 Queries: 0/0
V1 Reports: 0/0
V2 Reports: 0/0
V1 Leaves : 0/0

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:

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

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

CLI Output
Switch# show ipv6 icmp interface vlan502 detail 
ICMPv6 Interfaces for VRF "default"
Vlan502, Interface status: protocol-up/link-up/admin-up
  IPv6 address: 
    12:5:1::11/64 [VALID]
  IPv6 subnet:  12:5:1::/64
  IPv6 link-local address: fe80::82e0:1dff:fecf:e8bf [VALID]
  Active Virtual IPv6 address doesn't exists
  ND mac-extract : Disabled
  ICMPv6 active timers:
      Last Neighbor-Solicitation sent: 00:02:59
      Last Neighbor-Advertisement sent: 00:06:10
      Last Router-Advertisement sent: 00:02:52
      Next Router-Advertisement sent in: 00:02:29
  Router-Advertisement parameters:
      Periodic interval: 200 to 600 seconds
      Send "Managed Address Configuration" flag: false
      Send "Other Stateful Configuration" flag: false
      Send "Default Router Preference" value: Medium
      Send "Current Hop Limit" field: 64
      Send "MTU" option value: 9216
      Send "Router Lifetime" field: 1800 secs
      Send "Reachable Time" field: 0 ms
      Send "Retrans Timer" field: 0 ms
      Suppress RA: Disabled
      Suppress MTU in RA: Disabled
      Suppress Route Information Option in RA: Disabled
  Neighbor-Solicitation parameters:
      NS retransmit interval: 1000 ms
      ND NUD retry base: 1
      ND NUD retry interval: 1000
      ND NUD retry attempts: 3
  ICMPv6 error message parameters:
      Send redirects: true (0)
      Send unreachables: false
  ICMPv6 DAD parameters:
      Maximum DAD attempts: 1
      Current DAD attempt : 1
  ICMPv6 packet Statisitcs (sent/received):
  Total Messages                        :       556/3825
Error Messages : 0/0
Interface down drop count : 0/0
Adjacency not recovered from AM aft HA: 0/0
Pkts allowed due to inv ttl on vPC-MCT: 0/0
Pkts dropped as source mac addr is own: 0/0
Pkts dropped as tgt ip addr is not own: 0/3574
Pkts dropped as src ip addr is not own: 0/0
Destination Unreachables : 0/0
Administratively Prohibited : 0/0
Time Exceeded : 0/0
Parameter Problems : 0/0
Echo Request : 0/0
Echo Replies : 0/0
Redirects : 0/0
Packet Too Big : 0/0
Router Advertisements : 172/156
Router Solicitations : 0/0
Neighbor Advertisements : 50/47
Neighbor Solicitations : 334/48
Fastpath Packets : 0 Ignored Fastpath Packets [Fastpath diasbled / others] : 0/0
Active Virtual IPv6 address doesn't exists ICMPv6 MLD Statistics (sent/received): V1 Queries: 0/0
V2 Queries: 0/0
V1 Reports: 0/0
V2 Reports: 0/0
V1 Leaves : 0/0
Vinci Specific Statistics: Proxy NA count : 0 Flood NA to BD count : 0 Flood NS to BD count : 670014898348 RARP NS count : 0 Interface statistics last reset: never
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:

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

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

CLI Output
Switch# show ipv6 icmp vaddr link-local 
  Virtual IPv6 addresses exists:
  Interface: Vlan1002, context_name: default (1)
    Group id: 1, Protocol: HSRP, Client UUID: 0x196, Active: Ye
s (1) client_state:1
      Virtual IPv6 address: fe80::5:73ff:fea0:1
      Virtual MAC: 0005.73a0.0001, context_name: default (1)
    Group id: 2, Protocol: VRRP, Client UUID: 0x482, Active: No
 (1) client_state:0
      Virtual IPv6 address: fe80:12:6:2::100
      Virtual MAC: 0000.5e00.0201, context_name: default (1)




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:

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

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

CLI Output
Switch# show ipv6 icmp vpc-statistics
IPv6 ND sync: Enabled, Layer3 Routing: Disabled

ICMPV6 vPC global statistics
Drop the received CFS pull request message as the feature is off : 0
Drop the received CFS push message as the feature is off : 0
Ignore to send pull request using CFSoE as the feature is off: 0
Ignore to send push message using CFSoE as the feature is off : 0
IM api failed while processing CFS payload : 0
MCECM api failed while processing CFS payload : 0
Invalid MCT port-channel iod while processing CFS payload : 0
PT lookup failed while processing CFS payload : 49
Sending CFS response failed due to invalid MCT iod while processing CFS payload : 0
Sending CFS response failed while processing CFS payload : 0
Unabled to retrieve VPC id from ifindex while sending push message :0
Unabled to retrieve ifindex from vpc id while processing CFS payload : 0
Response sent via CFSoE : 294
Response received via CFSoE : 245
Response received via CFSoE with errors : 0
Received message via CFSoE : 294
Send message failed via CFSoE : 0
MCECM send api failed via CFSoE : 0
Send message succeeded via CFSoE : 245
PT add failed while processing offlist database : 0
Memory alloc failed while processing offlist database : 0
Timer create failed while processing offlist database : 0
Adjacency addition failed while processing offlist database : 0
PT lookup failed while processing offlist database : 245
VLAN mismatch while processing offlist database : 0
SVI is invalid while processing offlist database : 0
SVI is down while processing offlist database : 0
MCT is down while processing offlist database : 0
Ctxt_type is invalid while processing offlist database : 0
VRF is invalid while processing offlist database : 0
IP address is invalid while processing offlist database : 0
IP address sanity failed while processing offlist database : 0
MAC address sanity failed while processing offlist database : 0
Our own router mac while processing offlist database : 6180
Our own ip address while processing offlist database : 0
Our own virtual ip address while processing offlist database : 0
Create adjacency failed while processing offlist database : 0
Subnet mismatch while processing offlist database : 0
Entry exists while processing offlist database : 0
IPv6 not enabled on interface while processing offlist database: 0
Total drop count while processing offlist database : 49
Total don't drop count while processing offlist database : 245
Total adjacency additions in offlist database : 49
Total adjacency deletions in offlist database : 49
Total adjacencies ignored as they already exists in offlist database : 0
Unabled to retrieve VPC id from ifindex while doing periodic sync :0
Unabled to retrieve ifindex from vpc id while processing CFS payload during periodic sync : 0














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:

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

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

CLI Output
Switch# show ipv6 interface brief
IPv6 Interface Status for VRF "default"(1)
Interface        IPv6 Address/Link-local Address           Interface Status 
                                                           prot/link/admin
Vlan502          12:5:1::11                                up/up/up
                 fe80::82e0:1dff:fecf:e8bf
Vlan1002 12:6:1::11 up/up/up 12:6:2::11
fe80::82e0:1dff:fecf:e8bf
Vlan1752 28:2:1::1 up/up/up fe80::82e0:1dff:fecf:e8bf
Lo2 12:3:1::2 up/up/up fe80::66f6:9dff:fe06:8db4
Lo502 102:102:102::102 up/up/up fe80::66f6:9dff:fe06:8db4
Po1.2 12:1:1::2 up/up/up fe80::82e0:1dff:fecf:e8bf
Po4.2 28:1:1::1 up/up/up fe80::82e0:1dff:fecf:e8bf
Tunnel2 12:4:1::2 up/up/up fe80::66f6:9dff:fe06:8db4
Eth1/14.2 28:3:1::1 up/up/up fe80::82e0:1dff:fecf:e8bf
Eth1/21.2 12:2:1::2 down/down/up fe80::82e0:1dff:fecf:e8bf
Eth1/29.2 23:1:1::1 down/down/up fe80::82e0:1dff:fecf:e8bf
Eth1/31.2 24:1:1::1 down/down/up fe80::82e0:1dff:fecf:e8bf

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:

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

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

CLI Output
Switch# show ipv6 local policy vrf all
Interface                 Route-map            Status     VRF-Name
local                     test_pol3            Inactive   default


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:

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

Note: This example was added in Cisco NX-OS Release 9.3(3).

CLI Output
Switch# show ipv6 mroute
IPv6 Multicast Routing Table for VRF "default"

(, ff32::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)


(, ff33::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)


(, ff34::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)


(, ff35::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)


(, ff36::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)


(, ff37::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)


(, ff38::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)


(, ff39::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)


(, ff3a::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)


(, ff3b::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)


(, ff3c::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)


(, ff3d::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)


(*, ff3e::/32), uptime: 6w4d, pim6 ipv6 
  Incoming interface: Null, RPF nbr: 0::
  Outgoing interface list: (count: 0)

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:

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

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

CLI Output
Switch# show ipv6 nd ra dns search-list interface vlan502 
Recursive DNS Server List on: Vlan502
    Suppress DNS Search List: No

    DNS Search List 1: test    100 Sequence:6999

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:

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

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

CLI Output
Switch# show ipv6 nd ra dns server interface vlan502
Recursive DNS Server List on: Vlan502
    Suppress DNS Server List: No
    DNS Server 1: 100:100:100::100    49  Sequence:10


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:

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

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

CLI Output
Switch# show ipv6 neighbor

# - Adjacencies Throttled for Glean
       G - Adjacencies of vPC peer with G/W bit
       R - Adjacencies learnt remotely
       CP - Added via L2RIB, Control plane Adjacencies
       PS - Added via L2RIB, Peer Sync
       RO - Re-Originated Peer Sync Entry

IPv6 Adjacency Table for VRF default
Total number of entries: 9
Address         Age       MAC Address     Pref Source     Interface
28:2:1::2       00:19:38  0027.e3ad.b2e9  50   icmpv6     Vlan1752
fe80::227:e3ff:fead:b2e9 00:18:50 0027.e3ad.b2e9 50 icmpv6 Vlan1752
fe80::2be:75ff:fef2:a33f 00:22:24 00be.75f2.a33f 50 icmpv6 Vlan502
12:1:1::1 00:01:23 00be.75f2.a33f 50 icmpv6 port-channel1.2
fe80::2be:75ff:fef2:a33f 00:04:31 00be.75f2.a33f 50 icmpv6 port-channel1.2
28:1:1::2 00:06:38 0027.e3ad.b2e9 50 icmpv6 port-channel4.2
fe80::227:e3ff:fead:b2e9 00:08:05 0027.e3ad.b2e9 50 icmpv6 port-channel4.2
28:3:1::2 00:14:33 0027.e3ad.b2e9 50 icmpv6 Ethernet1/14.2
fe80::227:e3ff:fead:b2e9 00:09:01 0027.e3ad.b2e9 50 icmpv6 Ethernet1/14.2

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:

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

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

CLI Output
Switch# show ipv6 neighbor statistics vrf vni-51000
No. of Adjacency hit with type INVALID: Packet count 0, Byte count 0
No. of Adjacency hit with type GLOBAL DROP: Packet count 0, Byte count 0
No. of Adjacency hit with type GLOBAL PUNT: Packet count 0, Byte count 0
No. of Adjacency hit with type GLOBAL GLEAN: Packet count 0, Byte count 0
No. of Adjacency hit with type GLEAN: Packet count 0, Byte count 0
No. of Adjacency hit with type NORMAL: Packet count 0, Byte count 0

Adjacency statistics last updated before: never

Flags: # - Adjacencies Throttled for Glean
       G - Adjacencies of vPC peer with G/W bit
       R - Adjacencies learnt remotely
       CP - Added via L2RIB, Control plane Adjacencies
       PS - Added via L2RIB, Peer Sync
       RO - Re-Originated Peer Sync Entry

IPv6 Adjacency Table for VRF vni-51000
Total number of entries: 2
Address         MAC Address     Interface        Packet Count   Byte Count
41::10          e8ed.f324.6cc2  Vlan410          0              0
fe80::eaed:f3ff:fe24:6cc2
                e8ed.f324.6cc2  Vlan410

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:

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

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

CLI Output
Switch# show ipv6 neighbor vrf vni-51000

Flags: # - Adjacencies Throttled for Glean
       G - Adjacencies of vPC peer with G/W bit
       R - Adjacencies learnt remotely
       CP - Added via L2RIB, Control plane Adjacencies
       PS - Added via L2RIB, Peer Sync
       RO - Re-Originated Peer Sync Entry

IPv6 Adjacency Table for VRF vni-51000
Total number of entries: 2
Address         Age       MAC Address     Pref Source     Interface
41::10          00:03:22  e8ed.f324.6cc2  50   icmpv6     Vlan410
fe80::eaed:f3ff:fe24:6cc2
                00:03:27  e8ed.f324.6cc2  50   icmpv6     Vlan410



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:

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

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

CLI Output
Switch# show ipv6 policy 
Interface                 Route-map            Status     VRF-Name
Ethernet4/36              test_pol2            Active     default

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:

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

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

CLI Output
Switch# show ipv6 vrf all
Interface                 Route-map            Status     VRF-Name
Ethernet4/36              test_pol2            Active     default


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:

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

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

CLI Output
Switch# show ipv6 prefix-list
ipv6 prefix-list pfx3: 1 entries
   seq 1 permit 1::/96
ipv6 prefix-list pfx4: 1 entries
   seq 1 permit 2::/96




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:

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

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

CLI Output
Switch# show ipv6 prefix-list pfx3
ipv6 prefix-list pfx3: 1 entries
   seq 1 permit 1::/96





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:

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

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

CLI Output
Switch# show ipv6 process
VRF default
  VRF id is 1
  Auto discard is disabled
  Auto discard is not added
  Static discard is not configured
  Number of static default route configured is 0
  Iodlist: 156(0x90101f6) 107(0x90103ea) 58(0x90106d8) 313(0x14000002) 
           362(0x140001f6) 166(0x16002000) 215(0x16002001) 264(0x16002003) 
           2(0x18010002) 580(0x1a001a02) 629(0x1a002802) 727(0x1a003802) 
           776(0x1a003c02) 
  Local address list:  12:1:1:: 
                       12:1:1::2 
                       12:2:1:: 
                       12:2:1::2 
                       12:3:1::2 
                       12:4:1:: 
                       12:4:1::2 
                       12:5:1:: 
                       12:5:1::11 
                       12:6:1:: 
                       12:6:1::11 
                       12:6:2:: 
                       12:6:2::11 
                       12:6:2::101 
                       23:1:1:: 
                       23:1:1::1 
                       24:1:1:: 
                       24:1:1::1 
                       28:1:1:: 
                       28:1:1::1 
                       28:2:1:: 
                       28:2:1::1 
                       28:3:1:: 
                       28:3:1::1 
                       102:102:102::102 
                       fe80::5:73ff:fea0:1 
                       fe80::66f6:9dff:fe06:8db4 
                       fe80::82e0:1dff:fecf:e8bf 
                       fe80:12:6:2::100 














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:

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

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

CLI Output
Switch# show ipv6 routers
Router fe80::227:e3ff:fead:b2e9 on Vlan1752 , last update time 3.2 min
Current_hop_limit 64, Lifetime 1800, AddrFlag 0, OtherFlag 0, MTU 9216
HomeAgentFlag 0, Preference Medium
Reachable time 0 msec, Retransmission time 0 msec
  Prefix 28:2:1::/64    onlink_flag 1 autonomous_flag 1
  valid lifetime 2592000, preferred lifetime 604800














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:

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

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

CLI Output
Switch# show ipv6 static-route
IPv6 Configured Static Routes for VRF "default"(1)

102:102:102::108/128 -> Vlan1752, preference: 1
  nh_vrf(default) reslv_tid 80000001
  real-next-hop: 0::, interface: Vlan1752
    rnh(not installed in u6rib)
    bfd_enabled no
102:102:102::101/128 -> 12:4:1::1/128, preference: 1
  nh_vrf(default) reslv_tid 80000001
  real-next-hop: 12:4:1::1, interface: Tunnel2
    rnh(not installed in u6rib)
    bfd_enabled no
102:102:102::105/128 -> 12:5:1::12/128, preference: 1
  nh_vrf(default) reslv_tid 80000001
  real-next-hop: 12:5:1::12, interface: Vlan502
    rnh(not installed in u6rib)
    bfd_enabled no
102:102:102::101/128 -> 12:2:1::1/128, preference: 1
  nh_vrf(default) reslv_tid 80000001
  real-next-hop: 12:2:1::1, interface: none
    rnh(not installed in u6rib)
    bfd_enabled no
102:102:102::108/128 -> 28:3:1::2/128, preference: 1
  nh_vrf(default) reslv_tid 80000001
  real-next-hop: 28:3:1::2, interface: Ethernet1/14.2
    rnh(not installed in u6rib)
    bfd_enabled no
102:102:102::101/128 -> 12:1:1::1/128, preference: 1
  nh_vrf(default) reslv_tid 80000001
  real-next-hop: 12:1:1::1, interface: port-channel1.2
    rnh(not installed in u6rib)
    bfd_enabled yes
102:102:102::101/128 -> 12:3:1::1/128, preference: 1
  nh_vrf(default) reslv_tid 80000001
  real-next-hop: 12:3:1::1, interface: none
    rnh(not installed in u6rib)
    bfd_enabled no
102:102:102::108/128 -> 28:1:1::2/128, preference: 1
  nh_vrf(default) reslv_tid 80000001
  real-next-hop: 28:1:1::2, interface: port-channel4.2
    rnh(not installed in u6rib)
    bfd_enabled no







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:

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

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

CLI Output
Switch# show ipv6 traffic
IPv6 Software Processed Traffic and Error Statistics, last reset: never

RP-Traffic Statistics:
  Counter                  Unicast  Multicast
  -------                  -------  ---------
  Packets forwarded:            76  0
  Bytes forwarded:         4100124  0
  Packets originated:       820484  4718361
  Bytes originated:      142993628  498207216
  Packets consumed:         799319  6716333
  Bytes consumed:        123988661  574682878
  Fragments originated:          0  0
  Fragments consumed:            0  0
  Ingress mcec forward packets:          0
  Ingress packets during Vinci migration : 0

Error Statistics:
  Bad version: 0, route lookup failed: 0, hop limit exceeded: 126
  Ingress Drop (ifmgr init): 0, rpf drops: 0
  Option header errors: 0, payload length too small: 0
  PM errors: 0, MBUF errors: 0, encapsulation errors: 117
  Destination interface down drop: 0

RFC 4293: IPV6 Software Processed Traffic Statistics
----------------------------------------
Reception
  Pkts recv: 8726807, Bytes recv: 785878047,
   inhdrerrors: 126, innoroutes: 0, inaddrerrors: 0,
   inunknownprotos: 0, intruncatedpkts: 0, inforwdgrams: 1210672,
   reasmreqds: 0, reasmoks: 0, reasmfails: 0,
   indiscards: 0, indelivers: 7515629,
   inmcastpkts: 6665023, inmcastbytes: 569187994,
Transmission
  Pkts sent:  5538845, Bytes sent: 544149942
   outrequests: 5538886, outnoroutes: 0, outforwdgrams: 1210621,
   outdiscards: 0, outfragreqds: 0, outfragoks: 0,
   outfragfails: 0, outfragcreates: 0,   outtransmits: 5538845,
   outmcastpkts: 4718361, outmcastbytes: 415872030