show ip adjacency

show ip adjacency

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.2",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip adjacency",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip adjacency",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_vrf": {
            "ROW_vrf": {
              "vrf-name-out": "default",
              "TABLE_afi": {
                "ROW_afi": {
                  "afi": "ipv4",
                  "count": 1,
                  "TABLE_adj": {
                    "ROW_adj": {
                      "intf-out": "Ethernet3/2",
                      "ip-addr-out": "113.0.1.1",
                      "mac": "18ef.63e7.1dc2",
                      "pref": 50,
                      "owner": "arp"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip adjacency command, see the CLI command reference:

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 ip adjacency

Flags: # - Adjacencies Throttled for Glean
       G - Adjacencies of vPC peer with G/W bit
       R - Adjacencies learnt remotely

IP Adjacency Table for VRF default
Total number of entries: 1
Address         MAC Address     Pref Source     Interface
113.0.1.1       18ef.63e7.1dc2  50   arp        Ethernet3/2



show ip adjacency summary

show ip adjacency summary

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.2",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip adjacency summary",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip adjacency summary",
        "msg": "Success",
        "code": "200",
        "body": {
          "count-static": 0,
          "count-dynamic": 1,
          "count-others": 0,
          "count-throttle": 0,
          "count-total": 1
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip adjacency summary command, see the CLI command reference:

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 ip adjacency summary

IP AM Table - Adjacency Summary

  SDB Limit      : 131072
  Static  : 0
  Dynamic : 1
  Others  : 0 (Throttled : 0)
  Total   : 1



show ip arp detail

show ip arp detail

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.2",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip arp detail",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip arp detail",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_vrf": {
            "ROW_vrf": {
              "vrf-name-out": "default",
              "cnt-total": 1,
              "TABLE_adj": {
                "ROW_adj": {
                  "intf-out": "Ethernet3/2",
                  "ip-addr-out": "113.0.1.1",
                  "time-stamp": "00:10:15",
                  "mac": "18ef.63e7.1dc2",
                  "phy-intf": "Ethernet3/2"
                }
              }
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp detail command, see the CLI command reference:

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 ip arp detail

Flags: * - Adjacencies learnt on non-active FHRP router
       + - Adjacencies synced via CFSoE
       # - Adjacencies Throttled for Glean

IP ARP Table for context default
Total number of entries: 1
Address         Age       MAC Address     Interface        Physical Interface
113.0.1.1       00:09:23  18ef.63e7.1dc2  Ethernet3/2      Ethernet3/2



show ip arp statistics

show ip arp statistics

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.2",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip arp statistics",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip arp statistics",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_vrf": {
            "ROW_vrf": {
              "vrf-name-out1": "default",
              "TABLE_stat": {
                "ROW_stat": {
                  "tx-total": 7,
                  "tx-req": 4,
                  "tx-reply": 1,
                  "tx-req-l2": 0,
                  "tx-reply-l2": 0,
                  "tx-grat": 2,
                  "tx-tunnel": 0,
                  "tx-drop": 0,
                  "tx-mbuf-fail": 0,
                  "tx-ctxt-not-crtd": 0,
                  "tx-bad-ctxt-id": 0,
                  "tx-invalid-ifindex": 0,
                  "tx-invalid-sip": 0,
                  "tx-invalid-dip": 0,
                  "tx-own-ip": 2,
                  "tx-unattached-ip": 2,
                  "tx-adj-create-fail": 0,
                  "tx-null-sip": 0,
                  "tx-null-smac": 0,
                  "tx-client-enq-fail": 0,
                  "tx-dest-unreachable": 0,
                  "tx-enhanced-proxy-dest-unreachable": 0,
                  "tx-l2-port-dest-unreachable": 0,
                  "tx-invalid-local-proxy": 0,
                  "tx-invalid-proxy": 0,
                  "tx-vip-not-active": 0,
                  "rx-total": 0,
                  "rx-req": 3,
                  "rx-reply": 2,
                  "rx-req-l2": 0,
                  "rx-reply-l2": 0,
                  "rx-proxy": 0,
                  "rx-local-proxy": 0,
                  "rx-enhanced-proxy": 0,
                  "rx-enhanced-proxy-anycast": 0,
                  "rx-enhanced-proxy-l2port-track": 0,
                  "rx-tunnel": 0,
                  "rx-fastpath": 0,
                  "rx-snoop": 0,
                  "rx-drop": 4,
                  "rx-srvrport": 0,
                  "bad-if": 0,
                  "bad-len": 0,
                  "invalid-prot": 0,
                  "invalid-hrd-type": 0,
                  "invalid-ctxt": 0,
                  "ctxt-not-crtd": 0,
                  "invalid-l2": 0,
                  "invalid-l3": 0,
                  "invalid-sip": 0,
                  "our-sip": 0,
                  "arp-if-no-mem": 0,
                  "subnet-mismatch": 0,
                  "dir-bcast": 0,
                  "invalid-dip": 0,
                  "non-local-dst": 0,
                  "non-active-fhrp": 0,
                  "invalid-smac": 0,
                  "our-smac": 0,
                  "not-init": 0,
                  "l2-prxy-en": 0,
                  "l2-port-untrusted": 0,
                  "stdby-fhrp-vip": 0,
                  "grat-prxy-en": 0,
                  "arp-req-ignore": 0,
                  "l2-intf": 0,
                  "l2fm-query-fail": 0,
                  "tunnel_fail": 0,
                  "incomplete-drop-count": 0,
                  "recv-glean-count": 5,
                  "adds": 1,
                  "dels": 0,
                  "timeouts": 0
                }
              }
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp statistics command, see the CLI command reference:

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 ip arp statistics 
ARP State Machine Stats
ARP packet statistics for context default Sent:
Total 7, Requests 4, Replies 1, Requests on L2 0, Replies on L2 0, Gratuitous 2, Tunneled 0, Dropped 0
Send packet drops details:
MBUF operation failed : 0
Context not yet created : 0
Invalid context : 0
Invalid ifindex : 0
Invalid SRC IP : 0
Invalid DEST IP : 0
Destination is our own IP : 2
Unattached IP : 2
Adjacency Couldn't be added : 0
Null Source IP : 0
Null Source MAC : 0
Client Enqueue Failed : 0
Dest. not reachable for proxy arp : 0
Dest. unreachable for enhanced proxy: 0
Dest. on L2 port being tracked : 0
Invalid Local proxy arp : 0
Invalid proxy arp : 0
VIP is not active : 0
Received:
Total 0, Requests 3, Replies 2, Requests on L2 0, Replies on L2 0 Proxy arp 0, Local-Proxy arp 0, Enhanced Proxy arp 0, Anycast proxy Proxy arp 0, L2 Port-track Proxy arp 0, Tunneled 0, Fastpath 0, Snooped 0, Dropped 4, on Server Port 0
Received packet drops details:
Appeared on a wrong interface : 0
Incorrect length : 0
Invalid protocol packet : 0
Invalid Hardware type : 0
Invalid context : 0 Context not yet created : 0 Invalid layer 2 address length : 0 Invalid layer 3 address length : 0 Invalid source IP address : 0 Source IP address is our own : 0 No mem to create per intf structure : 0 Source address mismatch with subnet : 0 Directed broadcast source : 0 Invalid destination IP address : 0 Non-local destination IP address : 0 Non-active FHRP dest IP address. Learn and drop : 0 Invalid source MAC address : 0 Source MAC address is our own : 0 Received before arp initialization : 0 L2 packet on proxy-arp-enabled interface : 0 L2 packet on untrusted L2 port : 0 Packet with VIP on standby FHRP : 0 Grat arp received on proxy-arp-enabled interface : 0 Requests came for exising entries : 0 Requests came on a l2 interface : 0 L2FM query failed for a L2 Address : 0 Dropping due to tunneling failures : 0 INCOMPLETE entries drop count due to AM MTS threshold : 0 Glean requests recv count : 5 ARP adjacency statistics Adds 1, Deletes 0, Timeouts 0

show ip arp summary vrf all

show ip arp summary vrf all

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.2",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip arp summary vrf all",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip arp summary vrf all",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_vrf": {
            "ROW_vrf": {
              "vrf-name-out": "all",
              "cnt-resolved": 6,
              "cnt-incomplete": 0,
              "cnt-thrtld-incomplete": 0,
              "cnt-unknown": 0,
              "cnt-total": 6
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp summary vrf all command, see the CLI command reference:

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 ip arp summary vrf all

IP ARP Table - Adjacency Summary

  Resolved   : 6
  Incomplete : 0 (Throttled : 0)
  Unknown    : 0
  Total      : 6



show ip arp suppression topo-info

show ip arp suppression topo-info

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.2",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip arp suppression topo-info",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip arp suppression topo-info",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_arp_l2rib_topo": {
            "ROW_arp_l2rib_topo": [
              {
                "sw-bd-topo-id": 90,
                "arp-suppr-mode": "L2 ARP Suppression"
              },
              {
                "sw-bd-topo-id": 110,
                "arp-suppr-mode": "L2 ARP Suppression"
              },
              {
                "sw-bd-topo-id": 210,
                "arp-suppr-mode": "ARP Suppression Disabled"
              },
              {
                "sw-bd-topo-id": 410,
                "arp-suppr-mode": "L2/L3 ARP Suppression"
              },
              {
                "sw-bd-topo-id": 610,
                "arp-suppr-mode": "L2/L3 ARP Suppression"
              },
              {
                "sw-bd-topo-id": 710,
                "arp-suppr-mode": "L2/L3 ARP Suppression"
              }
            ]
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp suppression topo-info command, see the CLI command reference:

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 ip arp suppression topo-info
ARP L2RIB Topology information
Topo-id  ARP-suppression mode
90      L2 ARP Suppression
110     L2 ARP Suppression
210     ARP Suppression Disabled
410     L2/L3 ARP Suppression
610     L2/L3 ARP Suppression
710     L2/L3 ARP Suppression



show ip arp suppression-cache detail

show ip arp suppression-cache detail

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.2",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip arp suppression-cache detail",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip arp suppression-cache  detail",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_arp-suppression": {
            "ROW_arp-suppression": {
              "TABLE_entries": {
                "ROW_entries": [
                  {
                    "ip-addr": "41.1.1.11",
                    "age": "00:07:31",
                    "mac": "0000.1111.1410",
                    "vlan": 410,
                    "physical-iod": "port-channel2",
                    "flag": "L"
                  },
                  {
                    "ip-addr": "41.1.1.10",
                    "age": "00:08:07",
                    "mac": "0000.1110.1410",
                    "vlan": 410,
                    "physical-iod": "Ethernet3/1/1",
                    "flag": "L"
                  }
                ]
              }
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp suppression-cache detail command, see the CLI command reference:

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 ip arp suppression-cache  detail

Flags: + - Adjacencies synced via CFSoE
       L - Local Adjacency
       R - Remote Adjacency
       L2 - Learnt over L2 interface

Ip Address      Age      Mac Address    Vlan Physical-ifindex    Flags    Remote Vtep Addrs

41.1.1.11       00:06:54 0000.1111.1410  410 port-channel2       L
41.1.1.10       00:07:29 0000.1110.1410  410 Ethernet3/1/1       L


show ip arp suppression-cache summary

show ip arp suppression-cache summary

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.2",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip arp suppression-cache summary",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip arp suppression-cache  summary",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_arp-suppression": {
            "ROW_arp-suppression": {
              "TABLE_summary": {
                "ROW_summary": {
                  "remote-count": 0,
                  "local-count": 2,
                  "total-count": 2
                }
              }
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp suppression-cache summary command, see the CLI command reference:

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 ip arp suppression-cache summary

IP ARP suppression-cache Summary
Remote              :0
Local               :2
Total               :2



show ip arp suppression-cache vlan 410

show ip arp suppression-cache vlan 410

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.2",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip arp suppression-cache vlan 410",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": " show ip arp suppression-cache vlan 410",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_arp-suppression": {
            "ROW_arp-suppression": {
              "TABLE_entries": {
                "ROW_entries": [
                  {
                    "ip-addr": "41.1.1.11",
                    "age": "00:13:41",
                    "mac": "0000.1111.1410",
                    "vlan": 410,
                    "physical-iod": "port-channel2",
                    "flag": "L"
                  },
                  {
                    "ip-addr": "41.1.1.10",
                    "age": "00:14:16",
                    "mac": "0000.1110.1410",
                    "vlan": 410,
                    "physical-iod": "Ethernet3/1/1",
                    "flag": "L"
                  }
                ]
              }
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp suppression-cache vlan 410 command, see the CLI command reference:

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 ip arp suppression-cache vlan 410

Flags: + - Adjacencies synced via CFSoE
       L - Local Adjacency
       R - Remote Adjacency
       L2 - Learnt over L2 interface

Ip Address      Age      Mac Address    Vlan Physical-ifindex    Flags    Remote Vtep Addrs

41.1.1.11       00:13:09 0000.1111.1410  410 port-channel2       L
41.1.1.10       00:13:44 0000.1110.1410  410 Ethernet3/1/1       L


show ip arp sync-entries vrf vni-51000

show ip arp sync-entries vrf vni-51000

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip arp sync-entries vrf vni-51000",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip arp sync-entries vrf vni-51000",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_vrf": {
            "ROW_vrf": {
              "vrf-name-out": "vni-51000",
              "TABLE_adj": {
                "ROW_adj": {
                  "intf-out": "Vlan410",
                  "ip-addr-out": "41.1.1.10",
                  "time-stamp": "PT6M6S",
                  "mac": "e8ed.f324.6cc2"
                }
              }
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp sync-entries vrf vni-51000 command, see the CLI command reference:

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 ip arp sync-entries vrf vni-51000

Flags: D - Static Adjacencies attached to down interface

IP ARP Table for context vni-51000
Address         Age       MAC Address     Interface       Flags
41.1.1.10       00:04:41  e8ed.f324.6cc2  Vlan410


show ip arp tunnel-statistics

show ip arp tunnel-statistics

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip arp tunnel-statistics",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip arp tunnel-statistics",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_ip_arp_tunnel_stat": {
            "ROW_ip_arp_tunnel_stat": {
              "arp-tun-pkt-rcv-cnt": 6,
              "arp-tun-pkt-rcv-ing-vpc": 0,
              "arp-tun-pkt-rcv-ing-gpc": 0,
              "arp-tun-pkt-rcv-ing-orp-vpc": 6,
              "arp-tun-pkt-rcv-ing-orp-vpc-pl": 0,
              "arp-tun-pkt-snd-cnt": 12,
              "arp-tun-pkt-snd-snoop-cnt": 0,
              "arp-tun-pkt-snd-non-local-vip-cnt": 0,
              "arp-tun-pkt-snd-peer-gate-cnt": 12,
              "arp-tun-pkt-snd-ing-vpc": 0,
              "arp-tun-pkt-snd-ing-gpc": 0,
              "arp-tun-pkt-snd-ing-orp-vpc": 12,
              "arp-tun-pkt-snd-ing-orp-vpc-pl": 0,
              "arp-tun-pkt-rcv-drp-cnt": 0,
              "arp-tun-pkt-snd-drp-cnt": 0,
              "arp-tun-pkt-snd-drp-snd-fail-cnt": 0,
              "arp-tun-pkt-rcv-drp-ver-cnt": 0,
              "arp-tun-pkt-rcv-drp-pl-cnt": 0,
              "arp-tun-pkt-rcv-drp-ing-non-mct": 0,
              "arp-tun-pkt-rcv-drp-inv-ing-intf": 0,
              "arp-tun-pkt-snd-drp-inv-ing-intf": 0,
              "arp-tun-pkt-rcvdrp-inv-gpc-core-sw": 0,
              "arp-tun-pkt-rcvdrp-inv-gpc-peer-sw": 0,
              "arp-tun-pkt-drp-inv-mcec": 0,
              "arp-tun-pkt-im-api-fail": 0,
              "arp-tun-pkt-drp-ctxt-inv": 0,
              "arp-tun-pkt-drp-mct-dwn": 0,
              "arp-tun-pkt-rcv-drp-mbuf-op-fail": 0,
              "arp-tun-pkt-snd-drp-mbuf-op-fail": 0,
              "arp-tun-pkt-snd-drp-tunnel": 0,
              "arp-tun-pkt-snd-drp-ce": 0,
              "arp-tun-pkt-snd-drp-inv-gpc": 0,
              "arp-tun-pkt-rcv-drp-inv-gpc": 0,
              "arp-tun-pkt-sys-mcecm-key-not-found": 0
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp tunnel-statistics command, see the CLI command reference:

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 ip arp tunnel-statistics
ARP Tunnel statistics
Total tunneled packets received              : 6
Tunneled packets rx for ingress vPC          : 0
Tunneled packets rx for ingress GPC          : 0
Tunneled Packets rx for ingress orphan vPC   : 6
Tunneled Packets rx for ingress orphan vPC+  : 0
Total tunneled packets sent                  : 12
Tunneled packets Sent for ARP Snoop          : 0
Tunneled packets sent for Non-Local VIP      : 0
Tunneled Packets sent for Peer Gateway       : 12
Tunneled packets tx for ingress vPC          : 0
Tunneled packets tx for ingress GPC          : 0
Tunneled Packets tx for ingress orphan vPC   : 12
Tunneled Packets tx for ingress orphan vPC+  : 0
Total tunnel packets recv dropped            : 0
Total tunnel packets send dropped            : 0
Drops due to send failed                     : 0
Received packet with invalid version         : 0
Received packet with invalid payload type    : 0
Received packet on non mct interface         : 0
Received packet with invalid ingress port    : 0
Drop send packets for invalid ingress port   : 0
Drop recv pkt, invalid GPC of core switch    : 0
Drop recv pkt, invalid  GPC of peer switch   : 0
Failed to retrieve vPC ID while processing   : 0
IM api failed while processing               : 0
Invalid context while processing              : 0
Tunnel failed as MCT is invalid or down             : 0
Drop recv packets as mbuf operation failed   : 0
Drop send packets as mbuf operation failed   : 0
Cannot tunnel a incoming tunneled packet     : 0
Cannot tunnel in a CE network                : 0
Drop recv pkt, failed in retrieving the GPC  : 0
Drop send pkt, failed in retrieving the GPC  : 0
MCEC_ID 

show ip arp vpc-statistics

show ip arp vpc-statistics

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.2",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip arp vpc-statistics",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip arp vpc-statistics",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_arp_vpc_stats": {
            "ROW_arp_vpc_stats": {
              "arp-drp-im-fail": 5,
              "arp-drp-mcecm-fail": 1,
              "arp-drp-pt-lookup-fail": 1,
              "arp-resp-sent": 1,
              "arp-resp-recvd": 1,
              "arp-rcvd-msg": 1,
              "arp-cfs-rel-dnvry-suc": 1,
              "arp-add-adj": 1,
              "arp-del-adj": 1,
              "sync-send-op-add-adj": 1,
              "sync-recv-op-add-adj": 1,
              "sync-push-msg-adj-cnt": 1,
              "arp-sync-adj-cnt": 2
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip arp vpc-statistics command, see the CLI command reference:

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 ip arp vpc-statistics
ARP sync Enabled

ARP vPC global statistics
IM api failed while processing CFS payload : 5
MCECM api failed while processing CFS payload : 1
PT lookup failed while processing CFS payload : 1
Response sent via CFSoE : 1
Response received via CFSoE : 1
Received message via CFSoE : 1
Send message succeeded via CFSoE : 1
Total adjacency additions in offlist database : 1
Total adjacency deletions in offlist database : 1
Total adjacencies sentto the peer to add: 1
Total adjacencies receivedfrom the peer to add : 1
Total gross adjacencies sentperiodically: 1
Total periodic sync adjacencies: 2


show ip as-path-access-list

show ip as-path-access-list

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip as-path-access-list  ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "TABLE_aspl": {
    "ROW_aspl": [
      {
        "name": "acl1", 
        "action": "permit", 
        "rule": "\"20\""
      }, 
      {
        "name": "acl1", 
        "action": "deny", 
        "rule": "\"10\""
      }
    ]
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip as-path-access-list command, see the CLI command reference:

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 ip as-path-access-list 
ip as-path access-list acl1 permit "20"
ip as-path access-list acl1 deny "10"



show ip client

show ip client

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip client",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip client",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_ip_clnt": {
            "ROW_ip_clnt": {
              "TABLE_clnt": {
                "ROW_clnt": [
                  {
                    "clnt-name": "arp",
                    "clnt-uuid": 268,
                    "clnt-pid": 29074,
                    "clnt-ext-pid": 29074,
                    "clnt-ind": 4,
                    "clnt-cntxt-id": 65535,
                    "clnt-mts-sap": 280,
                    "clnt-flg": "3",
                    "clnt-msg-succ-cnt": 0,
                    "clnt-msg-fail-cnt": 0
                  },
                  {
                    "clnt-name": "rpm",
                    "clnt-uuid": 305,
                    "clnt-pid": 30599,
                    "clnt-ext-pid": 30599,
                    "clnt-ind": 11,
                    "clnt-cntxt-id": 1,
                    "clnt-mts-sap": 0,
                    "clnt-flg": "3",
                    "clnt-msg-succ-cnt": 0,
                    "clnt-msg-fail-cnt": 0
                  },
                  {
                    "clnt-name": "tcpudp",
                    "clnt-uuid": 545,
                    "clnt-pid": 29090,
                    "clnt-ext-pid": 29090,
                    "clnt-proto": 1,
                    "clnt-ind": 6,
                    "clnt-cntxt-id": 65535,
                    "clnt-mts-sap": 4448,
                    "clnt-flg": "1",
                    "clnt-msg-succ-cnt": 1,
                    "clnt-msg-fail-cnt": 0,
                    "clnt-recv-fn-name": "tcp_process_ip_data_msg",
                    "clnt-recv-fn": "1060706c"
                  },
                  {
                    "clnt-name": "igmp",
                    "clnt-uuid": 286,
                    "clnt-pid": 30617,
                    "clnt-ext-pid": 30617,
                    "clnt-proto": 2,
                    "clnt-ind": 5,
                    "clnt-cntxt-id": 65535,
                    "clnt-mts-sap": 5247,
                    "clnt-flg": "3",
                    "clnt-msg-succ-cnt": 0,
                    "clnt-msg-fail-cnt": 0
                  },
                  {
                    "clnt-name": "tcpudp",
                    "clnt-uuid": 545,
                    "clnt-pid": 29090,
                    "clnt-ext-pid": 29090,
                    "clnt-proto": 2,
                    "clnt-ind": 7,
                    "clnt-cntxt-id": 65535,
                    "clnt-mts-sap": 4448,
                    "clnt-flg": "1",
                    "clnt-msg-succ-cnt": 0,
                    "clnt-msg-fail-cnt": 0,
                    "clnt-recv-fn-name": "tcp_process_ip_data_msg",
                    "clnt-recv-fn": "1060706c"
                  },
                  {
                    "clnt-name": "pktmgr",
                    "clnt-uuid": 263,
                    "clnt-pid": 29076,
                    "clnt-ext-pid": 29076,
                    "clnt-proto": 4,
                    "clnt-ind": 1,
                    "clnt-cntxt-id": 65535,
                    "clnt-mts-sap": 250,
                    "clnt-flg": "7",
                    "clnt-msg-succ-cnt": 0,
                    "clnt-msg-fail-cnt": 0
                  },
                  {
                    "clnt-name": "tcpudp",
                    "clnt-uuid": 545,
                    "clnt-pid": 29090,
                    "clnt-ext-pid": 29090,
                    "clnt-proto": 6,
                    "clnt-ind": 8,
                    "clnt-cntxt-id": 65535,
                    "clnt-mts-sap": 4448,
                    "clnt-flg": "1",
                    "clnt-msg-succ-cnt": 493,
                    "clnt-msg-fail-cnt": 0,
                    "clnt-recv-fn-name": "tcp_process_ip_data_msg",
                    "clnt-recv-fn": "1060706c"
                  },
                  {
                    "clnt-name": "tcpudp",
                    "clnt-uuid": 545,
                    "clnt-pid": 29090,
                    "clnt-ext-pid": 29090,
                    "clnt-proto": 17,
                    "clnt-ind": 9,
                    "clnt-cntxt-id": 65535,
                    "clnt-mts-sap": 4448,
                    "clnt-flg": "1",
                    "clnt-msg-succ-cnt": 6,
                    "clnt-msg-fail-cnt": 0,
                    "clnt-recv-fn-name": "tcp_process_ip_data_msg",
                    "clnt-recv-fn": "1060706c"
                  },
                  {
                    "clnt-name": "pktmgr",
                    "clnt-uuid": 263,
                    "clnt-pid": 29076,
                    "clnt-ext-pid": 29076,
                    "clnt-proto": 41,
                    "clnt-ind": 2,
                    "clnt-cntxt-id": 65535,
                    "clnt-mts-sap": 250,
                    "clnt-flg": "7",
                    "clnt-msg-succ-cnt": 0,
                    "clnt-msg-fail-cnt": 0
                  },
                  {
                    "clnt-name": "pktmgr",
                    "clnt-uuid": 263,
                    "clnt-pid": 29076,
                    "clnt-ext-pid": 29076,
                    "clnt-proto": 47,
                    "clnt-ind": 3,
                    "clnt-cntxt-id": 65535,
                    "clnt-mts-sap": 250,
                    "clnt-flg": "7",
                    "clnt-msg-succ-cnt": 0,
                    "clnt-msg-fail-cnt": 0
                  },
                  {
                    "clnt-name": "tcpudp",
                    "clnt-uuid": 545,
                    "clnt-pid": 29090,
                    "clnt-ext-pid": 29090,
                    "clnt-proto": 112,
                    "clnt-ind": 10,
                    "clnt-cntxt-id": 65535,
                    "clnt-mts-sap": 4448,
                    "clnt-flg": "1",
                    "clnt-msg-succ-cnt": 0,
                    "clnt-msg-fail-cnt": 0,
                    "clnt-recv-fn-name": "tcp_process_ip_data_msg",
                    "clnt-recv-fn": "1060706c"
                  }
                ]
              }
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip client command, see the CLI command reference:

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 ip client

Client: arp, uuid: 268, pid: 29074, extended pid: 29074
  Protocol: (none), client-index: 4, routing VRF id: 65535
  Data MTS-SAP: 280, flags 0x3
  Data messages, send successful: 0, failed: 0

Client: rpm, uuid: 305, pid: 30599, extended pid: 30599
  Protocol: (none), client-index: 11, routing VRF id: 1
  Data MTS-SAP: 0, flags 0x3
  Data messages, send successful: 0, failed: 0

Client: tcpudp, uuid: 545, pid: 29090, extended pid: 29090
  Protocol: 1, client-index: 6, routing VRF id: 65535
  Data MTS-SAP: 4448, flags 0x1
  Data messages, send successful: 1, failed: 0
  Recv fn: tcp_process_ip_data_msg (0x1060706c)

Client: igmp, uuid: 286, pid: 30617, extended pid: 30617
  Protocol: 2, client-index: 5, routing VRF id: 65535
  Data MTS-SAP: 5247, flags 0x3
  Data messages, send successful: 0, failed: 0

Client: tcpudp, uuid: 545, pid: 29090, extended pid: 29090
  Protocol: 2, client-index: 7, routing VRF id: 65535
  Data MTS-SAP: 4448, flags 0x1
  Data messages, send successful: 0, failed: 0
  Recv fn: tcp_process_ip_data_msg (0x1060706c)

Client: pktmgr, uuid: 263, pid: 29076, extended pid: 29076
  Protocol: 4, client-index: 1, routing VRF id: 65535
  Data MTS-SAP: 250, flags 0x7
  Data messages, send successful: 0, failed: 0

Client: tcpudp, uuid: 545, pid: 29090, extended pid: 29090
  Protocol: 6, client-index: 8, routing VRF id: 65535
  Data MTS-SAP: 4448, flags 0x1
  Data messages, send successful: 469, failed: 0
  Recv fn: tcp_process_ip_data_msg (0x1060706c)

Client: tcpudp, uuid: 545, pid: 29090, extended pid: 29090
  Protocol: 17, client-index: 9, routing VRF id: 65535
  Data MTS-SAP: 4448, flags 0x1
  Data messages, send successful: 6, failed: 0
  Recv fn: tcp_process_ip_data_msg (0x1060706c)

Client: pktmgr, uuid: 263, pid: 29076, extended pid: 29076
  Protocol: 41, client-index: 2, routing VRF id: 65535
  Data MTS-SAP: 250, flags 0x7
  Data messages, send successful: 0, failed: 0

Client: pktmgr, uuid: 263, pid: 29076, extended pid: 29076
  Protocol: 47, client-index: 3, routing VRF id: 65535
  Data MTS-SAP: 250, flags 0x7
  Data messages, send successful: 0, failed: 0

Client: tcpudp, uuid: 545, pid: 29090, extended pid: 29090
  Protocol: 112, client-index: 10, routing VRF id: 65535
  Data MTS-SAP: 4448, flags 0x1
  Data messages, send successful: 0, failed: 0
  Recv fn: tcp_process_ip_data_msg (0x1060706c)

show ip community-list bal-local-primary-exp

show ip community-list bal-local-primary-exp

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip community-list bal-local-primary-exp ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "TABLE_cl": {
    "ROW_cl": [
      {
        "name": "bal-local-primary-exp", 
        "action": "permit", 
        "rule": "64642:10300"
      }, 
      {
        "name": "bal-local-primary-exp", 
        "action": "permit", 
        "rule": "64643:10300"
      }, 
      {
        "name": "bal-local-primary-exp", 
        "action": "permit", 
        "rule": "64639:10300"
      }
    ]
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip community-list bal-local-primary-exp command, see the CLI command reference:

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 ip community-list bal-local-primary-exp
Expanded Community List bal-local-primary-exp
    permit "64642:10300"
    permit "64643:10300"
    permit "64639:10300"




show ip community-list

show ip community-list

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip community-list  ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "TABLE_cl": {
    "ROW_cl": [
      {
        "name": "bal-local-primary-exp", 
        "action": "permit", 
        "rule": "64642:10300"
      }, 
      {
        "name": "bal-local-primary-exp", 
        "action": "permit", 
        "rule": "64643:10300"
      }, 
      {
        "name": "bal-local-primary-exp", 
        "action": "permit", 
        "rule": "64639:10300"
      }, 
      {
        "name": "comm_eg", 
        "action": "permit", 
        "rule": "1:1 1:2 1:3 1:4 1:5 1:6 1:7 1:8 1:9"
      }
    ]
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip community-list command, see the CLI command reference:

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 ip community-list 
Expanded Community List bal-local-primary-exp
    permit "64642:10300"
    permit "64643:10300"
    permit "64639:10300"
Standard Community List comm_eg
    permit 1:1 1:2 1:3 1:4 1:5 1:6 1:7 1:8 1:9 


show ip dns source-interface

show ip dns source-interface

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip dns source-interface",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip dns source-interface",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_ipdnsvrf": {
            "ROW_ipdnsvrf": [
              {
                "vrfname": "management",
                "ifname": "mgmt0"
              },
              {
                "vrfname": "default",
                "ifname": "Ethernet1/1"
              },
              {
                "vrfname": "test",
                "ifname": "loopback100"
              }
            ]
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip dns source-interface command, see the CLI command reference:

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 ip dns source-interface
VRF Name                                 Interface
management                               mgmt0
default                                  Ethernet1/1
test                                     loopback100













show ip dns source-interface vrf management

show ip dns source-interface  vrf management

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip dns source-interface  vrf management",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip dns source-interface  vrf managemen",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_ipdnsvrf": {
            "ROW_ipdnsvrf": {
              "vrfname": "management",
              "ifname": "mgmt0"
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip dns source-interface vrf management command, see the CLI command reference:

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 ip dns source-interface  vrf management
VRF Name                                 Interface
management                               mgmt0











show ip extcommunity-list

show ip extcommunity-list

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip extcommunity-list ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "TABLE_extcl": {
    "ROW_extcl": [
      {
        "name": "extcomm1"
      }, 
      {
        "name": "extcomm2"
      }
    ]
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip extcommunity-list command, see the CLI command reference:

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 ip extcommunity-list 
Expanded Extended Community List extcomm1
    permit "100:1"
Expanded Extended Community List extcomm2
    deny "200:1"


show ip extcommunity-list extcomm1

show ip extcommunity-list extcomm1

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip extcommunity-list extcomm1 ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "TABLE_extcl": {
    "ROW_extcl": {
      "name": "extcomm1"
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip extcommunity-list extcomm1 command, see the CLI command reference:

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 ip extcommunity-list extcomm1
Expanded Extended Community List extcomm1
    permit "100:1"


show ip int br vrf all

show ip int br vrf all

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip int br vrf all",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": " show ip int br vrf all",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_intf": {
            "ROW_intf": {
              "vrf-name-out": "management",
              "intf-name": "mgmt0",
              "proto-state": "up",
              "link-state": "up",
              "admin-state": "up",
              "iod": 2,
              "prefix": "10.105.194.176",
              "ip-disabled": "FALSE"
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip int br vrf all command, see the CLI command reference:

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 ip int br vrf all

IP Interface Status for VRF "default"(1)
Interface            IP Address      Interface Status

IP Interface Status for VRF "management"(2)
Interface            IP Address      Interface Status
mgmt0                10.105.194.176  protocol-up/link-up/admin-up

show ip load-sharing

show ip load-sharing

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip load-sharing ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": " show ip load-sharing ",
        "msg": "Success",
        "code": "200",
        "body": {
          "univer-id-ran-seed": 2160302253,
          "l34-msg-load": "address source-destination port source-destination",
          "gre-outer-hash": "disabled",
          "concatenation": "disabled",
          "rotate": 32
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip load-sharing command, see the CLI command reference:

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 ip load-sharing 
IPv4/IPv6 ECMP load sharing:
Universal-id (Random Seed): 2160302253
Load-share mode : address source-destination port source-destination
GRE-Outer hash is disabled
Concatenation is disabled
Rotate: 32



show ip policy vrf all

show ip policy vrf all

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip policy vrf all ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "TABLE_pbr": {
    "ROW_pbr": {
      "interface": "Ethernet4/36", 
      "rmap": "test_pol1", 
      "status": "Inactive", 
      "vrf_name": "--"
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip policy vrf all command, see the CLI command reference:

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 ip policy vrf all
Interface                 Route-map            Status     VRF-Name
Ethernet4/36              test_pol1            Inactive     --

show ip prefix-list

show ip prefix-list

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip prefix-list",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "TABLE_ip_pfl": {
        "ROW_ip_pfl": [{
                "name": "pfx1",
                "seq": "1",
                "action": "permit",
                "rule": "1.1.1.0/24"
            }, {
                "name": "pfx2",
                "seq": "1",
                "action": "deny",
                "rule": "10.1.1.0/24"
            }
        ]
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip prefix-list command, see the CLI command reference:

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 ip prefix-list
ip prefix-list pfx1: 1 entries
   seq 1 permit 1.1.1.0/24
ip prefix-list pfx2: 1 entries
   seq 1 deny 10.1.1.0/24





show ip prefix-list pfx1 seq 1

show ip prefix-list pfx1 seq 1

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip prefix-list pfx1 seq 1",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "TABLE_ip_pfl": {
        "ROW_ip_pfl": [{
                "name": "pfx1",
                "seq": "1",
                "action": "permit",
                "rule": "1.1.1.0/24"
            }
        ]
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip prefix-list pfx1 seq 1 command, see the CLI command reference:

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 ip prefix-list pfx1 seq 1
   seq 1 permit 1.1.1.0/24





show ip process

show ip process

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip process ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": " show ip process",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_ip_pro_vrf": {
            "ROW_ip_pro_vrf": {
              "pro-cntxt-name": "default",
              "pro-cntxt-id": 1,
              "pro-base-tid": 1,
              "pro-auto-disc": "disabled",
              "pro-atuo-add": "not",
              "pro-null-bcast": "",
              "auto-punt-bcast": "",
              "static-disc": "not",
              "static-def-route": 0,
              "ip-unreach": 0
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip process command, see the CLI command reference:

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 ip process 
VRF default
  VRF id is 1
  Base table id is 1
  Auto discard is disabled
  Auto discard is not added
  Auto Null broadcast is configured
  Auto Punt broadcast is configured
  Static discard is not configured
  Number of static default route configured is 0
  Number of ip unreachable configured is 0
  Iodlist: 
  Local address list: 


show ip sla application

show ip sla application

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla application ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "version": "2.2.0 Round Trip Time MIB,
    Infrastructure Engine - III",
    "type - name": "icmpEcho,
    udpEcho,
    tcpConnect,
    http,
    dns,
    udpJitter",
    "feature - name":"",
    "lowmemorymark": 112978403,
    "max - entries": 82747,
    "probe - cap": 82735,
    "entries - config": 12,
    "entries - active": 0,
    "entries - pending": 0,
    "entries - inactive": 12,
    "last - change - time": "15: 46: 50 IST Thu Aug 09 2018 \ n",
    "rttMonApplReset": 1
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla application command, see the CLI command reference:

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 ip sla application 

        IP Service Level Agreements
Version: Round Trip Time MIB 2.2.0, Infrastructure Engine-III

Supported Operation Types:
        icmpEcho, udpEcho, tcpConnect, http, dns, udpJitter

Supported Features:

IP SLAs low memory water mark: 0
Estimated system max number of entries: 82747

Estimated number of configurable operations: 82735
Number of Entries configured  : 12
Number of active Entries      : 0
Number of pending Entries     : 0
Number of inactive Entries    : 12
Time of last change in whole IP SLAs: 15:46:50 IST Thu Aug 09 2018"

show ip sla configuration 1

show ip sla configuration 1

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla configuration 1",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "TABLE_configuration": {
        "ROW_configuration": [{
                "index": 1,
                "owner":"",
                "tag":"",
                "timeout": 5000,
                "oper - type": "udp - jitter",
                "dest - ip": "10.104.99.185",
                "source - ip": "0.0.0.0",
                "dest - port": 23456,
                "source - port": 0,
                "traffic - class": 0,
                "tos": 0,
                "switch  - id": 0, "profile - id": 0, "interface":"", "packet - size": 32, "packet - interval": 20, "num - packets": 10, "verify - data": "disabled", "vrf - name": "management", "control - enabled": "enabled", "frequency": 60, "next - start - time": "Pending trigger \ n", "group - scheduled": "disabled", "randomly - scheduled": "disable
                d", "life": 3600000, "ageout": 0, "recurring": "disabled", "status - of - entry": "notInService", "threshold": 5000, "hours": 2, "buckets": 1, "interval": "Statistic distribution interval(milliseconds)
                    : 20 \ n"
            }
        ]
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla configuration 1 command, see the CLI command reference:

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 ip sla configuration 1
IP SLAs Infrastructure Engine-III
Entry number: 1
Owner: 
Tag: 
Operation timeout (milliseconds): 5000
Type of operation to perform: udp-jitter
Target address/Source address: 10.104.99.185/0.0.0.0
Target port/Source port: 23456/0
Traffic-Class parameter: 0x0
Type Of Service parameter: 0x0
Switch ID: 0
Profile ID: 0
Interface: 
Request size (ARR data portion): 32
Packet Interval (milliseconds)/Number of packets: 20/10
Verify data: No
Vrf Name: management
Control Packets: enabled
Schedule:
   Operation frequency (seconds): 60  (not considered if randomly scheduled)
   Next Scheduled Start Time: Pending trigger
   Group Scheduled : FALSE
   Randomly Scheduled : FALSE
   Life (seconds): 3600
   Entry Ageout (seconds): never
   Recurring (Starting Everyday): FALSE
   Status of entry (SNMP RowStatus): notInService
Threshold (milliseconds): 5000
Distribution Statistics:
   Number of statistic hours kept: 2
   Number of statistic distribution buckets kept: 1
   Statistic distribution interval (milliseconds): 20"

show ip sla enhanced-history Collection-statistics 11 interval 1

show ip sla enhanced-history Collection-statistics 11 interval 1

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla enhanced-history Collection-statistics 11 interval 1",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "TABLE_generic": {
        "ROW_generic": [{
                "entry - num": 1920233029,
                "aggregate - interval": "Aggregation Interval: 1 \ n",
                "TABLE_bkt": {
                    "ROW_bkt": [{
                            "bkt - index": "Bucket Index: 1 \ n",
                            "agg - sti": "Aggregation start time 11: 42: 31 IST Mon Aug 13 2018 \ n",
                            "tgt - addr": "100.100.100.100",
                            "nofod": "Number of failed operations due to a Disconnect: 0 \ n",
                            "nofot": "Number of failed operations due to a Timeout: 0 \ n",
                            "nofob": "Number of failed operations due to a Busy: 0 \ n",
                            "nofonc": "Number of failed operations due to a No Connection: 0 \ n",
                            "nofoi
                            e": "Number of failed operations due to an Internal Error: 0 \ n",
                            "nofose": "Number of failed operations due to a Sequence Error: 0 \ n",
                            "nofove": "Number of failed operations due to a Verify Error: 0 \ n"
                        }
                    ]
                }
            }
        ]
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla enhanced-history Collection-statistics 11 interval 1 command, see the CLI command reference:

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 ip sla enhanced-history Collection-statistics 11 interval 1
Entry number: 11
Aggregation Interval: 1
Bucket Index: 1
Aggregation start time 11:41:55 IST Mon Aug 13 2018
Target Address: 100.100.100.100
Number of failed operations due to a Disconnect: 0
Number of failed operations due to a Timeout: 0
Number of failed operations due to a Busy: 0
Number of failed operations due to a No Connection: 0
Number of failed operations due to an Internal Error: 0
Number of failed operations due to a Sequence Error: 0
Number of failed operations due to a Verify Error: 0"

show ip sla enhanced-history distribution-statistics 11 interval 1

show ip sla enhanced-history distribution-statistics 11 interval 1

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla enhanced-history distribution-statistics 11 interval 1",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "hdr": "Point by point Enhanced History \ nEntry = Entry Number \ nInt = Aggregation Interval \ nBucI = Bucket Index \ nStartT = Aggregation Start Time \ nPth = Path index \ nHop = Hop in path index \ nComps = Operations completed \ nOvrTh = Operations completed over thresholds \ nSumCmp = Sum of RTT(milliseconds) \ nSumCmp2L = Sum of RTT squared low 32 bits(milliseconds) \ nSumCmp2H = Sum of RTT squared high 32 bits(milliseconds) \ nTMax = RTT maximum(milliseconds) \ nTMin = RTT minimum
        (milliseconds) \ n \ nEntry Int BucI StartT Pth Hop Comps OvrTh SumCmp SumCmp2L SumCmp2H TMax TMin \ n",
    "TABLE_generic": {
        "ROW_generic": [{
                "col1": "11 1 1 331123635",
                "col2": "1 1 1 0 1 1 0 1",
                "col3": "1"
            }
        ]
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla enhanced-history distribution-statistics 11 interval 1 command, see the CLI command reference:

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 ip sla enhanced-history distribution-statistics 11 interval 1
Point by point Enhanced History
Entry    = Entry Number
Int      = Aggregation Interval
BucI     = Bucket Index
StartT   = Aggregation Start Time
Pth      = Path index
Hop      = Hop in path index
Comps    = Operations completed
OvrTh    = Operations completed over thresholds
SumCmp   = Sum of RTT (milliseconds)
SumCmp2L = Sum of RTT squared low 32 bits (milliseconds)
SumCmp2H = Sum of RTT squared high 32 bits (milliseconds)
TMax     = RTT maximum (milliseconds)
TMin     = RTT minimum (milliseconds)

Entry      Int BucI StartT     Pth Hop Comps OvrTh SumCmp     SumCmp2L   SumCmp2H   TMax    TMin
11 1 1 331082635 1 1 1 0 1 1 0 1 1 "

show ip sla group schedule

show ip sla group schedule

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla group schedule ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "entry - number": 1,
    "probe - list": "11 - 12",
    "num - probes": 2,
    "sched - period": 5,
    "mode": "disabled",
    "freq": 0,
    "snmp - status": "Active",
    "next - start - time": "Start Time already passed \ n",
    "life": 3600000,
    "ageout": 0
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla group schedule command, see the CLI command reference:

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 ip sla group schedule 
Group Entry Number : 1
Probes to be scheduled: 11-12
Total number of probes: 2
Schedule period: 5
Mode: even
Group operation frequency: Equals schedule period
Status of entry (SNMP RowStatus): Active
Next Scheduled Start Time: Start Time already passed
Life (seconds): 3600
Entry Ageout (seconds): never"

show ip sla history 11 tabular

show ip sla history 11 tabular

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla history 11 tabular ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "outstring": "Point by point History \ nEntry = Entry number \ nLifeI = Life index \ nBucketI = Bucket index \ nSampleI = Sample index \ nSampleT = Sample start time(milliseconds) \ nCompT = RTT(milliseconds) \ nSense = Response return code \ n \ nEntry LifeI BucketI SampleI SampleT CompT Sense TargetAddr \ n"
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla history 11 tabular command, see the CLI command reference:

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 ip sla history 11 tabular 
Point by point History
Entry    = Entry number
LifeI    = Life index
BucketI  = Bucket index
SampleI  = Sample index
SampleT  = Sample start time (milliseconds)
CompT    = RTT (milliseconds)
Sense    = Response return code

Entry      LifeI      BucketI    SampleI    SampleT    CompT      Sense      TargetAddr"

show ip sla history 11 full

show ip sla history 11 full

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla history 11 full ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "outstring": "Point by point History \ nEntry = Entry number \ nLifeI = Life index \ nBucketI = Bucket index \ nSampleI = Sample index \ nSampleT = Sample start time(milliseconds) \ nCompT = RTT(milliseconds) \ nSense = Response return code \ n \ nEntry LifeI BucketI SampleI SampleT CompT Sense TargetAddr \ n"
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla history 11 full command, see the CLI command reference:

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 ip sla history 11 full 
Point by point History
Entry    = Entry number
LifeI    = Life index
BucketI  = Bucket index
SampleI  = Sample index
SampleT  = Sample start time (milliseconds)
CompT    = RTT (milliseconds)
Sense    = Response return code

Entry      LifeI      BucketI    SampleI    SampleT    CompT      Sense      TargetAddr"

show ip sla history 11 interval-statistics

show ip sla history 11 interval-statistics

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla history 11 interval-statistics ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "outstring": "Point by point History \ nEntry = Entry number \ nLifeI = Life index \ nBucketI = Bucket index \ nSampleI = Sample index \ nSampleT = Sample start time(milliseconds) \ nCompT = RTT(milliseconds) \ nSense = Response return code \ n \ nEntry LifeI BucketI SampleI SampleT CompT Sense TargetAddr \ n"
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla history 11 interval-statistics command, see the CLI command reference:

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 ip sla history 11 interval-statistics 
Point by point History
Entry    = Entry number
LifeI    = Life index
BucketI  = Bucket index
SampleI  = Sample index
SampleT  = Sample start time (milliseconds)
CompT    = RTT (milliseconds)
Sense    = Response return code

Entry      LifeI      BucketI    SampleI    SampleT    CompT      Sense      TargetAddr"

show ip sla reaction-configuration 11

show ip sla reaction-configuration 11

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla reaction-configuration 11",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "TABLE_reaction": {
        "ROW_reaction": [{
                "entry - number": 11,
                "index": 1,
                "reaction": "rtt",
                "threshold - type": "Never",
                "rising - value": 5000,
                "falling - value": 3000,
                "action - type": "None"
            }
        ]
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla reaction-configuration 11 command, see the CLI command reference:

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 ip sla reaction-configuration 11
Entry number: 11
Index: 1
Reaction: rtt
Threshold Type: Never
Rising (milliseconds): 5000
Falling (milliseconds): 3000
Action Type: None"

show ip sla reaction-trigger 11

show ip sla reaction-trigger 11

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla reaction-trigger 11 ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "TABLE_trigger": {
        "ROW_trigger": [{
                "entry - number": 11,
                "target - entry": 100,
                "snmp - status": "active",
                "operational - state": "pending"
            }
        ]
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla reaction-trigger 11 command, see the CLI command reference:

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 ip sla reaction-trigger 11 
Entry number: 11
Target Entry Number: 100
Status of Entry (SNMP RowStatus): active
Operational State: pending"

show ip sla responder

show ip sla responder

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla responder ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "rttMonApplResponder": "true",
    "gen-enabled": "enabled",
    "ctrl-msg-count": 5853277,
    "errors": 0,
    "TABLE_recent": {
        "ROW_recent": [{
                "print-recent-hdr": "enabled",
                "recent-addr": "6.6.6.1",
                "recent-time": "11:21:03 IST Mon Aug 13 2018\n",
                "recent-addr": "6.6.6.1",
                "recent-time": "11:21:03 IST Mon Aug 13 2018\n",
                "recent-addr": "6.6.6.1",
                "recent-time": "11:21:03 IST Mon Aug 13 2018\n",
                "recent-addr": "6.6.6.1",
                "recent-time": "11:21:03 IST Mon Aug 13 2018\n",
                "recent-addr": "6.6.6.1",
                "recent-time": "11:21:03 IST Mon Aug 13 2018\n",
                "print
                -recent-err-hdr": "enabled"
            }
        ]
    },
    "perm-enabled": "disabled"
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla responder command, see the CLI command reference:

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 ip sla responder 

        General IP SLA Responder on Control port 1967
General IP SLA Responder is: Enabled
Number of control message received: 5852478 Number of errors: 0
Recent sources:
        6.6.6.1 [11:20:14 IST Mon Aug 13 2018]
        6.6.6.1 [11:20:14 IST Mon Aug 13 2018]
        6.6.6.1 [11:20:14 IST Mon Aug 13 2018]
        6.6.6.1 [11:20:14 IST Mon Aug 13 2018]
        6.6.6.1 [11:20:14 IST Mon Aug 13 2018]
Recent error sources:

        Permanent Port IP SLA Responder
Permanent Port IP SLA Responder is: Disabled"

show ip sla statistics aggregated 11

show ip sla statistics aggregated 11

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla statistics aggregated 11 ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "print_type": 25,
    "TABLE_stats": {
        "ROW_stats": [{
                "index": 11,
                "top": "Type of operation: icmp - echo \ n",
                "TABLE_detail": {
                    "ROW_detail": [{
                            "sti": "Start Time Index: 11: 58: 05 IST Mon Aug 13 2018 \ n \ n",
                            "rtt - count": 308,
                            "rtt - min": 1,
                            "rtt - avg": 1,
                            "micro - accuracy": "disabled",
                            "nano - accuracy": "disabled",
                            "rtt - max": 2,
                            "outstring1": "Number of successes: 308 \ n",
                            "outstring2": "Number of failures: 0 \ n"
                        }
                    ]
                }
            }
        ]
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla statistics aggregated 11 command, see the CLI command reference:

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 ip sla statistics aggregated 11 

IPSLAs aggregated statistics

IPSLA operation id: 11
Type of operation: icmp-echo
RTT Values: 
        Number Of RTT: 270              RTT Min/Avg/Max: 1/1/2 milliseconds
Number of successes: 270
Number of failures: 0"

show ip sla statistics aggregated 11 details

show ip sla statistics aggregated 11 details

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip sla statistics aggregated 11 details ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "print_type": 26,
    "TABLE_stats": {
        "ROW_stats": [{
                "index": 11,
                "top": "Type of operation: icmp - echo \ n",
                "TABLE_detail": {
                    "ROW_detail": [{
                            "sti": "Start Time Index: 11: 58: 05 IST Mon Aug 13 2018 \ n \ n",
                            "rtt - count": 365,
                            "rtt - min": 1,
                            "rtt - avg": 1,
                            "micro - accuracy": "disabled",
                            "nano - accuracy": "disabled",
                            "rtt - max": 2,
                            "nos": "Number of successes: 365 \ n",
                            "nof": "Number of failures: 0 \ n",
                            "noot": "Number of over thresholds: 0 \ n",
                            "nofo1": "Failed Operations due to Disconnect / TimeOut / Busy / No Connection:",
                            "nofo2": "Failed Operations due to In
                            ternal / Sequence / Verify Error:",
                            "TABLE_br": {
                                "ROW_br": [{
                                        "br": "Bucket Range: 0 to < 1000ms \ n",
                                        "avg - lat": "Avg.Latency: 1 ms \ n",
                                        "potc": "Percent of Total Completions for this Range: 100 %  \ n",
                                        "noc - by - lat": "Number of Completions / Sum of Latency: 365 / 367 \ n",
                                        "sortthigh - by - low": "Sum of RTT squared low 32 Bits / Sum of RTT squared high 32 Bits: 371 / 0 \ n",
                                        "operot": "Operations completed over thresholds: 0 \ n \ n"
                                    }
                                ]
                            }
                        }
                    ]
                }
            }
        ]
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip sla statistics aggregated 11 details command, see the CLI command reference:

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 ip sla statistics aggregated 11 details 

IPSLAs aggregated statistics

IPSLA operation id: 11
Type of operation: icmp-echo
RTT Values: 
        Number Of RTT: 326              RTT Min/Avg/Max: 1/1/2 milliseconds
Number of successes: 326
Number of failures: 0
Number of over thresholds: 0
Failed Operations due to Disconnect/TimeOut/Busy/No Connection: Failed Operations due to Internal/Sequence/Verify Error: Distribution Statistics:
Bucket Range: 0 to < 1000ms
Avg. Latency: 1 ms
Percent of Total Completions for this Range: 100 % 
Number of Completions/Sum of Latency: 326/328 
Sum of RTT squared low 32 Bits/Sum of RTT squared high 32 Bits: 332/0
Operations completed over thresholds: 0"

show ip static-route vrf all

show ip static-route vrf all

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip static-route vrf all",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip static-route vrf all",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_vrf_all": {
            "ROW_vrf_all": {
              "cntxt_name": "management",
              "cntxt_id": 2,
              "TABLE_each_vrf": {
                "ROW_each_vrf": {
                  "prefix_addr_msk": "0.0.0.0/0",
                  "nhop_addr_msk": "10.105.194.129/32",
                  "nhop_vrf_info": "",
                  "nhop_intr_info": "",
                  "urib_stat": "    (installed in urib)",
                  "nhop_urib_stat": "    rnh(installed in urib)"
                }
              }
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip static-route vrf all command, see the CLI command reference:

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 ip static-route vrf all

Static-route for VRF "management"(2)
IPv4 Unicast Static Routes:
  0.0.0.0/0, configured nh: 10.105.194.129/32
    (installed in urib)
    rnh(installed in urib)


show ip telnet source-interface

show ip telnet source-interface

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip telnet source-interface",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": " show ip telnet source-interface",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_iptelnetvrf": {
            "ROW_iptelnetvrf": [
              {
                "vrfname": "management",
                "ifname": "mgmt0"
              },
              {
                "vrfname": "default",
                "ifname": "Ethernet1/1"
              },
              {
                "vrfname": "test",
                "ifname": "loopback100"
              }
            ]
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip telnet source-interface command, see the CLI command reference:

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 ip telnet source-interface
VRF Name                                 Interface
management                               mgmt0
default                                  Ethernet1/1
test                                     loopback100














show ip telnet source-interface vr default

show ip telnet source-interface  vr default

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip telnet source-interface  vr default",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip telnet source-interface  vr default",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_iptelnetvrf": {
            "ROW_iptelnetvrf": {
              "vrfname": "default",
              "ifname": "Ethernet1/1"
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip telnet source-interface vr default command, see the CLI command reference:

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 ip telnet source-interface  vr default
VRF Name                                 Interface
default                                  Ethernet1/1









show ip tftp source-interface

show ip tftp source-interface

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip tftp source-interface",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": " show ip tftp source-interface",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_iptftpvrf": {
            "ROW_iptftpvrf": [
              {
                "vrfname": "management",
                "ifname": "mgmt0"
              },
              {
                "vrfname": "default",
                "ifname": "Ethernet1/1"
              },
              {
                "vrfname": "test",
                "ifname": "loopback100"
              }
            ]
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip tftp source-interface command, see the CLI command reference:

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 ip tftp source-interface
VRF Name                                 Interface
management                               mgmt0
default                                  Ethernet1/1
test                                     loopback100













show ip traffic

show ip traffic

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip traffic ",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show ip traffic",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_icmp_software_proc_traffic": {
            "ROW_icmp_software_proc_traffic": {
              "TABLE_stat_last_never": {
                "ROW_stat_last_never": {
                  "stat-last-never": "never"
                }
              },
              "TABLE_transmission": {
                "ROW_transmission": {
                  "tx-redir": 0,
                  "tx-unreach": 0,
                  "tx-echo-req": 0,
                  "tx-echo-reply": 3,
                  "tx-mask-req": 0,
                  "tx-mask-rep": 0,
                  "tx-info-req": 0,
                  "tx-info-reply": 0,
                  "tx-param-prob": 0,
                  "tx-source-quench": 0,
                  "tx-tstamp-req": 0,
                  "tx-tstamp-reply": 0,
                  "tx-time-exceeded": 0,
                  "tx-router-solicit": 0,
                  "tx-router-advert": 0,
                  "out-drop-badlen": 0,
                  "encap-fail": 0,
                  "xmit-fail": 0,
                  "icmp-orginate": 1,
                  "redirect-orginate-req": 0,
                  "orginate-deny": 0,
                  "short-ip": 0,
                  "old-icmp": 0,
                  "error-drop": 0
                }
              },
              "TABLE_reception": {
                "ROW_reception": {
                  "rx-redir": 0,
                  "rx-unreach": 0,
                  "rx-echo-req": 3,
                  "rx-echo-reply": 0,
                  "rx-mask-req": 0,
                  "rx-mask-rep": 0,
                  "rx-info-req": 0,
                  "rx-info-reply": 0,
                  "rx-param-prob": 0,
                  "rx-source-quench": 0,
                  "rx-tstamp-req": 0,
                  "rx-tstamp-reply": 0,
                  "rx-time-exceeded": 0,
                  "rx-router-solicit": 0,
                  "rx-router-advert": 0,
                  "rx-format-errors": 0,
                  "rx-csum-errors": 0,
                  "lisp-processed": 0,
                  "lisp-noclient": 0,
                  "lisp-consumed": 1,
                  "icmp-replies": 6,
                  "icmp-reply-drop": 0,
                  "icmp-inactive-addr": 0
                }
              }
            }
          },
          "TABLE_rfc4293_ip_soft_proc_traffic": {
            "ROW_rfc4293_ip_soft_proc_traffic": {
              "TABLE_rfc_reception": {
                "ROW_rfc_reception": {
                  "inrcv": 217912,
                  "inoctet": 16390448,
                  "inhdrerr": 0,
                  "innoroutes": 0,
                  "inaddrerr": 0,
                  "innoproto": 0,
                  "intruncated": 0,
                  "inforw": 11815,
                  "reasmreqds": 0,
                  "reasmoks": 0,
                  "reasmfails": 0,
                  "indiscards": 0,
                  "indelivers": 634,
                  "inmcastpkts": 205464,
                  "inmcastbytes": 15040415,
                  "inbastpkts": 11815
                }
              },
              "TABLE_rfc_transmission": {
                "ROW_rfc_transmission": {
                  "out-req": 2598,
                  "out-no-route": 0,
                  "out-forwdgrams": 0,
                  "out-discards": 0,
                  "out-frag-req": 0,
                  "out-frag-oks": 0,
                  "out-frag-fails": 0,
                  "out-frag-create": 0,
                  "out-transmits": 2597,
                  "byte-sent": 1427865,
                  "out-mcast-pkts": 0,
                  "out-mcast-bytes": 0,
                  "out-bcast-pkts": 0,
                  "out-bcast-bytes": 0
                }
              }
            }
          },
          "TABLE_vrf": {
            "ROW_vrf": {
              "vrf-name-out": "default"
            }
          },
          "TABLE_ip_soft_processed_traffic": {
            "ROW_ip_soft_processed_traffic": {
              "TABLE_fragment": {
                "ROW_fragment": {
                  "frag": 0,
                  "fragmented": 0,
                  "out-frag": 0,
                  "frag-drop": 0,
                  "cant-frag": 0,
                  "reasm": 0,
                  "frag-to": 0
                }
              },
              "TABLE_trans_and_reception": {
                "ROW_trans_and_reception": {
                  "rcvd": 217912,
                  "sent": 2597,
                  "consumed": 633,
                  "fwd-ucast": 0,
                  "fwd-mcast": 0,
                  "fwd-label": 0,
                  "ingress-mcecfrwd": 0
                }
              },
              "TABLE_opts": {
                "ROW_opts": {
                  "opts-end": 0,
                  "opts-nop": 0,
                  "opts-bsec": 0,
                  "opts-loosesrc-route": 0,
                  "opts-timestamp": 0,
                  "opts-esec": 0,
                  "opts-record-route": 0,
                  "opts-strsrc-route": 0,
                  "opts-alert": 0,
                  "opts-other": 0
                }
              },
              "TABLE_errors": {
                "ROW_errors": {
                  "bad-csum": 0,
                  "too-small": 0,
                  "bad-ver": 0,
                  "bad-hlen": 0,
                  "bad-len": 0,
                  "bad-dest": 0,
                  "bad-ttl": 0,
                  "cant-fwd": 11815,
                  "out-drop": 0,
                  "bad-encap": 1,
                  "no-route": 0,
                  "no-proto": 0,
                  "bad-options": 0,
                  "vinci": 0,
                  "snoop": 0,
                  "svi": 0,
                  "restart-recovery": 0,
                  "mbuf-fail": 0,
                  "bad-context": 0,
                  "rpf-drops": 0,
                  "bad-gw-mac": 0,
                  "ing-ips-option-fail": 0,
                  "nat-in-drop": 0,
                  "nat-out-drop": 0,
                  "ing-option-proc-fail": 0,
                  "ing-mfrwd-fail": 205464,
                  "ing-lisp-drop": 0,
                  "ing-lisp-decap-drop": 0,
                  "ing-lisp-encap-drop": 0,
                  "ing-lisp-encap": 0,
                  "ing-mfwd-copy-drop": 0,
                  "ing-ra-reass-drop": 0,
                  "ing-icmp-redirect": 0,
                  "ing-drop-ifmgr-init": 0,
                  "ing-drop-invld-filter": 0,
                  "ing-drop-invld-l2-msg": 0,
                  "ingress": 0,
                  "egrees": 0,
                  "directed_bdcast": 0
                }
              }
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip traffic command, see the CLI command reference:

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 ip traffic
default
IP Software Processed Traffic Statistics
----------------------------------------
Transmission and reception:
  Packets received: 217833, sent: 2572, consumed: 614,
  Forwarded, unicast: 0, multicast: 0, Label: 0
  Ingress mcec forward: 0
Opts:
  end: 0, nop: 0, basic security: 0, loose source route: 0
  timestamp: 0, ext. security: 0, record route: 0
  strict source route: 0, alert: 0, 
  other: 0
Errors:
  Bad checksum: 0, packet too small: 0, bad version: 0,
  Bad header length: 0, bad packet length: 0, bad destination: 0,
  Bad ttl: 0, could not forward: 11815, no buffer dropped: 0,
  Bad encapsulation: 1, no route: 0, non-existent protocol: 0
  Bad options: 0
  Vinci Migration Packets : 0
   Total packet snooped : 0
   Total packet on down svi : 0
   Stateful Restart Recovery: 0,  MBUF pull up fail: 0
  Bad context id: 0, rpf drops: 0 Bad GW MAC 0
  Ingress option processing failed: 0
  NAT inside drop: 0, NAT outside drop: 0
  Ingress option processing failed: 0  Ingress mforward failed: 205404
  Ingress lisp drop: 0
  Ingress lisp decap drop: 0
  Ingress lisp encap drop: 0
  Ingress lisp encap: 0
  Ingress Mfwd copy drop: 0
  Ingress RA/Reass drop: 0
  Ingress ICMP Redirect processing drop: 0
  Ingress Drop (ifmgr init): 0,
  Ingress Drop (invalid filter): 0
  Ingress Drop (Invalid L2 msg): 0
  ACL Filter Drops : 
       Ingress - 0
       Egress -   0
       Directed Broadcast - 0
Fragmentation/reassembly:
  Fragments received: 0, fragments sent: 0, fragments created: 0,
  Fragments dropped: 0, packets with DF: 0, packets reassembled: 0,
  Fragments timed out: 0
Fragments created per protocol

ICMP Software Processed Traffic Statistics
------------------------------------------
Transmission:
  Redirect: 0, unreachable: 0, echo request: 0, echo reply: 3,
  Mask request: 0, mask reply: 0, info request: 0, info reply: 0,
  Parameter problem: 0, source quench: 0, timestamp: 0,
  Timestamp response: 0, time exceeded: 0,
  Irdp solicitation: 0, irdp advertisement: 0
  Output Drops - badlen: 0, encap fail: 0, xmit fail: 0
  ICMP originate Req: 1, Redirects Originate Req: 0
  Originate deny - Resource fail: 0, short ip: 0, icmp: 0, others: 0
Reception:
  Redirect: 0, unreachable: 0, echo request: 3, echo reply: 0,
  Mask request: 0, mask reply: 0, info request: 0, info reply: 0,
  Parameter problem: 0, source quench: 0, timestamp: 0,
  Timestamp response: 0, time exceeded: 0,
  Irdp solicitation: 0, irdp advertisement: 0,
  Format error: 0, checksum error: 0
  Lisp processed: 0, No clients: 0: Consumed: 1
  Replies: 6, Reply drops - bad addr: 0, inactive addr: 0

Statistics last reset: never


RFC 4293: IP Software Processed Traffic Statistics
----------------------------------------
Reception
  Pkts recv: 217833, Bytes recv: 16383836,
   inhdrerrors: 0, innoroutes: 0, inaddrerrors: 0,
   inunknownprotos: 0, intruncatedpkts: 0, inforwdgrams: 11815,
   reasmreqds: 0, reasmoks: 0, reasmfails: 0,
   indiscards: 0, indelivers: 615,
   inmcastpkts: 205404, inmcastbytes: 15035911,
   inbcastpkts: 11815,
Transmission
  outrequests: 2573, outnoroutes: 0, outforwdgrams: 0,
  outdiscards: 0, outfragreqds: 0, outfragoks: 0,
  outfragfails: 0, outfragcreates: 0, outtransmits: 2572,
  bytes sent: 1418131, outmcastpkts: 0, outmcastbytes: 0,
  outbcastpkts: 0, outbcastbytes: 0