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:
Note: This example was added in Cisco NX-OS Release 6.0(2)A8(8).
CLI Output |
---|
|
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:
Note: This example was added in Cisco NX-OS Release 6.0(2)A8(8).
CLI Output |
---|
|
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:
Note: This example was added in Cisco NX-OS Release 6.0(2)A8(8).
CLI Output |
---|
|
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:
Note: This example was added in Cisco NX-OS Release 6.0(2)A8(8).
CLI Output |
---|
|