IP Adjacency Commands
show ip adjacency
show ip adjacency
import requests
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 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": "sh 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"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
switch# show ip adjacencye | xml
<?xml version="1.0"?>
<ins_api>
  <type>cli_show</type>
  <version>1.2</version>
  <sid>eoc</sid>
  <outputs>
    <output>
      <body>
        <TABLE_vrf>
         <ROW_vrf>
          <vrf-name-out>default</vrf-name-out>
          <TABLE_afi>
           <ROW_afi>
            <afi>ipv4</afi>
            <count>1</count>
            <TABLE_adj>
             <ROW_adj>
              <intf-out>Ethernet3/2</intf-out>
              <ip-addr-out>113.0.1.1</ip-addr-out>
              <mac>18ef.63e7.1dc2</mac>
              <pref>50</pref>
              <owner>arp</owner>
             </ROW_adj>
            </TABLE_adj>
           </ROW_afi>
          </TABLE_afi>
         </ROW_vrf>
        </TABLE_vrf>
       </body>
      <input>sh ip adjacency</input>
      <msg>Success</msg>
      <code>200</code>
    </output>
  </outputs>
</ins_api>                  
For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
| CLI Output | 
|---|
|  | 
show ip adjacency summary
show ip adjacency summary
import requests
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 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": "sh ip adjacency summary",
        "msg": "Success",
        "code": "200",
        "body": {
          "count-static": 0,
          "count-dynamic": 1,
          "count-others": 0,
          "count-throttle": 0,
          "count-total": 1
        }
      }
    }
  }
}
switch# show ip adjacency summary | xml
<?xml version="1.0"?>
<ins_api>
  <type>cli_show</type>
  <version>1.2</version>
  <sid>eoc</sid>
  <outputs>
    <output>
      <body>
        <count-static>0</count-static>
        <count-dynamic>1</count-dynamic>
        <count-others>0</count-others>
        <count-throttle>0</count-throttle>
        <count-total>1</count-total>
       </body>
      <input>sh ip adjacency summary</input>
      <msg>Success</msg>
      <code>200</code>
    </output>
  </outputs>
</ins_api>
For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
| CLI Output | 
|---|
|  | 
show ipv6 adjacency vrf < >
show ipv6 adjacency vrf < >
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ipv6 adjacency vrf vni-51000",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "sh ipv6 adjacency  vrf vni-51000",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_vrf": {
            "ROW_vrf": {
              "vrf-name-out": "vni-51000",
              "TABLE_afi": {
                "ROW_afi": {
                  "afi": "ipv6",
                  "count": 1,
                  "TABLE_adj": {
                    "ROW_adj": {
                      "intf-out": "Bdi410",
                      "ipv6-addr": "41::10",
                      "time-stamp": "00:00:55",
                      "mac": "0000.1110.1410",
                      "pref": 50,
                      "owner": "icmpv6"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
switch# show ipv6 adjacency vrf vni-51000 | xml
<?xml version="1.0"?>
<ins_api>
  <type>cli_show</type>
  <version>1.2</version>
  <sid>eoc</sid>
  <outputs>
    <output>
      <body>
        <TABLE_vrf>
         <ROW_vrf>
          <vrf-name-out>vni-51000</vrf-name-out>
          <TABLE_afi>
           <ROW_afi>
            <afi>ipv6</afi>
            <count>1</count>
            <TABLE_adj>
             <ROW_adj>
              <intf-out>Bdi410</intf-out>
              <ipv6-addr>41::10</ipv6-addr>
              <time-stamp>00:00:40</time-stamp>
              <mac>0000.1110.1410</mac>
              <pref>50</pref>
              <owner>icmpv6</owner>
             </ROW_adj>
            </TABLE_adj>
           </ROW_afi>
          </TABLE_afi>
         </ROW_vrf>
        </TABLE_vrf>
       </body>
      <input>sh ipv6 adjacency  vrf vni-51000</input>
      <msg>Success</msg>
      <code>200</code>
    </output>
  </outputs>
</ins_api>
For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
| CLI Output | 
|---|
|  | 
show ipv6 neighbor vrf < >
show ipv6 neighbor vrf < >
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ipv6 neighbor vrf vni-51000",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "sh ipv6 neighbor vrf vni-51000",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_vrf": {
            "ROW_vrf": {
              "vrf-name-out": "vni-51000",
              "TABLE_afi": {
                "ROW_afi": {
                  "afi": "ipv6",
                  "count": 1,
                  "TABLE_adj": {
                    "ROW_adj": {
                      "intf-out": "Bdi410",
                      "ipv6-addr": "41::10",
                      "time-stamp": "00:02:23",
                      "mac": "0000.1110.1410",
                      "pref": 50,
                      "owner": "icmpv6"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
switch# show ipv6 neighbor vrf vni-51000 | xml
<?xml version="1.0"?>
<ins_api>
  <type>cli_show</type>
  <version>1.2</version>
  <sid>eoc</sid>
  <outputs>
    <output>
      <body>
        <TABLE_vrf>
         <ROW_vrf>
          <vrf-name-out>vni-51000</vrf-name-out>
          <TABLE_afi>
           <ROW_afi>
            <afi>ipv6</afi>
            <count>1</count>
            <TABLE_adj>
             <ROW_adj>
              <intf-out>Bdi410</intf-out>
              <ipv6-addr>41::10</ipv6-addr>
              <time-stamp>00:02:36</time-stamp>
              <mac>0000.1110.1410</mac>
              <pref>50</pref>
              <owner>icmpv6</owner>
             </ROW_adj>
            </TABLE_adj>
           </ROW_afi>
          </TABLE_afi>
         </ROW_vrf>
        </TABLE_vrf>
       </body>
      <input>sh ipv6 neighbor vrf vni-51000</input>
      <msg>Success</msg>
      <code>200</code>
    </output>
  </outputs>
</ins_api>
For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
| CLI Output | 
|---|
|  | 
show ipv6 neighbor statistics vrf < >
show ipv6 neighbor statistics vrf < >
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ipv6 neighbor statistics vrf vni-5100",
  "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": "sh ipv6 neighbor statistics vrf vni-51000",
        "msg": "Success",
        "code": "200",
        "body": {
          "invalid_pkt_cnt": 0,
          "invalid_byte_cnt": 0,
          "global_drop_pkt_cnt": 0,
          "global_drop_byte_cnt": 0,
          "global_punt_pkt_cnt": 6,
          "global_punt_byte_cnt": 668,
          "global_glean_pkt_cnt": 0,
          "global_glean_byte_cnt": 0,
          "glean_pkt_cnt": 0,
          "glean_byte_cnt": 0,
          "normal_pkt_cnt": 0,
          "normal_byte_cnt": 0,
          "last_updated": "00:00:36",
          "TABLE_vrf": {
            "ROW_vrf": {
              "vrf-name-out": "vni-51000",
              "TABLE_afi": {
                "ROW_afi": {
                  "afi": "ipv6",
                  "count": 2,
                  "TABLE_adj": {
                    "ROW_adj": [
                      {
                        "intf-out": "Bdi410",
                        "ipv6-addr": "41::10",
                        "time-stamp": "00:02:41",
                        "mac": "0000.1110.1410",
                        "pref": 50,
                        "owner": "icmpv6",
                        "pkt-count": 0,
                        "byte-count": 0
                      },
                      {
                        "intf-out": "Bdi410",
                        "ipv6-addr": "41::11",
                        "time-stamp": "00:01:56",
                        "mac": "0000.1111.1410",
                        "pref": 50,
                        "owner": "icmpv6",
                        "pkt-count": 0,
                        "byte-count": 0
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
switch# show ipv6 neighbor statistics vrf vni-5100 | xml
<?xml version="1.0"?>
<ins_api>
  <type>cli_show</type>
  <version>1.2</version>
  <sid>eoc</sid>
  <outputs>
    <output>
      <body>
         <invalid_pkt_cnt>0</invalid_pkt_cnt>
         <invalid_byte_cnt>0</invalid_byte_cnt>
         <global_drop_pkt_cnt>0</global_drop_pkt_cnt>
         <global_drop_byte_cnt>0</global_drop_byte_cnt>
         <global_punt_pkt_cnt>6</global_punt_pkt_cnt>
         <global_punt_byte_cnt>668</global_punt_byte_cnt>
         <global_glean_pkt_cnt>0</global_glean_pkt_cnt>
         <global_glean_byte_cnt>0</global_glean_byte_cnt>
         <glean_pkt_cnt>0</glean_pkt_cnt>
         <glean_byte_cnt>0</glean_byte_cnt>
         <normal_pkt_cnt>0</normal_pkt_cnt>
         <normal_byte_cnt>0</normal_byte_cnt>
         <last_updated>00:00:13</last_updated>
         <TABLE_vrf>
          <ROW_vrf>
           <vrf-name-out>vni-51000</vrf-name-out>
           <TABLE_afi>
            <ROW_afi>
             <afi>ipv6</afi>
             <count>2</count>
             <TABLE_adj>
              <ROW_adj>
               <intf-out>Bdi410</intf-out>
               <ipv6-addr>41::10</ipv6-addr>
               <time-stamp>00:02:18</time-stamp>
               <mac>0000.1110.1410</mac>
               <pref>50</pref>
               <owner>icmpv6</owner>
               <pkt-count>0</pkt-count>
               <byte-count>0</byte-count>
              </ROW_adj>
              <ROW_adj>
               <intf-out>Bdi410</intf-out>
               <ipv6-addr>41::11</ipv6-addr>
               <time-stamp>00:01:33</time-stamp>
               <mac>0000.1111.1410</mac>
               <pref>50</pref>
               <owner>icmpv6</owner>
               <pkt-count>0</pkt-count>
               <byte-count>0</byte-count>
              </ROW_adj>
             </TABLE_adj>
            </ROW_afi>
           </TABLE_afi>
          </ROW_vrf>
         </TABLE_vrf>
        </body>
      <input>sh ipv6 neighbor statistics vrf vni-51000</input>
      <msg>Success</msg>
      <code>200</code>
    </output>
  </outputs>
</ins_api>
For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
| CLI Output | 
|---|
|  | 
show ipv6 adjacency summary < >
show ipv6 adjacency summary < >
import requests
import json
 
"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'
 
myheaders={'content-type':'application/json'}
payload={
"ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ipv6 adjacency summary vrf vni-51000",
  "output_format": "json"
}
 
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
  "ins_api": {
    "type": "cli_show",
    "version": "1.2",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": " sh ipv6 adjacency summary  vrf vni-51000",
        "msg": "Success",
        "code": "200",
        "body": {
          "count-static": 0,
          "count-dynamic": 2,
          "count-others": 0,
          "count-throttle": 0,
          "count-total": 2
        }
      }
    }
  }
}
switch# show ipv6 adjacency summary vrf vni-51000 | xml
<?xml version="1.0"?>
<ins_api>
  <type>cli_show</type>
  <version>1.2</version>
  <sid>eoc</sid>
  <outputs>
    <output>
      <body>
         <count-static>0</count-static>
         <count-dynamic>2</count-dynamic>
         <count-others>0</count-others>
         <count-throttle>0</count-throttle>
         <count-total>2</count-total>
        </body>
      <input> sh ipv6 adjacency summary  vrf vni-51000</input>
      <msg>Success</msg>
      <code>200</code>
    </output>
  </outputs>
</ins_api>
For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.
Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
| CLI Output | 
|---|
|  |