show ip arp

show ip arp

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",
  "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": {
        "outputs": {
            "output": {
                "body": {
                    "TABLE_vrf": {
                        "ROW_vrf": {
                            "TABLE_adj": {
                                "ROW_adj": [
                                    {
                                        "intf-out": "Ethernet1/1", 
                                        "ip-addr-out": "10.100.90.130", 
                                        "mac": "0010.9400.7160", 
                                        "time-stamp": "00:08:49"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/2", 
                                        "ip-addr-out": "10.100.157.1", 
                                        "mac": "f44e.0584.7ffc", 
                                        "time-stamp": "00:09:37"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/4", 
                                        "ip-addr-out": "10.100.157.9", 
                                        "mac": "f44e.0584.7ffc", 
                                        "time-stamp": "00:09:36"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/7", 
                                        "ip-addr-out": "192.168.161.1", 
                                        "mac": "f44e.0584.7ffc", 
                                        "time-stamp": "00:09:03"
                                    }, 
                                    {
                                        "intf-out": "Vlan50", 
                                        "ip-addr-out": "10.57.50.3", 
                                        "mac": "f44e.0584.7ffc", 
                                        "time-stamp": "00:08:54"
                                    }, 
                                    {
                                        "intf-out": "Vlan253", 
                                        "ip-addr-out": "7.57.253.1", 
                                        "mac": "f44e.0584.7ffc", 
                                        "time-stamp": "00:09:03"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/1.50", 
                                        "ip-addr-out": "89.1.1.10", 
                                        "mac": "0010.9400.7161", 
                                        "time-stamp": "00:08:49"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/1.51", 
                                        "ip-addr-out": "89.1.2.10", 
                                        "mac": "0010.9400.7161", 
                                        "time-stamp": "00:08:49"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/1.52", 
                                        "ip-addr-out": "89.1.3.10", 
                                        "mac": "0010.9400.7161", 
                                        "time-stamp": "00:08:49"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/1.53", 
                                        "ip-addr-out": "89.1.4.10", 
                                        "mac": "0010.9400.7161", 
                                        "time-stamp": "00:08:51"
                                    }
                                ]
                            }, 
                            "cnt-total": "10", 
                            "vrf-name-out": "default"
                        }
                    }
                }, 
                "code": "200", 
                "input": "show ip arp", 
                "msg": "Success"
            }
        }, 
        "sid": "eoc", 
        "type": "cli_show", 
        "version": "1.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 command, see the CLI command reference:

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

Note: This example was added in Cisco NX-OS Release 6.0(2)A8(8).

CLI Output
Switch# show ip arp

Flags: * - Adjacencies learnt on non-active FHRP router
       + - Adjacencies synced via CFSoE
       # - Adjacencies Throttled for Glean
       D - Static Adjacencies attached to down interface

IP ARP Table for context default
Total number of entries: 10
Address         Age       MAC Address     Interface
10.100.90.130   00:08:49  0010.9400.7160  Ethernet1/1
10.100.157.1 00:09:38 f44e.0584.7ffc Ethernet1/2
10.100.157.9 00:09:37 f44e.0584.7ffc Ethernet1/4
192.168.161.1 00:09:03 f44e.0584.7ffc Ethernet1/7
10.57.50.3 00:08:55 f44e.0584.7ffc Vlan50
7.57.253.1 00:09:03 f44e.0584.7ffc Vlan253
89.1.1.10 00:08:49 0010.9400.7161 Ethernet1/1.50
89.1.2.10 00:08:49 0010.9400.7161 Ethernet1/1.51
89.1.3.10 00:08:49 0010.9400.7161 Ethernet1/1.52
89.1.4.10 00:08:51 0010.9400.7161 Ethernet1/1.53

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.0",
  "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": {
        "outputs": {
            "output": {
                "body": {
                    "TABLE_vrf": {
                        "ROW_vrf": {
                            "TABLE_adj": {
                                "ROW_adj": [
                                    {
                                        "intf-out": "Ethernet1/1", 
                                        "ip-addr-out": "10.100.90.130", 
                                        "mac": "0010.9400.7160", 
                                        "phy-intf": "Ethernet1/1", 
                                        "time-stamp": "00:08:50"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/2", 
                                        "ip-addr-out": "10.100.157.1", 
                                        "mac": "f44e.0584.7ffc", 
                                        "phy-intf": "Ethernet1/2", 
                                        "time-stamp": "00:09:39"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/4", 
                                        "ip-addr-out": "10.100.157.9", 
                                        "mac": "f44e.0584.7ffc", 
                                        "phy-intf": "Ethernet1/4", 
                                        "time-stamp": "00:09:37"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/7", 
                                        "ip-addr-out": "192.168.161.1", 
                                        "mac": "f44e.0584.7ffc", 
                                        "phy-intf": "Ethernet1/7", 
                                        "time-stamp": "00:09:04"
                                    }, 
                                    {
                                        "intf-out": "Vlan50", 
                                        "ip-addr-out": "10.57.50.3", 
                                        "mac": "f44e.0584.7ffc", 
                                        "phy-intf": "port-channel47", 
                                        "time-stamp": "00:08:56"
                                    }, 
                                    {
                                        "intf-out": "Vlan253", 
                                        "ip-addr-out": "7.57.253.1", 
                                        "mac": "f44e.0584.7ffc", 
                                        "phy-intf": "port-channel47", 
                                        "time-stamp": "00:09:04"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/1.50", 
                                        "ip-addr-out": "89.1.1.10", 
                                        "mac": "0010.9400.7161", 
                                        "phy-intf": "Ethernet1/1", 
                                        "time-stamp": "00:08:50"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/1.51", 
                                        "ip-addr-out": "89.1.2.10", 
                                        "mac": "0010.9400.7161", 
                                        "phy-intf": "Ethernet1/1", 
                                        "time-stamp": "00:08:50"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/1.52", 
                                        "ip-addr-out": "89.1.3.10", 
                                        "mac": "0010.9400.7161", 
                                        "phy-intf": "Ethernet1/1", 
                                        "time-stamp": "00:08:50"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/1.53", 
                                        "ip-addr-out": "89.1.4.10", 
                                        "mac": "0010.9400.7161", 
                                        "phy-intf": "Ethernet1/1", 
                                        "time-stamp": "00:08:52"
                                    }
                                ]
                            }, 
                            "cnt-total": "10", 
                            "vrf-name-out": "default"
                        }
                    }
                }, 
                "code": "200", 
                "input": "show ip arp detail", 
                "msg": "Success"
            }
        }, 
        "sid": "eoc", 
        "type": "cli_show", 
        "version": "1.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 detail command, see the CLI command reference:

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

Note: This example was added in Cisco NX-OS Release 6.0(2)A8(8).

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: 10
Address         Age       MAC Address     Interface        Physical Interface
10.100.90.130   00:08:51  0010.9400.7160  Ethernet1/1      Ethernet1/1
10.100.157.1 00:09:40 f44e.0584.7ffc Ethernet1/2 Ethernet1/2
10.100.157.9 00:09:38 f44e.0584.7ffc Ethernet1/4 Ethernet1/4
192.168.161.1 00:09:05 f44e.0584.7ffc Ethernet1/7 Ethernet1/7
10.57.50.3 00:08:57 f44e.0584.7ffc Vlan50 port-channel47
7.57.253.1 00:09:05 f44e.0584.7ffc Vlan253 port-channel47
89.1.1.10 00:08:51 0010.9400.7161 Ethernet1/1.50 Ethernet1/1
89.1.2.10 00:08:51 0010.9400.7161 Ethernet1/1.51 Ethernet1/1
89.1.3.10 00:08:51 0010.9400.7161 Ethernet1/1.52 Ethernet1/1
89.1.4.10 00:08:53 0010.9400.7161 Ethernet1/1.53 Ethernet1/1

show ip arp vrf default

show ip arp vrf 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 arp vrf 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": {
        "outputs": {
            "output": {
                "body": {
                    "TABLE_vrf": {
                        "ROW_vrf": {
                            "TABLE_adj": {
                                "ROW_adj": [
                                    {
                                        "intf-out": "Ethernet1/1", 
                                        "ip-addr-out": "10.100.90.130", 
                                        "mac": "0010.9400.7160", 
                                        "time-stamp": "00:08:52"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/2", 
                                        "ip-addr-out": "10.100.157.1", 
                                        "mac": "f44e.0584.7ffc", 
                                        "time-stamp": "00:09:40"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/4", 
                                        "ip-addr-out": "10.100.157.9", 
                                        "mac": "f44e.0584.7ffc", 
                                        "time-stamp": "00:09:39"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/7", 
                                        "ip-addr-out": "192.168.161.1", 
                                        "mac": "f44e.0584.7ffc", 
                                        "time-stamp": "00:09:06"
                                    }, 
                                    {
                                        "intf-out": "Vlan50", 
                                        "ip-addr-out": "10.57.50.3", 
                                        "mac": "f44e.0584.7ffc", 
                                        "time-stamp": "00:08:57"
                                    }, 
                                    {
                                        "intf-out": "Vlan253", 
                                        "ip-addr-out": "7.57.253.1", 
                                        "mac": "f44e.0584.7ffc", 
                                        "time-stamp": "00:09:06"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/1.50", 
                                        "ip-addr-out": "89.1.1.10", 
                                        "mac": "0010.9400.7161", 
                                        "time-stamp": "00:08:52"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/1.51", 
                                        "ip-addr-out": "89.1.2.10", 
                                        "mac": "0010.9400.7161", 
                                        "time-stamp": "00:08:52"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/1.52", 
                                        "ip-addr-out": "89.1.3.10", 
                                        "mac": "0010.9400.7161", 
                                        "time-stamp": "00:08:52"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/1.53", 
                                        "ip-addr-out": "89.1.4.10", 
                                        "mac": "0010.9400.7161", 
                                        "time-stamp": "00:08:54"
                                    }
                                ]
                            }, 
                            "cnt-total": "10", 
                            "vrf-name-out": "default"
                        }
                    }
                }, 
                "code": "200", 
                "input": "show ip arp vrf default", 
                "msg": "Success"
            }
        }, 
        "sid": "eoc", 
        "type": "cli_show", 
        "version": "1.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 vrf default command, see the CLI command reference:

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

Note: This example was added in Cisco NX-OS Release 6.0(2)A8(8).

CLI Output
Switch# show ip arp vrf default

Flags: * - Adjacencies learnt on non-active FHRP router
       + - Adjacencies synced via CFSoE
       # - Adjacencies Throttled for Glean
       D - Static Adjacencies attached to down interface

IP ARP Table for context default
Total number of entries: 10
Address         Age       MAC Address     Interface
10.100.90.130   00:08:53  0010.9400.7160  Ethernet1/1
10.100.157.1 00:09:41 f44e.0584.7ffc Ethernet1/2
10.100.157.9 00:09:40 f44e.0584.7ffc Ethernet1/4
192.168.161.1 00:09:07 f44e.0584.7ffc Ethernet1/7
10.57.50.3 00:08:58 f44e.0584.7ffc Vlan50
7.57.253.1 00:09:07 f44e.0584.7ffc Vlan253
89.1.1.10 00:08:53 0010.9400.7161 Ethernet1/1.50
89.1.2.10 00:08:53 0010.9400.7161 Ethernet1/1.51
89.1.3.10 00:08:53 0010.9400.7161 Ethernet1/1.52
89.1.4.10 00:08:55 0010.9400.7161 Ethernet1/1.53

show ip arp vrf test

show ip arp vrf test

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 vrf test",
  "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": {
        "outputs": {
            "output": {
                "body": {
                    "TABLE_vrf": {
                        "ROW_vrf": {
                            "TABLE_adj": {
                                "ROW_adj": [
                                    {
                                        "intf-out": "Ethernet1/45", 
                                        "ip-addr-out": "7.57.253.6", 
                                        "mac": "f44e.0584.7ffc", 
                                        "time-stamp": "00:18:03"
                                    }, 
                                    {
                                        "intf-out": "Ethernet1/46", 
                                        "ip-addr-out": "7.57.253.10", 
                                        "mac": "f44e.0584.7ffc", 
                                        "time-stamp": "00:18:01"
                                    }
                                ]
                            }, 
                            "cnt-total": "2", 
                            "vrf-name-out": "test"
                        }
                    }
                }, 
                "code": "200", 
                "input": "show ip arp vrf test", 
                "msg": "Success"
            }
        }, 
        "sid": "eoc", 
        "type": "cli_show", 
        "version": "1.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 vrf test command, see the CLI command reference:

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

Note: This example was added in Cisco NX-OS Release 6.0(2)A8(8).

CLI Output
Switch# show ip arp vrf test

Flags: * - Adjacencies learnt on non-active FHRP router
       + - Adjacencies synced via CFSoE
       # - Adjacencies Throttled for Glean
       D - Static Adjacencies attached to down interface

IP ARP Table for context test
Total number of entries: 2
Address         Age       MAC Address     Interface
7.57.253.6      00:18:04  f44e.0584.7ffc  Ethernet1/45
7.57.253.10 00:18:01 f44e.0584.7ffc Ethernet1/46