Cisco Nexus 9000 Series NX-API CLI Reference, Release 7(x)
NX-OS 7(x)
- Cisco Nexus 9000 Series NX-API CLI Reference, Release 7.x
- About NX-API CLI
- Access-List Commands
- BFD Commands
- BGP Commands
- show bgp all dampening flap-statistics
- show bgp all extcommunity 4byteas-generic transitive 3:100
- show bgp all neighbors 19.0.102.3 flap-statistics vrf all
- show bgp all route-map perMIT_aLL_RM
- show bgp all summary
- show bgp bmp server
- show bgp convergence detail
- show bgp ipv4 multicast received-paths
- show bgp ipv4 unicast community internet no-advertise
- show bgp ipv4 unicast nexthop 19.0.101.1
- show bgp ipv4 unicast nexthop-database
- show bgp ipv4 unicast policy statistics neighbor 19.0.101.1
- show bgp ipv4 unicast regexp "1.1"
- show bgp ipv4 unicast self-originated vrf vpn1
- show bgp process
- show bgp sessions
- show bgp statistics
- CDP Commands
- DHCP Commands
- Diagnostic Commands
- Environment Commands
- Flow Commands
- Hardware Commands
- Interface Commands
- Inventory Commands
- LLDP Commands
- Module Commands
- NVE Commands
- RADIUS Commands
- SNMP Commands
- System Commands
- TACACS Commands
- Version Commands
show bgp all dampening flap-statistics
Python
Copy
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"
}
}