show nve peers
show nve peers
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 nve peers ",
"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 nve peers",
"msg": "Success",
"code": "200",
"body": {
"TABLE_nve_peers": {
"ROW_nve_peers": [
{
"if-name": "nve1",
"peer-ip": "1.1.1.53",
"peer-state": "Up",
"learn-type": "CP",
"uptime": "05:21:52",
"router-mac": "f8c2.8846.e07f"
},
{
"if-name": "nve1",
"peer-ip": "1.1.1.112",
"peer-state": "Up",
"learn-type": "CP",
"uptime": "07:08:31",
"router-mac": "2cd0.2d51.9f1b"
},
{
"if-name": "nve1",
"peer-ip": "1.1.1.114",
"peer-state": "Up",
"learn-type": "CP",
"uptime": "07:04:43",
"router-mac": "00a6.cab6.bbbb"
},
{
"if-name": "nve1",
"peer-ip": "1.1.1.161",
"peer-state": "Up",
"learn-type": "CP",
"uptime": "05:14:11",
"router-mac": "00c8.8bb7.57bf"
},
{
"if-name": "nve1",
"peer-ip": "1.1.1.162",
"peer-state": "Up",
"learn-type": "CP",
"uptime": "05:14:18",
"router-mac": "00c8.8bb7.493f"
},
{
"if-name": "nve1",
"peer-ip": "2.2.2.2",
"peer-state": "Up",
"learn-type": "CP",
"uptime": "05:14:20",
"router-mac": "n/a"
},
{
"if-name": "nve1",
"peer-ip": "3.3.3.4",
"peer-state": "Up",
"learn-type": "CP",
"uptime": "07:05:17",
"router-mac": "0200.0303.0304"
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve peers command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show nve vni
show nve vni
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 nve vni",
"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 nve vni",
"msg": "Success",
"code": "200",
"body": {
"TABLE_nve_vni": {
"ROW_nve_vni": [
{
"if-name": "nve1",
"vni": "10101",
"mcast": "n/a",
"vni-state": "Up",
"mode": "CP",
"type": "L3 [vxlan-10101]",
"flags": ""
},
{
"if-name": "nve1",
"vni": "12101",
"mcast": "UnicastBGP",
"vni-state": "Up",
"mode": "CP",
"type": "L2 [2101]",
"flags": "SA MS-IR "
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve vni command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show nve vni 10101 counters
show nve vni 10101 counters
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 nve vni 10101 counters",
"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 nve vni 10101 counters ",
"msg": "Success",
"code": "200",
"body": {
"vni": "10101",
"tx_ucastpkts": "6697572",
"tx_ucastbytes": "505293095",
"tx_mcastpkts": "65",
"tx_mcastbytes": "9360",
"rx_ucastpkts": "7041979",
"rx_ucastbytes": "880115957",
"rx_mcastpkts": "1316",
"rx_mcastbytes": "381656"
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve vni 10101 counters command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show nve vni interface nve 1
show nve vni interface nve 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 nve vni interface nve 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)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show nve vni interface nve 1",
"msg": "Success",
"code": "200",
"body": {
"TABLE_nve_vni": {
"ROW_nve_vni": [
{
"if-name": "nve1",
"vni": "13100",
"mcast": "225.4.0.100",
"vni-state": "Up",
"mode": "CP",
"type": "L2 [3100]",
"flags": "SA MS-IR "
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve vni interface nve 1 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show nve vni interface nve 1 detail
show nve vni interface nve 1 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 nve vni interface nve 1 detail",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show nve vni interface nve 1 detail",
"msg": "Success",
"code": "200",
"body": {
"TABLE_nve_vni": {
"ROW_nve_vni": [
{
"if-name": "nve1",
"vni": "13100",
"mcast": "225.4.0.100",
"vni-state": "Up",
"mode": "control-plane",
"type": "L2 [3100]",
"flags": "SA MS-IR ",
"prvsn-state": "vni-add-complete",
"vlan-bd": "3100",
"svi-state": "n/a",
"vpc-compat-check": "0"
}
]
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve vni interface nve 1 detail command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show nve vrf vxlan-10101
show nve vrf vxlan-10101
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 nve vrf vxlan-10101",
"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 nve vrf vxlan-10101",
"msg": "Success",
"code": "200",
"body": {
"TABLE_nve_vrf": {
"ROW_nve_vrf": {
"vrf-name": "vxlan-10101",
"vni": "10101",
"if-name": "nve1",
"gateway-mac": "f8c2.8846.e6ff",
"ipv4-tblid": "4",
"ipv6-tblid": "2147483652",
"vni-sw-bd": "101",
"flags": "0"
}
}
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve vrf vxlan-10101 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show nve vxlan-params
show nve vxlan-params
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 nve vxlan-params ",
"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 nve vxlan-params",
"msg": "Success",
"code": "200",
"body": {
"vxlan-port": "4789"
}
}
}
}
}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve vxlan-params command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|