show bgp all dampening flap-statistics
show bgp all dampening flap-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 bgp all dampening flap-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": {
"outputs": {
"output": {
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"TABLE_afi": {
"ROW_afi": [
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"best": "false",
"duration": "6d02h",
"flapcount": "35147",
"ipprefix": "2.0.0.0/24",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "35",
"reuse": "00:01:50",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
},
{
"best": "false",
"duration": "6d02h",
"flapcount": "35147",
"ipprefix": "2.0.1.0/24",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "35",
"reuse": "00:01:50",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
}
]
},
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0"
}
},
"af-name": "IPv4 Unicast",
"safi": "1"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"best": "false",
"duration": "6d02h",
"flapcount": "35147",
"ipprefix": "2.1.0.0/24",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "35",
"reuse": "00:01:50",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
},
{
"best": "false",
"duration": "6d02h",
"flapcount": "35147",
"ipprefix": "2.1.1.0/24",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "35",
"reuse": "00:01:50",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
}
]
},
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0"
}
},
"af-name": "IPv4 Multicast",
"safi": "2"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"dampenedpaths": "0",
"dampening": "true",
"historypaths": "0"
}
},
"af-name": "IPv6 Unicast",
"safi": "1"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"dampenedpaths": "0",
"dampening": "true",
"historypaths": "0"
}
},
"af-name": "IPv6 Multicast",
"safi": "2"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"TABLE_prefix": {
"ROW_prefix": [
{
"best": "false",
"duration": "6d02h",
"flapcount": "35147",
"ipprefix": "2.3.1.0/24",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "35",
"reuse": "00:01:50",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
},
{
"best": "false",
"duration": "6d02h",
"flapcount": "35147",
"ipprefix": "2.3.2.0/24",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "35",
"reuse": "00:01:50",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
}
]
},
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0",
"rd_val": "0:0"
},
{
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0",
"rd_val": "101:100"
},
{
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0",
"rd_val": "102:100"
}
]
},
"af-name": "VPNv4 Unicast",
"safi": "128"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"dampenedpaths": "0",
"dampening": "true",
"historypaths": "0",
"rd_val": "100:200"
},
{
"dampenedpaths": "0",
"dampening": "true",
"historypaths": "0",
"rd_val": "0xbb00010000000000"
}
]
},
"af-name": "VPNv6 Unicast",
"safi": "128"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "IPv4 MVPN",
"safi": "5"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "IPv6 MVPN",
"safi": "5"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"dampenedpaths": "4",
"dampening": "true",
"historypaths": "0",
"rd_val": "101:1000"
},
{
"dampenedpaths": "4",
"dampening": "true",
"historypaths": "0",
"rd_val": "101:1001"
},
{
"dampenedpaths": "4",
"dampening": "true",
"historypaths": "0",
"rd_val": "101:10001"
},
{
"TABLE_prefix": {
"ROW_prefix": [
{
"best": "false",
"duration": "6d02h",
"flapcount": "35634",
"nonipprefix": "[2]:[0]:[0]:[48]:[0201.0201.0201]:[32]:[2.7.1.1]/248",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "35",
"reuse": "00:01:50",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
},
{
"best": "false",
"duration": "6d02h",
"flapcount": "35634",
"nonipprefix": "[2]:[0]:[0]:[48]:[0201.0201.0202]:[32]:[2.7.1.2]/248",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "35",
"reuse": "00:01:50",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
},
{
"best": "false",
"duration": "6d02h",
"flapcount": "35147",
"nonipprefix": "[5]:[0]:[0]:[24]:[2.8.1.0]:[0.0.0.0]/224",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "35",
"reuse": "00:01:50",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
},
{
"best": "false",
"duration": "6d02h",
"flapcount": "35147",
"nonipprefix": "[5]:[0]:[0]:[24]:[2.8.2.0]:[0.0.0.0]/224",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "35",
"reuse": "00:01:50",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
}
]
},
"dampenedpaths": "4",
"dampening": "true",
"historypaths": "0",
"rd_val": "201:2000"
},
{
"dampenedpaths": "4",
"dampening": "true",
"historypaths": "0",
"rd_val": "2.2.2.101:1002"
}
]
},
"af-name": "L2VPN EVPN",
"safi": "70"
}
},
"afi": "25"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"best": "false",
"duration": "6d02h",
"flapcount": "35147",
"nonipprefix": "[2]:[77][7,0][39.39.39.39,1,656877351][39.1.1.1,22][19.0.102.3,39.0.1.30]/616",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "35",
"reuse": "00:01:50",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
},
{
"best": "false",
"duration": "6d02h",
"flapcount": "35147",
"nonipprefix": "[2]:[77][7,0][39.39.39.39,2,656877351][39.1.1.1,22][19.0.102.3,39.0.1.31]/616",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "35",
"reuse": "00:01:50",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
}
]
},
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0"
}
},
"af-name": "Link-State",
"safi": "71"
}
},
"afi": "16388"
}
]
},
"vrf-name-out": "default"
}
}
},
"code": "200",
"input": "show bgp all dampening flap-statistics",
"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 bgp all dampening flap-statistics command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp all extcommunity 4byteas-generic transitive 3:100
show bgp all extcommunity 4byteas-generic transitive 3:100
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 bgp all extcommunity 4byteas-generic transitive 3:100",
"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_afi": {
"ROW_afi": [
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "IPv4 Unicast",
"router-id": "19.0.0.6",
"safi": "1",
"table-version": "140602"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "IPv4 Multicast",
"router-id": "19.0.0.6",
"safi": "2",
"table-version": "140597"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "IPv6 Unicast",
"router-id": "19.0.0.6",
"safi": "1",
"table-version": "3"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "IPv6 Multicast",
"safi": "2"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"rd_val": "0:0"
},
{
"rd_val": "101:100"
},
{
"rd_val": "102:100"
}
]
},
"af-name": "VPNv4 Unicast",
"router-id": "19.0.0.6",
"safi": "128",
"table-version": "140611"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"rd_val": "100:200"
},
{
"rd_val": "0xbb00010000000000"
}
]
},
"af-name": "VPNv6 Unicast",
"router-id": "19.0.0.6",
"safi": "128",
"table-version": "13"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"rd_val": "201:201"
},
{
"rd_val": "202:202"
}
]
},
"af-name": "IPv4 MVPN",
"router-id": "19.0.0.6",
"safi": "5",
"table-version": "39"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"rd_val": "301:301"
},
{
"rd_val": "303:303"
}
]
},
"af-name": "IPv6 MVPN",
"router-id": "19.0.0.6",
"safi": "5",
"table-version": "24"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"rd_val": "101:1000"
},
{
"rd_val": "101:1001"
},
{
"rd_val": "101:10001"
},
{
"rd_val": "201:2000"
},
{
"rd_val": "2.2.2.101:1002"
}
]
},
"af-name": "L2VPN EVPN",
"router-id": "19.0.0.6",
"safi": "70",
"table-version": "282172"
}
},
"afi": "25"
},
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "Link-State",
"router-id": "19.0.0.6",
"safi": "71",
"table-version": "140596"
}
},
"afi": "16388"
}
]
},
"vrf-name-out": "default"
}
}
},
"code": "200",
"input": "show bgp all extcommunity 4byteas-generic transitive 3:100",
"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 bgp all extcommunity 4byteas-generic transitive 3:100 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp all neighbors 19.0.102.3 flap-statistics vrf all
show bgp all neighbors 19.0.102.3 flap-statistics 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 bgp all neighbors 19.0.101.1 flap-statistics 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": {
"outputs": {
"output": {
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"TABLE_afi": {
"ROW_afi": [
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"best": "false",
"duration": "1w6d",
"flapcount": "9429",
"ipprefix": "2.0.0.0/24",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "34",
"reuse": "00:01:40",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
},
{
"best": "false",
"duration": "1w6d",
"flapcount": "9429",
"ipprefix": "2.0.1.0/24",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "34",
"reuse": "00:01:40",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
}
]
},
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0"
}
},
"af-name": "IPv4 Unicast",
"safi": "1"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"best": "false",
"duration": "1w6d",
"flapcount": "9429",
"ipprefix": "2.1.0.0/24",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "34",
"reuse": "00:01:40",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
},
{
"best": "false",
"duration": "1w6d",
"flapcount": "9429",
"ipprefix": "2.1.1.0/24",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "34",
"reuse": "00:01:40",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
}
]
},
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0"
}
},
"af-name": "IPv4 Multicast",
"safi": "2"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"dampenedpaths": "0",
"dampening": "true",
"historypaths": "0"
}
},
"af-name": "IPv6 Unicast",
"safi": "1"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"dampenedpaths": "0",
"dampening": "true",
"historypaths": "0"
}
},
"af-name": "IPv6 Multicast",
"safi": "2"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "VPNv4 Unicast",
"safi": "128"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "VPNv6 Unicast",
"safi": "128"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "IPv4 MVPN",
"safi": "5"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "IPv6 MVPN",
"safi": "5"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "L2VPN EVPN",
"safi": "70"
}
},
"afi": "25"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"best": "false",
"duration": "1w6d",
"flapcount": "9429",
"nonipprefix": "[2]:[77][7,0][39.39.39.39,1,656877351][39.1.1.1,22][19.0.102.3,39.0.1.30]/616",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "34",
"reuse": "00:01:40",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
},
{
"best": "false",
"duration": "1w6d",
"flapcount": "9429",
"nonipprefix": "[2]:[77][7,0][39.39.39.39,2,656877351][39.1.1.1,22][19.0.102.3,39.0.1.31]/616",
"pathtype": "e",
"peer": "19.0.102.3",
"penalty": "34",
"reuse": "00:01:40",
"reuselimit": "10",
"status": "d",
"suppresslimit": "30"
}
]
},
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0"
}
},
"af-name": "Link-State",
"safi": "71"
}
},
"afi": "16388"
}
]
},
"vrf-name-out": "default"
}
}
},
"code": "200",
"input": "show bgp all neighbors 19.0.102.3 flap-statistics vrf all",
"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 bgp all neighbors 19.0.101.1 flap-statistics vrf all command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp all route-map perMIT_aLL_RM
show bgp all route-map perMIT_aLL_RM
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 bgp all route-map perMIT_aLL_RM",
"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_afi": {
"ROW_afi": [
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": [
{
"aspath": "1 2 3 65000 23",
"best": "none",
"bestcode": {},
"ipnexthop": "21.0.101.99",
"localpref": "100",
"metric": "2222",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
},
{
"aspath": "{1956 38871 10250 47165 18545 55460 26839 63754 35134 6514}",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "1",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
]
},
"ipprefix": "1.1.1.0/24"
},
{
"TABLE_path": {
"ROW_path": [
{
"aspath": "1 2 3 65000 23",
"best": "none",
"bestcode": {},
"ipnexthop": "21.0.101.99",
"localpref": "100",
"metric": "2222",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
},
{
"aspath": "{1956 38871 10250 47165 18545 55460 26839 63754 35134 6514}",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "1",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
]
},
"ipprefix": "1.1.2.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "10 20 30 40 50 60 70 80 90",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.6.0.0/16"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "10 20 30 40 50 60 70 80 90",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.6.1.128/25"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 10 20 30 40 50 60 70 80 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"ipprefix": "2.0.0.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 10 20 30 40 50 60 70 80 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"ipprefix": "2.0.1.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "0.0.0.0",
"localpref": "100",
"metric": "0",
"origin": "?",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "redist",
"typecode": "r",
"weight": "32768"
}
},
"ipprefix": "104.0.0.0/8"
}
]
}
}
},
"af-name": "IPv4 Unicast",
"router-id": "19.0.0.6",
"safi": "1",
"table-version": "140602"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "2 3 4",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.4.1.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "2 3 4",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.4.2.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 10 20 30 40 50 60 70 80 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"ipprefix": "2.1.0.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 10 20 30 40 50 60 70 80 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"ipprefix": "2.1.1.0/24"
}
]
}
}
},
"af-name": "IPv4 Multicast",
"router-id": "19.0.0.6",
"safi": "2",
"table-version": "140597"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": {
"TABLE_path": {
"ROW_path": {
"aspath": "",
"best": "bestpath",
"bestcode": ">",
"ipv6nexthop": "0::",
"localpref": "100",
"metric": "0",
"origin": "?",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "redist",
"typecode": "r",
"weight": "32768"
}
},
"ipv6prefix": "106::/16"
}
}
}
},
"af-name": "IPv6 Unicast",
"router-id": "19.0.0.6",
"safi": "1",
"table-version": "3"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"af-name": "IPv6 Multicast",
"safi": "2"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 10 20 30 40 50 60 70 80 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"ipprefix": "2.3.1.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 10 20 30 40 50 60 70 80 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"ipprefix": "2.3.2.0/24"
}
]
},
"rd_val": "0:0"
},
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": [
{
"aspath": "3 4 5 6",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.101.1",
"localpref": "100",
"metric": "4444",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
},
{
"aspath": "{43428 14808 51723 23103 60017 31397 2777 39692 11071 47986}",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "1",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
]
},
"ipprefix": "1.3.1.0/24"
},
{
"TABLE_path": {
"ROW_path": [
{
"aspath": "3 4 5 6",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.101.1",
"localpref": "100",
"metric": "4444",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
},
{
"aspath": "{43428 14808 51723 23103 60017 31397 2777 39692 11071 47986}",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "1",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
]
},
"ipprefix": "1.3.2.0/24"
}
]
},
"rd_val": "101:100"
},
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "200 300 400 500 600 700",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "102.1.1.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "200 300 400 500 600 700",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "102.1.2.0/24"
}
]
},
"rd_val": "102:100"
}
]
},
"af-name": "VPNv4 Unicast",
"router-id": "19.0.0.6",
"safi": "128",
"table-version": "140611"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "3 10 20 30",
"best": "bestpath",
"bestcode": ">",
"ipv6nexthop": "::ffff:19.0.101.1",
"localpref": "100",
"metric": "4444",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipv6prefix": "aaaa:1::/112"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "3 10 20 30",
"best": "bestpath",
"bestcode": ">",
"ipv6nexthop": "::ffff:19.0.101.1",
"localpref": "100",
"metric": "4444",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipv6prefix": "aaaa:1::1:0/112"
}
]
},
"rd_val": "100:200"
},
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 10 20 30 40 50 60 70 80 90",
"best": "bestpath",
"bestcode": ">",
"ipv6nexthop": "::ffff:19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"ipv6prefix": "0::/41"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 10 20 30 40 50 60 70 80 90",
"best": "bestpath",
"bestcode": ">",
"ipv6nexthop": "::ffff:19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"ipv6prefix": "0:0:80::/41"
}
]
},
"rd_val": "0xbb00010000000000"
}
]
},
"af-name": "VPNv6 Unicast",
"router-id": "19.0.0.6",
"safi": "128",
"table-version": "13"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "3927 54703 18326",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[1][1.1.1.1]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "3927 54703 18326",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[1][1.1.1.2]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "3927 54703 18326",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[1][1.1.1.3]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "3927 54703 18326",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[1][1.1.1.4]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "3927 54703 18326",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[1][1.1.1.5]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "63262 64561",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[5][192.168.1.1][224.1.2.1]/64"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "63262 64561",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[5][192.168.1.2][224.1.2.1]/64"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "63262 64561",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[5][192.168.1.3][224.1.2.1]/64"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "63262 64561",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[5][192.168.1.4][224.1.2.1]/64"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "63262 64561",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[5][192.168.1.5][224.1.2.1]/64"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "17950 18047 58797",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][15000]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "17950 18047 58797",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][15001]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "17950 18047 58797",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][15002]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "17950 18047 58797",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][15003]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "17950 18047 58797",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][15004]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "17950 18047 58797",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][15005]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "17950 18047 58797",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][15006]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "17950 18047 58797",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][15007]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "17950 18047 58797",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][15008]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "17950 18047 58797",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.20",
"localpref": "104",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][15009]/32"
}
]
},
"rd_val": "201:201"
},
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 48291",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[5][192.168.100.1][224.1.200.1]/64"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 48291",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[5][192.168.100.2][224.1.200.1]/64"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 48291",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[5][192.168.100.3][224.1.200.1]/64"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 48291",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[5][192.168.100.4][224.1.200.1]/64"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 48291",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[5][192.168.100.5][224.1.200.1]/64"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 39751",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][25000]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 39751",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][25001]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 39751",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][25002]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 39751",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][25003]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 39751",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][25004]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 39751",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][25005]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 39751",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][25006]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 39751",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][25007]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 39751",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][25008]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 39751",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.103.10",
"metric": "14",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][25009]/32"
}
]
},
"rd_val": "202:202"
}
]
},
"af-name": "IPv4 MVPN",
"router-id": "19.0.0.6",
"safi": "5",
"table-version": "39"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "19908 27948 52583",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:11::2",
"localpref": "105",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[5][feaa::feaa][ff02::1]/256"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "19908 27948 52583",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:11::2",
"localpref": "105",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[5][feaa::feab][ff02::1]/256"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "19908 27948 52583",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:11::2",
"localpref": "105",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[5][feaa::feac][ff02::1]/256"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "19908 27948 52583",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:11::2",
"localpref": "105",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[5][feaa::fead][ff02::1]/256"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "19908 27948 52583",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:11::2",
"localpref": "105",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[5][feaa::feae][ff02::1]/256"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "1896 3534 64762 23166 49111 8516 62917 53288 56806 12608 5667 65476",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:11::2",
"localpref": "105",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][20000]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "1896 3534 64762 23166 49111 8516 62917 53288 56806 12608 5667 65476",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:11::2",
"localpref": "105",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][20001]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "1896 3534 64762 23166 49111 8516 62917 53288 56806 12608 5667 65476",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:11::2",
"localpref": "105",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][20002]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "1896 3534 64762 23166 49111 8516 62917 53288 56806 12608 5667 65476",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:11::2",
"localpref": "105",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][20003]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "1896 3534 64762 23166 49111 8516 62917 53288 56806 12608 5667 65476",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:11::2",
"localpref": "105",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2][20004]/32"
}
]
},
"rd_val": "301:301"
},
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 36132 15886 19181 39272",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:21::2",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[5][feaa::feaa][ff02::1]/256"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 36132 15886 19181 39272",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:21::2",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[5][feaa::feab][ff02::1]/256"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 36132 15886 19181 39272",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:21::2",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[5][feaa::feac][ff02::1]/256"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 36132 15886 19181 39272",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:21::2",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[5][feaa::fead][ff02::1]/256"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 36132 15886 19181 39272",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:21::2",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[5][feaa::feae][ff02::1]/256"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 17914 8670 3845 14242",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:21::2",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][30000]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 17914 8670 3845 14242",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:21::2",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][30001]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 17914 8670 3845 14242",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:21::2",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][30002]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 17914 8670 3845 14242",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:21::2",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][30003]/32"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "999 17914 8670 3845 14242",
"best": "none",
"bestcode": {},
"ipv6nexthop": "1920:21::2",
"metric": "15",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2][30004]/32"
}
]
},
"rd_val": "303:303"
}
]
},
"af-name": "IPv6 MVPN",
"router-id": "19.0.0.6",
"safi": "5",
"table-version": "24"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": [
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": [
{
"aspath": "101 {38050 9430 46344 17724 54639} 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
},
{
"aspath": "102 {13987 50902 22282 59197 30576} 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "1",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
]
},
"nonipprefix": "[2]:[0]:[0]:[48]:[0226.51bd.c81c]:[32]:[1.7.1.1]/248"
},
{
"TABLE_path": {
"ROW_path": [
{
"aspath": "101 {38050 9430 46344 17724 54639} 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
},
{
"aspath": "102 {13987 50902 22282 59197 30576} 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "1",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
]
},
"nonipprefix": "[2]:[0]:[0]:[48]:[0226.51bd.c81d]:[32]:[1.7.1.2]/248"
},
{
"TABLE_path": {
"ROW_path": [
{
"aspath": "101 {26019 62933 34313 5693 42608 13987 50902 22282 59197 30576} 91 101 {1956 38871 10250 47165 18545 55460 26839 63754 35134 6514} 95",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
},
{
"aspath": "102 {19366 56281 27660 64575 35955 7335 44249 15629 52544 23924} 91",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "1",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
]
},
"nonipprefix": "[5]:[0]:[0]:[24]:[1.8.1.0]:[0.0.0.0]/224"
},
{
"TABLE_path": {
"ROW_path": [
{
"aspath": "101 {26019 62933 34313 5693 42608 13987 50902 22282 59197 30576} 91 101 {1956 38871 10250 47165 18545 55460 26839 63754 35134 6514} 95",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
},
{
"aspath": "102 {19366 56281 27660 64575 35955 7335 44249 15629 52544 23924} 91",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "1",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
]
},
"nonipprefix": "[5]:[0]:[0]:[24]:[1.8.2.0]:[0.0.0.0]/224"
}
]
},
"rd_val": "101:1000"
},
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "101 {43428 14808 51723 23103 60017 31397 2777 39692 11071 47986} 92",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2]:[0]:[0]:[48]:[0100.51bd.c81c]:[32]:[110.1.1.2]/248"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "101 {43428 14808 51723 23103 60017 31397 2777 39692 11071 47986} 92",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2]:[0]:[0]:[48]:[0100.51bd.c81d]:[32]:[110.1.1.3]/248"
}
]
},
"rd_val": "101:1001"
},
{
"TABLE_prefix": {
"ROW_prefix": {
"TABLE_path": {
"ROW_path": {
"aspath": "101 {19366 56281 27660 64575 35955 7335 44249 15629 52544 23924} 93",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[5]:[0]:[0]:[24]:[201.201.201.0]:[0.0.0.0]/224"
}
},
"rd_val": "101:10001"
},
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 201 {60645 32025 3405 40319 11699 48614 19994 56908 28288 65203} 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2]:[0]:[0]:[48]:[0201.0201.0201]:[32]:[2.7.1.1]/248"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 201 {60645 32025 3405 40319 11699 48614 19994 56908 28288 65203} 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2]:[0]:[0]:[48]:[0201.0201.0202]:[32]:[2.7.1.2]/248"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 201 {36583 7962 44877 16257 53172 24551 61466 32846 4226 41140} 91",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[5]:[0]:[0]:[24]:[2.8.1.0]:[0.0.0.0]/224"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 201 {36583 7962 44877 16257 53172 24551 61466 32846 4226 41140} 91",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[5]:[0]:[0]:[24]:[2.8.2.0]:[0.0.0.0]/224"
}
]
},
"rd_val": "201:2000"
},
{
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "101 {60838 32218 3598 40513 11892 48807 20187 57101 28481 65396} 94",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2]:[0]:[0]:[48]:[0100.51bd.c81c]:[0]:[0.0.0.0]/216"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "101 {60838 32218 3598 40513 11892 48807 20187 57101 28481 65396} 94",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2]:[0]:[0]:[48]:[0100.51bd.c81d]:[0]:[0.0.0.0]/216"
}
]
},
"rd_val": "2.2.2.101:1002"
}
]
},
"af-name": "L2VPN EVPN",
"router-id": "19.0.0.6",
"safi": "70",
"table-version": "282172"
}
},
"afi": "25"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "3 10 20 30 40 50 60 70 80 90",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.101.1",
"localpref": "100",
"metric": "4444",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2]:[77][7,0][9.9.9.9,1,151587081][29.1.1.1,22][19.0.101.1,29.0.1.30]/616"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 10 20 30 40 50 60 70 80 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2]:[77][7,0][39.39.39.39,1,656877351][39.1.1.1,22][19.0.102.3,39.0.1.30]/616"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "3 10 20 30 40 50 60 70 80 90",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.101.1",
"localpref": "100",
"metric": "4444",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"nonipprefix": "[2]:[77][7,0][9.9.9.9,2,151587081][29.1.1.1,22][19.0.101.1,29.0.1.31]/616"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 10 20 30 40 50 60 70 80 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"nonipprefix": "[2]:[77][7,0][39.39.39.39,2,656877351][39.1.1.1,22][19.0.102.3,39.0.1.31]/616"
}
]
}
}
},
"af-name": "Link-State",
"router-id": "19.0.0.6",
"safi": "71",
"table-version": "140596"
}
},
"afi": "16388"
}
]
},
"vrf-name-out": "default"
}
}
},
"code": "200",
"input": "show bgp all route-map perMIT_aLL_RM",
"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 bgp all route-map perMIT_aLL_RM command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp all summary
show bgp all 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.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show bgp all 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": {
"outputs": {
"output": {
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"TABLE_af": {
"ROW_af": [
{
"TABLE_saf": {
"ROW_saf": {
"TABLE_neighbor": {
"ROW_neighbor": [
{
"inq": "0",
"msgrecvd": "8821",
"msgsent": "8804",
"neighboras": "333",
"neighborid": "19.0.101.1",
"neighbortableversion": "140602",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "3",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "501847",
"msgsent": "8801",
"neighboras": "888",
"neighborid": "19.0.102.3",
"neighbortableversion": "140602",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "2",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "8815",
"msgsent": "8803",
"neighboras": "333",
"neighborid": "19.0.102.4",
"neighbortableversion": "140602",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "2",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "0",
"neighborid": "19.0.200.200",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M41S"
}
]
},
"af-name": "IPv4 Unicast",
"bytesattrs": "960",
"bytesclusterlist": "20",
"bytescommunities": "160",
"bytespaths": "144",
"capablepeers": "3",
"configuredpeers": "4",
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0",
"memoryused": "1784",
"numberattrs": "6",
"numberclusterlist": "5",
"numbercommunities": "5",
"numberpaths": "4",
"safi": "1",
"softreconfigbytes": "0",
"softreconfigcombopaths": "0",
"softreconfigfilteredrecvd": "0",
"softreconfigidenticalpaths": "7",
"softreconfigrecvdpaths": "7",
"tableversion": "140602",
"totalnetworks": "7",
"totalpaths": "9"
}
},
"af-id": "1"
},
{
"TABLE_saf": {
"ROW_saf": {
"TABLE_neighbor": {
"ROW_neighbor": [
{
"inq": "0",
"msgrecvd": "8821",
"msgsent": "8804",
"neighboras": "333",
"neighborid": "19.0.101.1",
"neighbortableversion": "140597",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "501847",
"msgsent": "8801",
"neighboras": "888",
"neighborid": "19.0.102.3",
"neighbortableversion": "140597",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "2",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "8815",
"msgsent": "8803",
"neighboras": "333",
"neighborid": "19.0.102.4",
"neighbortableversion": "140597",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "2",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "0",
"neighborid": "19.0.200.200",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M41S"
}
]
},
"af-name": "IPv4 Multicast",
"bytesattrs": "480",
"bytesclusterlist": "20",
"bytescommunities": "160",
"bytespaths": "56",
"capablepeers": "3",
"configuredpeers": "4",
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0",
"memoryused": "1152",
"numberattrs": "3",
"numberclusterlist": "5",
"numbercommunities": "5",
"numberpaths": "2",
"safi": "2",
"softreconfigbytes": "184",
"softreconfigcombopaths": "0",
"softreconfigfilteredrecvd": "2",
"softreconfigidenticalpaths": "2",
"softreconfigrecvdpaths": "4",
"tableversion": "140597",
"totalnetworks": "6",
"totalpaths": "4"
}
},
"af-id": "1"
},
{
"TABLE_saf": {
"ROW_saf": {
"TABLE_neighbor": {
"ROW_neighbor": [
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "0",
"neighborid": "19.0.200.200",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M41S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "333",
"neighborid": "fec0::1002",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M44S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "888",
"neighborid": "fec0::2002",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M43S"
}
]
},
"af-name": "IPv6 Unicast",
"bytesattrs": "160",
"bytesclusterlist": "20",
"bytescommunities": "160",
"bytespaths": "0",
"capablepeers": "0",
"configuredpeers": "3",
"dampenedpaths": "0",
"dampening": "true",
"historypaths": "0",
"memoryused": "116",
"numberattrs": "1",
"numberclusterlist": "5",
"numbercommunities": "5",
"numberpaths": "0",
"safi": "1",
"tableversion": "3",
"totalnetworks": "1",
"totalpaths": "1"
}
},
"af-id": "2"
},
{
"TABLE_saf": {
"ROW_saf": {
"TABLE_neighbor": {
"ROW_neighbor": [
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "0",
"neighborid": "19.0.200.200",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M41S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "333",
"neighborid": "fec0::1002",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M44S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "888",
"neighborid": "fec0::2002",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M43S"
}
]
},
"af-name": "IPv6 Multicast",
"bytesattrs": "0",
"bytesclusterlist": "20",
"bytescommunities": "160",
"bytespaths": "0",
"capablepeers": "0",
"configuredpeers": "3",
"dampenedpaths": "0",
"dampening": "true",
"historypaths": "0",
"memoryused": "0",
"numberattrs": "0",
"numberclusterlist": "5",
"numbercommunities": "5",
"numberpaths": "0",
"safi": "2",
"tableversion": "2",
"totalnetworks": "0",
"totalpaths": "0"
}
},
"af-id": "2"
},
{
"TABLE_saf": {
"ROW_saf": {
"TABLE_neighbor": {
"ROW_neighbor": [
{
"inq": "0",
"msgrecvd": "8821",
"msgsent": "8804",
"neighboras": "333",
"neighborid": "19.0.101.1",
"neighbortableversion": "140611",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "2",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "501848",
"msgsent": "8801",
"neighboras": "888",
"neighborid": "19.0.102.3",
"neighbortableversion": "140611",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "2",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "8815",
"msgsent": "8803",
"neighboras": "333",
"neighborid": "19.0.102.4",
"neighbortableversion": "140611",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "4",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "0",
"neighborid": "19.0.200.200",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M41S"
}
]
},
"af-name": "VPNv4 Unicast",
"bytesattrs": "640",
"bytesclusterlist": "20",
"bytescommunities": "160",
"bytespaths": "128",
"capablepeers": "3",
"configuredpeers": "4",
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0",
"memoryused": "1680",
"numberattrs": "4",
"numberclusterlist": "5",
"numbercommunities": "5",
"numberpaths": "4",
"safi": "128",
"tableversion": "140611",
"totalnetworks": "6",
"totalpaths": "8"
}
},
"af-id": "1"
},
{
"TABLE_saf": {
"ROW_saf": {
"TABLE_neighbor": {
"ROW_neighbor": [
{
"inq": "0",
"msgrecvd": "8821",
"msgsent": "8804",
"neighboras": "333",
"neighborid": "19.0.101.1",
"neighbortableversion": "13",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "2",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "501848",
"msgsent": "8801",
"neighboras": "888",
"neighborid": "19.0.102.3",
"neighbortableversion": "13",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "2",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "8815",
"msgsent": "8803",
"neighboras": "333",
"neighborid": "19.0.102.4",
"neighbortableversion": "13",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "0",
"neighborid": "19.0.200.200",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M41S"
}
]
},
"af-name": "VPNv6 Unicast",
"bytesattrs": "320",
"bytesclusterlist": "20",
"bytescommunities": "160",
"bytespaths": "60",
"capablepeers": "3",
"configuredpeers": "4",
"dampenedpaths": "0",
"dampening": "true",
"historypaths": "0",
"memoryused": "992",
"numberattrs": "2",
"numberclusterlist": "5",
"numbercommunities": "5",
"numberpaths": "2",
"safi": "128",
"tableversion": "13",
"totalnetworks": "4",
"totalpaths": "4"
}
},
"af-id": "2"
},
{
"TABLE_saf": {
"ROW_saf": {
"TABLE_neighbor": {
"ROW_neighbor": [
{
"inq": "0",
"msgrecvd": "8813",
"msgsent": "8797",
"neighboras": "999",
"neighborid": "19.0.103.10",
"neighbortableversion": "39",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "15",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "8814",
"msgsent": "8797",
"neighboras": "333",
"neighborid": "19.0.103.20",
"neighbortableversion": "39",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "20",
"state": "Established",
"time": "P6DT2H33M24S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "0",
"neighborid": "19.0.200.200",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M41S"
}
]
},
"af-name": "IPv4 MVPN",
"bytesattrs": "800",
"bytesclusterlist": "20",
"bytescommunities": "160",
"bytespaths": "58",
"capablepeers": "2",
"configuredpeers": "3",
"dampening": "false",
"memoryused": "8260",
"numberattrs": "5",
"numberclusterlist": "5",
"numbercommunities": "5",
"numberpaths": "5",
"safi": "5",
"tableversion": "39",
"totalnetworks": "35",
"totalpaths": "35"
}
},
"af-id": "1"
},
{
"TABLE_saf": {
"ROW_saf": {
"TABLE_neighbor": {
"ROW_neighbor": [
{
"inq": "0",
"msgrecvd": "8813",
"msgsent": "8797",
"neighboras": "999",
"neighborid": "19.0.103.10",
"neighbortableversion": "24",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "10",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "8814",
"msgsent": "8797",
"neighboras": "333",
"neighborid": "19.0.103.20",
"neighbortableversion": "24",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "10",
"state": "Established",
"time": "P6DT2H33M24S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "0",
"neighborid": "19.0.200.200",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M41S"
}
]
},
"af-name": "IPv6 MVPN",
"bytesattrs": "640",
"bytesclusterlist": "20",
"bytescommunities": "160",
"bytespaths": "108",
"capablepeers": "2",
"configuredpeers": "3",
"dampening": "false",
"memoryused": "4960",
"numberattrs": "4",
"numberclusterlist": "5",
"numbercommunities": "5",
"numberpaths": "4",
"safi": "5",
"tableversion": "24",
"totalnetworks": "20",
"totalpaths": "20"
}
},
"af-id": "2"
},
{
"TABLE_saf": {
"ROW_saf": {
"TABLE_neighbor": {
"ROW_neighbor": [
{
"inq": "0",
"msgrecvd": "8821",
"msgsent": "8804",
"neighboras": "333",
"neighborid": "19.0.101.1",
"neighbortableversion": "282172",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "9",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "501848",
"msgsent": "8801",
"neighboras": "888",
"neighborid": "19.0.102.3",
"neighbortableversion": "282172",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "4",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "8815",
"msgsent": "8803",
"neighboras": "333",
"neighborid": "19.0.102.4",
"neighbortableversion": "282172",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "4",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "0",
"neighborid": "19.0.200.200",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M41S"
}
]
},
"af-name": "L2VPN EVPN",
"bytesattrs": "1440",
"bytesclusterlist": "20",
"bytescommunities": "160",
"bytespaths": "506",
"capablepeers": "3",
"configuredpeers": "4",
"dampenedpaths": "4",
"dampening": "true",
"historypaths": "0",
"memoryused": "3596",
"numberattrs": "9",
"numberclusterlist": "5",
"numbercommunities": "5",
"numberpaths": "9",
"safi": "70",
"tableversion": "282172",
"totalnetworks": "13",
"totalpaths": "17"
}
},
"af-id": "25"
},
{
"TABLE_saf": {
"ROW_saf": {
"TABLE_neighbor": {
"ROW_neighbor": [
{
"inq": "0",
"msgrecvd": "8821",
"msgsent": "8804",
"neighboras": "333",
"neighborid": "19.0.101.1",
"neighbortableversion": "140596",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "2",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "501848",
"msgsent": "8801",
"neighboras": "888",
"neighborid": "19.0.102.3",
"neighbortableversion": "140596",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "2",
"state": "Established",
"time": "P6DT2H33M26S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "0",
"neighborid": "19.0.200.200",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M41S"
},
{
"inq": "0",
"msgrecvd": "0",
"msgsent": "0",
"neighboras": "888",
"neighborid": "fec0::2002",
"neighbortableversion": "0",
"neighborversion": "4",
"outq": "0",
"prefixreceived": "0",
"state": "Idle",
"time": "P6DT2H33M44S"
}
]
},
"af-name": "Link-State",
"bytesattrs": "320",
"bytesclusterlist": "20",
"bytescommunities": "160",
"bytespaths": "84",
"capablepeers": "2",
"configuredpeers": "4",
"dampenedpaths": "2",
"dampening": "true",
"historypaths": "0",
"memoryused": "944",
"numberattrs": "2",
"numberclusterlist": "5",
"numbercommunities": "5",
"numberpaths": "2",
"safi": "71",
"tableversion": "140596",
"totalnetworks": "4",
"totalpaths": "4"
}
},
"af-id": "16388"
}
]
},
"vrf-local-as": "333",
"vrf-name-out": "default",
"vrf-router-id": "19.0.0.6"
}
}
},
"code": "200",
"input": "show bgp all summary",
"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 bgp all summary command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp bmp server
show bgp bmp server
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 bgp bmp server",
"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": {
"system_description": {
"sys_description": "Nexus9000 C93128TX Chassis, Software Version 7.0(3)I7(4)"
},
"system_name": {
"sys_name": "n9k-4-CE1-R1"
}
},
"code": "200",
"input": "show bgp bmp server",
"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 bgp bmp server command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp convergence detail
show bgp convergence 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 bgp convergence 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_afi": {
"ROW_afi": [
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rcvdpeers": {
"ROW_rcvdpeers": [
{
"peer": "19.0.101.1",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.102.3",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.102.4",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.200.200"
}
]
},
"af-name": "IPv4 Unicast",
"firstbestpathdone": "true",
"firstbestpathdonetime": "0.868305",
"firstbestpathsignalled": "true",
"firstbestpathsignalledtime": "0.866791",
"importtimerrunning": "false",
"riblibconvergencesent": "0.878671",
"safi": "1",
"total_capable_peers": "3",
"total_configured_peers": "4"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rcvdpeers": {
"ROW_rcvdpeers": [
{
"peer": "19.0.101.1",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.102.3",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.102.4",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.200.200"
}
]
},
"af-name": "IPv4 Multicast",
"firstbestpathdone": "true",
"firstbestpathdonetime": "0.948368",
"firstbestpathsignalled": "true",
"firstbestpathsignalledtime": "0.947761",
"importtimerrunning": "false",
"riblibconvergencesent": "0.948399",
"safi": "2",
"total_capable_peers": "3",
"total_configured_peers": "4"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rcvdpeers": {
"ROW_rcvdpeers": [
{
"ipv6peer": "fec0::1002",
"peer": "19.0.200.200"
},
{
"ipv6peer": "fec0::2002"
}
]
},
"af-name": "IPv6 Unicast",
"firstbestpathdone": "true",
"firstbestpathdonetime": "0.871950",
"firstbestpathsignalled": "true",
"firstbestpathsignalledtime": "0.866970",
"importtimerrunning": "false",
"riblibconvergencesent": "0.872286",
"safi": "1",
"total_capable_peers": "0",
"total_configured_peers": "3"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rcvdpeers": {
"ROW_rcvdpeers": [
{
"ipv6peer": "fec0::1002",
"peer": "19.0.200.200"
},
{
"ipv6peer": "fec0::2002"
}
]
},
"af-name": "IPv6 Multicast",
"firstbestpathdone": "true",
"firstbestpathdonetime": "0.948744",
"firstbestpathsignalled": "true",
"firstbestpathsignalledtime": "0.947943",
"importtimerrunning": "false",
"riblibconvergencesent": "0.949081",
"safi": "2",
"total_capable_peers": "0",
"total_configured_peers": "3"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rcvdpeers": {
"ROW_rcvdpeers": [
{
"peer": "19.0.101.1",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.102.3",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.102.4",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.200.200"
}
]
},
"af-name": "VPNv4 Unicast",
"firstbestpathdone": "true",
"firstbestpathdonetime": "00:00:01",
"firstbestpathsignalled": "true",
"firstbestpathsignalledtime": "00:00:01",
"importtimerrunning": "false",
"riblibconvergencesent": "00:00:01",
"safi": "128",
"total_capable_peers": "3",
"total_configured_peers": "4"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rcvdpeers": {
"ROW_rcvdpeers": [
{
"peer": "19.0.101.1",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.102.3",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.102.4",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.200.200"
}
]
},
"af-name": "VPNv6 Unicast",
"firstbestpathdone": "true",
"firstbestpathdonetime": "00:00:01",
"firstbestpathsignalled": "true",
"firstbestpathsignalledtime": "00:00:01",
"importtimerrunning": "false",
"riblibconvergencesent": "00:00:01",
"safi": "128",
"total_capable_peers": "3",
"total_configured_peers": "4"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rcvdpeers": {
"ROW_rcvdpeers": [
{
"peer": "19.0.103.10",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.103.20",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.200.200"
}
]
},
"af-name": "IPv4 MVPN",
"firstbestpathdone": "true",
"firstbestpathdonetime": "0.873732",
"firstbestpathsignalled": "true",
"firstbestpathsignalledtime": "0.867104",
"importtimerrunning": "false",
"riblibconvergencesent": "0.873905",
"safi": "5",
"total_capable_peers": "2",
"total_configured_peers": "3"
}
},
"afi": "1"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rcvdpeers": {
"ROW_rcvdpeers": [
{
"peer": "19.0.103.10",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.103.20",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.200.200"
}
]
},
"af-name": "IPv6 MVPN",
"firstbestpathdone": "true",
"firstbestpathdonetime": "00:00:01",
"firstbestpathsignalled": "true",
"firstbestpathsignalledtime": "00:00:01",
"importtimerrunning": "false",
"riblibconvergencesent": "00:00:01",
"safi": "5",
"total_capable_peers": "2",
"total_configured_peers": "3"
}
},
"afi": "2"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rcvdpeers": {
"ROW_rcvdpeers": [
{
"peer": "19.0.101.1",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.102.3",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.102.4",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.200.200"
}
]
},
"af-name": "L2VPN EVPN",
"firstbestpathdone": "true",
"firstbestpathdonetime": "00:00:01",
"firstbestpathsignalled": "true",
"firstbestpathsignalledtime": "00:00:01",
"importtimerrunning": "false",
"riblibconvergencesent": "00:00:01",
"safi": "70",
"total_capable_peers": "3",
"total_configured_peers": "4"
}
},
"afi": "25"
},
{
"TABLE_safi": {
"ROW_safi": {
"TABLE_rcvdpeers": {
"ROW_rcvdpeers": [
{
"peer": "19.0.101.1",
"signalledtimepeer": "keepalive after bestpath"
},
{
"peer": "19.0.102.3",
"signalledtimepeer": "keepalive after bestpath"
},
{
"ipv6peer": "fec0::2002",
"peer": "19.0.200.200"
}
]
},
"af-name": "Link-State",
"firstbestpathdone": "true",
"firstbestpathdonetime": "00:00:01",
"firstbestpathsignalled": "true",
"firstbestpathsignalledtime": "00:00:01",
"importtimerrunning": "false",
"riblibconvergencesent": "00:00:01",
"safi": "71",
"total_capable_peers": "2",
"total_configured_peers": "4"
}
},
"afi": "16388"
}
]
},
"bestpathtimeout": "300",
"configuredtimeout": "0",
"firstpeerup": "00:00:23",
"timerrunning": "false",
"updatedelay": "false",
"vrf-name-out": "default"
}
},
"configdonetime": "0.866738",
"initwaittime": "00:00:30",
"juststarted": "false",
"ldpconverged": "LDP convergence not required",
"starttime": "6 day(s), 02:33:52",
"ulibconvergencesent": "Convergence to ULIB not required"
},
"code": "200",
"input": "show bgp convergence 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 bgp convergence detail command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp ipv4 multicast received-paths
show bgp ipv4 multicast received-paths
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 bgp ipv4 multicast received-paths",
"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_afi": {
"ROW_afi": {
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "2 3 4",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.2.1.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "2 3 4",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.2.2.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "2 3 4",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.4.1.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "2 3 4",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.4.2.0/24"
}
]
}
}
},
"af-name": "IPv4 Multicast",
"router-id": "19.0.0.6",
"safi": "2",
"table-version": "140597"
}
},
"afi": "1"
}
},
"vrf-name-out": "default"
}
}
},
"code": "200",
"input": "show bgp ipv4 multicast received-paths",
"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 bgp ipv4 multicast received-paths command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp ipv4 unicast community internet no-advertise
show bgp ipv4 unicast community internet no-advertise
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 bgp ipv4 unicast community internet no-advertise",
"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_afi": {
"ROW_afi": {
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": [
{
"aspath": "1 2 3 65000 23",
"best": "none",
"bestcode": {},
"ipnexthop": "21.0.101.99",
"localpref": "100",
"metric": "2222",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
},
{
"aspath": "{1956 38871 10250 47165 18545 55460 26839 63754 35134 6514}",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "1",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
]
},
"ipprefix": "1.1.1.0/24"
},
{
"TABLE_path": {
"ROW_path": [
{
"aspath": "1 2 3 65000 23",
"best": "none",
"bestcode": {},
"ipnexthop": "21.0.101.99",
"localpref": "100",
"metric": "2222",
"origin": "i",
"pathnr": "0",
"status": "invalid",
"statuscode": {},
"type": "internal",
"typecode": "i",
"weight": "0"
},
{
"aspath": "{1956 38871 10250 47165 18545 55460 26839 63754 35134 6514}",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "1",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
]
},
"ipprefix": "1.1.2.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "10 20 30 40 50 60 70 80 90",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.6.0.0/16"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "10 20 30 40 50 60 70 80 90",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.6.1.128/25"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 10 20 30 40 50 60 70 80 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"ipprefix": "2.0.0.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "888 10 20 30 40 50 60 70 80 90",
"best": "none",
"bestcode": {},
"ipnexthop": "19.0.102.3",
"origin": "i",
"pathnr": "0",
"status": "dampened",
"statuscode": "d",
"type": "external",
"typecode": "e",
"weight": "0"
}
},
"ipprefix": "2.0.1.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "0.0.0.0",
"localpref": "100",
"metric": "0",
"origin": "?",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "redist",
"typecode": "r",
"weight": "32768"
}
},
"ipprefix": "104.0.0.0/8"
}
]
}
}
},
"af-name": "IPv4 Unicast",
"router-id": "19.0.0.6",
"safi": "1",
"table-version": "140602"
}
},
"afi": "1"
}
},
"vrf-name-out": "default"
}
}
},
"code": "200",
"input": "show bgp ipv4 unicast community internet no-advertise",
"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 bgp ipv4 unicast community internet no-advertise command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp ipv4 unicast nexthop 19.0.101.1
show bgp ipv4 unicast nexthop 19.0.101.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 bgp ipv4 unicast nexthop 19.0.101.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": {
"outputs": {
"output": {
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"TABLE_afi": {
"ROW_afi": {
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "10 20 30 40 50 60 70 80 90",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.6.0.0/16"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "10 20 30 40 50 60 70 80 90",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.101.1",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.6.1.128/25"
}
]
}
}
},
"af-name": "IPv4 Unicast",
"router-id": "19.0.0.6",
"safi": "1",
"table-version": "140602"
}
},
"afi": "1"
}
},
"vrf-name-out": "default"
}
}
},
"code": "200",
"input": "show bgp ipv4 unicast nexthop 19.0.101.1",
"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 bgp ipv4 unicast nexthop 19.0.101.1 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp ipv4 unicast nexthop-database
show bgp ipv4 unicast nexthop-database
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 bgp ipv4 unicast nexthop-database",
"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_nhvrf": {
"ROW_nhvrf": {
"TABLE_nhafi": {
"ROW_nhafi": {
"TABLE_nhsafi": {
"ROW_nhsafi": {
"TABLE_nexthop": {
"ROW_nexthop": [
{
"TABLE_attachedhops": {
"ROW_attachedhops": {
"attachedhop": "19.0.101.1",
"interface": "Ethernet1/12"
}
},
"attached": "true",
"filtered": "false",
"igpmetric": "0",
"igppref": "250",
"igptype": "0",
"ipnexthop-out": "19.0.101.1",
"labeled": "false",
"local": "false",
"nextadvertise": "Never",
"pendingupdate": "false",
"reachable": "true",
"refcount": "2",
"resolvetime": "6d02h",
"ribroute": "19.0.101.1/32",
"rnhepoch": "2"
},
{
"TABLE_attachedhops": {
"ROW_attachedhops": {
"attachedhop": "19.0.102.3",
"interface": "Ethernet1/12"
}
},
"attached": "true",
"filtered": "false",
"igpmetric": "0",
"igppref": "250",
"igptype": "0",
"ipnexthop-out": "19.0.102.3",
"labeled": "false",
"local": "false",
"nextadvertise": "Never",
"pendingupdate": "false",
"reachable": "true",
"refcount": "2",
"resolvetime": "6d02h",
"ribroute": "19.0.102.3/32",
"rnhepoch": "1"
},
{
"TABLE_attachedhops": {
"ROW_attachedhops": {
"attachedhop": "19.0.102.4",
"interface": "Ethernet1/12"
}
},
"attached": "true",
"filtered": "false",
"igpmetric": "0",
"igppref": "250",
"igptype": "0",
"ipnexthop-out": "19.0.102.4",
"labeled": "false",
"local": "false",
"nextadvertise": "Never",
"pendingupdate": "false",
"reachable": "true",
"refcount": "2",
"resolvetime": "6d02h",
"ribroute": "19.0.102.4/32",
"rnhepoch": "2"
},
{
"attached": "false",
"filtered": "false",
"igpmetric": "-1",
"igppref": "0",
"igptype": "0",
"ipnexthop-out": "21.0.101.99",
"labeled": "false",
"local": "false",
"nextadvertise": "Never",
"pendingupdate": "false",
"reachable": "false",
"refcount": "2",
"resolvetime": "6d02h",
"ribroute": "0.0.0.0/0",
"rnhepoch": "0"
}
]
},
"af-name": "IPv4 Unicast",
"nhcriticaldelay": "3000",
"nhnoncriticaldelay": "10000",
"nhsafi": "1"
}
},
"nhafi": "1"
}
},
"nhvrf-name-out": "default"
}
}
},
"code": "200",
"input": "show bgp ipv4 unicast nexthop-database",
"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 bgp ipv4 unicast nexthop-database command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp ipv4 unicast policy statistics neighbor 19.0.101.1
show bgp ipv4 unicast policy statistics neighbor 19.0.101.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 bgp ipv4 unicast policy statistics neighbor 19.0.101.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": {
"outputs": {
"output": {
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"TABLE_rmap": {
"ROW_rmap": {
"TABLE_cmd": {
"ROW_cmd": {
"command": " match ip address prefix-list PIP-PREFIX",
"comparecount": "5",
"matchcount": "0"
}
},
"action": "deny",
"name": "FILTER-PIP",
"seqnum": "10",
"totalacceptcount": "0",
"totalrejectcount": "5"
}
},
"rpm-handle-count": "1",
"vrf-name-polstats": "default"
}
}
},
"code": "200",
"input": "show bgp ipv4 unicast policy statistics neighbor 19.0.101.1",
"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 bgp ipv4 unicast policy statistics neighbor 19.0.101.1 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp ipv4 unicast regexp "1.1"
show bgp ipv4 unicast regexp "1.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 bgp ipv4 unicast regexp "1.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": {
"outputs": {
"output": {
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"TABLE_afi": {
"ROW_afi": {
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": [
{
"TABLE_path": {
"ROW_path": {
"aspath": "{1956 38871 10250 47165 18545 55460 26839 63754 35134 6514}",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.1.1.0/24"
},
{
"TABLE_path": {
"ROW_path": {
"aspath": "{1956 38871 10250 47165 18545 55460 26839 63754 35134 6514}",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "19.0.102.4",
"localpref": "100",
"origin": "i",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "internal",
"typecode": "i",
"weight": "0"
}
},
"ipprefix": "1.1.2.0/24"
}
]
}
}
},
"af-name": "IPv4 Unicast",
"router-id": "19.0.0.6",
"safi": "1",
"table-version": "140600"
}
},
"afi": "1"
}
},
"vrf-name-out": "default"
}
}
},
"code": "200",
"input": "show bgp ipv4 unicast regexp \"1.1\"",
"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 bgp ipv4 unicast regexp "1.1" command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp ipv4 unicast self-originated vrf vpn1
show bgp ipv4 unicast self-originated vrf vpn1
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 bgp ipv4 unicast self-originated vrf vpn1",
"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_afi": {
"ROW_afi": {
"TABLE_safi": {
"ROW_safi": {
"TABLE_rd": {
"ROW_rd": {
"TABLE_prefix": {
"ROW_prefix": {
"TABLE_path": {
"ROW_path": {
"aspath": "",
"best": "bestpath",
"bestcode": ">",
"ipnexthop": "0.0.0.0",
"localpref": "100",
"metric": "0",
"origin": "?",
"pathnr": "0",
"status": "valid",
"statuscode": "*",
"type": "redist",
"typecode": "r",
"weight": "32768"
}
},
"ipprefix": "104.0.0.0/8"
}
}
}
},
"af-name": "IPv4 Unicast",
"router-id": "0.0.0.0",
"safi": "1",
"table-version": "11"
}
},
"afi": "1"
}
},
"vrf-name-out": "vpn1"
}
}
},
"code": "200",
"input": "show bgp ipv4 unicast self-originated vrf vpn1",
"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 bgp ipv4 unicast self-originated vrf vpn1 command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp process
show bgp 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 bgp 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": {
"outputs": {
"output": {
"body": {
"TABLE_vrf": {
"ROW_vrf": {
"TABLE_af": {
"ROW_af": [
{
"af-id": "0",
"af-name": "IPv4 Unicast",
"af-num-active-peers": "3",
"af-num-peers": "4",
"af-peer-aggregates": "0",
"af-peer-networks": "0",
"af-peer-paths": "9",
"af-peer-routes": "7",
"af-rr": "true",
"af-state": "UP",
"af-table-id": "1",
"default-information-enabled": "false",
"nexthop-trigger-delay-critical": "3000",
"nexthop-trigger-delay-non-critical": "10000"
},
{
"af-id": "1",
"af-name": "IPv4 Multicast",
"af-num-active-peers": "3",
"af-num-peers": "4",
"af-peer-aggregates": "0",
"af-peer-networks": "0",
"af-peer-paths": "4",
"af-peer-routes": "6",
"af-rr": "true",
"af-state": "UP",
"af-table-id": "1",
"default-information-enabled": "false",
"nexthop-trigger-delay-critical": "3000",
"nexthop-trigger-delay-non-critical": "10000"
},
{
"af-id": "2",
"af-name": "IPv6 Unicast",
"af-num-active-peers": "0",
"af-num-peers": "3",
"af-peer-aggregates": "0",
"af-peer-networks": "0",
"af-peer-paths": "1",
"af-peer-routes": "1",
"af-rr": "true",
"af-state": "UP",
"af-table-id": "80000001",
"default-information-enabled": "false",
"nexthop-trigger-delay-critical": "3000",
"nexthop-trigger-delay-non-critical": "10000"
},
{
"af-id": "3",
"af-name": "IPv6 Multicast",
"af-num-active-peers": "0",
"af-num-peers": "3",
"af-peer-aggregates": "0",
"af-peer-networks": "0",
"af-peer-paths": "0",
"af-peer-routes": "0",
"af-rr": "true",
"af-state": "UP",
"af-table-id": "80000001",
"default-information-enabled": "false",
"nexthop-trigger-delay-critical": "3000",
"nexthop-trigger-delay-non-critical": "10000"
},
{
"af-id": "4",
"af-name": "VPNv4 Unicast",
"af-num-active-peers": "3",
"af-num-peers": "4",
"af-peer-aggregates": "0",
"af-peer-networks": "0",
"af-peer-paths": "8",
"af-peer-routes": "6",
"af-rr": "true",
"af-state": "UP",
"af-table-id": "1",
"default-information-enabled": "false",
"nexthop-trigger-delay-critical": "3000",
"nexthop-trigger-delay-non-critical": "10000"
},
{
"af-id": "5",
"af-name": "VPNv6 Unicast",
"af-num-active-peers": "3",
"af-num-peers": "4",
"af-peer-aggregates": "0",
"af-peer-networks": "0",
"af-peer-paths": "4",
"af-peer-routes": "4",
"af-rr": "true",
"af-state": "UP",
"af-table-id": "80000001",
"default-information-enabled": "false",
"nexthop-trigger-delay-critical": "3000",
"nexthop-trigger-delay-non-critical": "10000"
},
{
"af-id": "9",
"af-name": "IPv4 MVPN",
"af-num-active-peers": "2",
"af-num-peers": "3",
"af-peer-aggregates": "0",
"af-peer-networks": "0",
"af-peer-paths": "35",
"af-peer-routes": "35",
"af-retain-rt": "enabled all",
"af-rr": "true",
"af-state": "UP",
"af-table-id": "1",
"default-information-enabled": "false",
"nexthop-trigger-delay-critical": "3000",
"nexthop-trigger-delay-non-critical": "10000"
},
{
"af-id": "10",
"af-name": "IPv6 MVPN",
"af-num-active-peers": "2",
"af-num-peers": "3",
"af-peer-aggregates": "0",
"af-peer-networks": "0",
"af-peer-paths": "20",
"af-peer-routes": "20",
"af-retain-rt": "enabled all",
"af-rr": "true",
"af-state": "UP",
"af-table-id": "80000001",
"default-information-enabled": "false",
"nexthop-trigger-delay-critical": "3000",
"nexthop-trigger-delay-non-critical": "10000"
},
{
"af-id": "12",
"af-name": "L2VPN EVPN",
"af-num-active-peers": "3",
"af-num-peers": "4",
"af-peer-aggregates": "0",
"af-peer-networks": "0",
"af-peer-paths": "17",
"af-peer-routes": "13",
"af-retain-rt": "enabled all",
"af-rr": "true",
"af-state": "UP",
"af-table-id": "1",
"default-information-enabled": "false",
"nexthop-trigger-delay-critical": "3000",
"nexthop-trigger-delay-non-critical": "10000"
},
{
"af-id": "13",
"af-name": "Link-State",
"af-num-active-peers": "2",
"af-num-peers": "4",
"af-peer-aggregates": "0",
"af-peer-networks": "0",
"af-peer-paths": "4",
"af-peer-routes": "4",
"af-rr": "true",
"af-state": "UP",
"af-table-id": "1",
"default-information-enabled": "false",
"nexthop-trigger-delay-critical": "3000",
"nexthop-trigger-delay-non-critical": "10000"
}
]
},
"vrf-cfgd-id": "0.0.0.0",
"vrf-cluster-id": "0.0.0.0",
"vrf-confed-id": "0",
"vrf-delete-pending": "false",
"vrf-est-peers": "5",
"vrf-id": "1",
"vrf-name-out": "default",
"vrf-peers": "8",
"vrf-pending-peers": "0",
"vrf-router-id": "19.0.0.6",
"vrf-state": "UP",
"vrf-vni-id": "0",
"vrf-vni-id-valid": "false"
}
},
"asformat": "asplain",
"aspathbytes": "1536",
"aspathentries": "28",
"attributeentries": "37",
"bytesused": "4292",
"entriespendingdelete": "0",
"forwardingstatesaved": "false",
"hwmattributeentries": "38",
"hwmentriespendingdelete": "0",
"isolatemode": "No",
"memorystate": "OK",
"mmode": "Initialized",
"pathsperattribute": "10",
"processid": "2682",
"protocolstartedreason": "configuration",
"protocolstate": "Running",
"protocoltag": "333"
},
"code": "200",
"input": "show bgp process",
"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 bgp process command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp sessions
show bgp sessions
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 bgp sessions",
"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_neighbor": {
"ROW_neighbor": [
{
"connectionsdropped": "0",
"lastflap": "P6DT2H33M31S",
"lastread": "PT51S",
"lastwrite": "PT34S",
"localport": "179",
"neighbor-id": "19.0.101.1",
"notificationsreceived": "0",
"notificationssent": "0",
"remoteas": "333",
"remoteport": "37989",
"state": "Established"
},
{
"connectionsdropped": "0",
"lastflap": "P6DT2H33M31S",
"lastread": "PT4S",
"lastwrite": "PT34S",
"localport": "179",
"neighbor-id": "19.0.102.3",
"notificationsreceived": "0",
"notificationssent": "0",
"remoteas": "888",
"remoteport": "46134",
"state": "Established"
},
{
"connectionsdropped": "0",
"lastflap": "P6DT2H33M31S",
"lastread": "PT51S",
"lastwrite": "PT34S",
"localport": "179",
"neighbor-id": "19.0.102.4",
"notificationsreceived": "0",
"notificationssent": "0",
"remoteas": "333",
"remoteport": "43271",
"state": "Established"
},
{
"connectionsdropped": "0",
"lastflap": "P6DT2H33M31S",
"lastread": "PT51S",
"lastwrite": "PT34S",
"localport": "179",
"neighbor-id": "19.0.103.10",
"notificationsreceived": "0",
"notificationssent": "0",
"remoteas": "999",
"remoteport": "35158",
"state": "Established"
},
{
"connectionsdropped": "0",
"lastflap": "P6DT2H33M28S",
"lastread": "PT48S",
"lastwrite": "PT31S",
"localport": "179",
"neighbor-id": "19.0.103.20",
"notificationsreceived": "0",
"notificationssent": "0",
"remoteas": "333",
"remoteport": "41777",
"state": "Established"
},
{
"connectionsdropped": "0",
"lastflap": "P6DT2H33M45S",
"localport": "0",
"neighbor-id": "19.0.200.200",
"notificationsreceived": "0",
"notificationssent": "0",
"remoteas": "0",
"remoteport": "0",
"state": "Idle"
},
{
"connectionsdropped": "0",
"lastflap": "P6DT2H33M48S",
"localport": "0",
"neighbor-id": "fec0::1002",
"notificationsreceived": "0",
"notificationssent": "0",
"remoteas": "333",
"remoteport": "0",
"state": "Idle"
},
{
"connectionsdropped": "0",
"lastflap": "P6DT2H33M48S",
"localport": "0",
"neighbor-id": "fec0::2002",
"notificationsreceived": "0",
"notificationssent": "0",
"remoteas": "888",
"remoteport": "0",
"state": "Idle"
}
]
},
"local-as": "333",
"router-id": "19.0.0.6",
"vrf-name-out": "default",
"vrfestablishedpeers": "5",
"vrfpeers": "8"
}
},
"localas": "333",
"totalestablishedpeers": "5",
"totalpeers": "9"
},
"code": "200",
"input": "show bgp sessions",
"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 bgp sessions command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|
show bgp statistics
show bgp 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 bgp 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": {
"outputs": {
"output": {
"body": {
"byterecvd": "840124",
"bytesent": "59892911",
"caprecvd": "0",
"capsent": "0",
"karecvd": "44040",
"kasent": "43970",
"msgrecvd": "537111",
"msgsent": "44002",
"notifrecvd": "0",
"notifsent": "0",
"openrecvd": "5",
"opensent": "5",
"rrefreshrecvd": "0",
"rrefreshsent": "0",
"updaterecvd": "493066",
"updatesent": "54"
},
"code": "200",
"input": "show bgp statistics",
"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 bgp statistics command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).
| CLI Output |
|---|
|