show vpc
show vpc
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 vpc ",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show vpc",
"msg": "Success",
"code": "200",
"body": {
"vpc-domain-id": "100",
"vpc-peer-status": "peer-ok",
"vpc-peer-status-reason": "SUCCESS",
"vpc-peer-keepalive-status": "peer-alive",
"vpc-peer-consistency": "consistent",
"vpc-per-vlan-peer-consistency": "consistent",
"vpc-peer-consistency-status": "SUCCESS",
"vpc-type-2-consistency": "consistent",
"vpc-type-2-consistency-status": "SUCCESS",
"vpc-role": "secondary",
"num-of-vpcs": "12",
"peer-gateway": "1",
"dual-active-excluded-vlans": "-",
"vpc-graceful-consistency-check-status": "enabled",
"vpc-auto-recovery-status": "Enabled, timer is off.(timeout = 240s)",
"vpc-delay-restore-status": "Timer is off.(timeout = 30s)",
"vpc-delay-restore-svi-status": "Timer is off.(timeout = 10s)",
"operational-l3-peer": "Disabled",
"vpc-peer-link-hdr": "Start of VPC peer-link table",
"TABLE_peerlink": {
"ROW_peerlink": {
"peer-link-id": "1",
"peerlink-ifindex": "Po100",
"peer-link-port-state": "1",
"peer-up-vlan-bitset": "1-501"
}
},
"vpc-end": [
"End of table",
"End of table"
],
"vpc-hdr": "Start of vPC table",
"vpc-not-es": "vPC complex",
"TABLE_vpc": {
"ROW_vpc": [
{
"vpc-id": "1",
"vpc-ifindex": "Po1",
"vpc-port-state": "1",
"phy-port-if-removed": "disabled",
"vpc-thru-peerlink": "0",
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS",
"up-vlan-bitset": "1-100,302-501",
"es-attr": "DF: Invalid"
},
{
"vpc-id": "2",
"vpc-ifindex": "Po2",
"vpc-port-state": "1",
"phy-port-if-removed": "disabled",
"vpc-thru-peerlink": "0",
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS",
"up-vlan-bitset": "1-501",
"es-attr": "DF: Invalid"
},
{
"vpc-id": "3",
"vpc-ifindex": "Po3",
"vpc-port-state": "1",
"phy-port-if-removed": "disabled",
"vpc-thru-peerlink": "0",
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS",
"up-vlan-bitset": "100",
"es-attr": "DF: Invalid"
},
{
"vpc-id": "4",
"vpc-ifindex": "Po4",
"vpc-port-state": "1",
"phy-port-if-removed": "disabled",
"vpc-thru-peerlink": "0",
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS",
"up-vlan-bitset": "500",
"es-attr": "DF: Invalid"
},
{
"vpc-id": "5",
"vpc-ifindex": "Po5",
"vpc-port-state": "1",
"phy-port-if-removed": "disabled",
"vpc-thru-peerlink": "0",
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS",
"up-vlan-bitset": "1-501",
"es-attr": "DF: Invalid"
},
{
"vpc-id": "6",
"vpc-ifindex": "Po6",
"vpc-port-state": "1",
"phy-port-if-removed": "disabled",
"vpc-thru-peerlink": "0",
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS",
"up-vlan-bitset": "1-501",
"es-attr": "DF: Invalid"
},
{
"vpc-id": "7",
"vpc-ifindex": "Po7",
"vpc-port-state": "1",
"phy-port-if-removed": "disabled",
"vpc-thru-peerlink": "0",
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS",
"up-vlan-bitset": "1-501",
"es-attr": "DF: Invalid"
},
{
"vpc-id": "8",
"vpc-ifindex": "Po8",
"vpc-port-state": "1",
"phy-port-if-removed": "disabled",
"vpc-thru-peerlink": "0",
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS",
"up-vlan-bitset": "200",
"es-attr": "DF: Invalid"
},
{
"vpc-id": "9",
"vpc-ifindex": "Po9",
"vpc-port-state": "1",
"phy-port-if-removed": "disabled",
"vpc-thru-peerlink": "0",
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS",
"up-vlan-bitset": "100",
"es-attr": "DF: Invalid"
},
{
"vpc-id": "10",
"vpc-ifindex": "Po10",
"vpc-port-state": "1",
"phy-port-if-removed": "disabled",
"vpc-thru-peerlink": "0",
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS",
"up-vlan-bitset": "400",
"es-attr": "DF: Invalid"
},
{
"vpc-id": "30",
"vpc-ifindex": "Po30",
"vpc-port-state": "1",
"phy-port-if-removed": "disabled",
"vpc-thru-peerlink": "0",
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS",
"up-vlan-bitset": "220",
"es-attr": "DF: Invalid"
},
{
"vpc-id": "50",
"vpc-ifindex": "Po50",
"vpc-port-state": "1",
"phy-port-if-removed": "disabled",
"vpc-thru-peerlink": "0",
"vpc-consistency": "consistent",
"vpc-consistency-status": "SUCCESS",
"up-vlan-bitset": "1-501",
"es-attr": "DF: Invalid"
}
]
}
}}}}}}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show vpc command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show vpc orphan-ports
show vpc orphan-ports
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 vpc orphan-ports ",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "how vpc orphan-ports",
"msg": "Success",
"code": "200",
"body": {
"TABLE_orphan_ports": {
"ROW_orphan_ports": [
{
"vpc-vlan": "1",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "2",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "3",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "4",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "5",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "6",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "7",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "8",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "9",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "10",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "11",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "12",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "13",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "14",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "15",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "16",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "17",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "18",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "19",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "20",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "21",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "22",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "23",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "24",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "25",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "26",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "27",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "28",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "29",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "30",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "31",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "32",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "33",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "34",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "35",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "36",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "37",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "38",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "39",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "40",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "41",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "42",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "43",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "44",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "45",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "46",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "47",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "48",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "49",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "50",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "51",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "52",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "53",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "54",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "55",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "56",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "57",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "58",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "59",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "60",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "61",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "62",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "63",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "64",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "65",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "66",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "67",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "68",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "69",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "70",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "71",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "72",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "73",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "74",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "75",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "76",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "77",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "78",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "79",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "80",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "81",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "82",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "83",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "84",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "85",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "86",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "87",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "88",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "89",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "90",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "91",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "92",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "93",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "94",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "95",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "96",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "97",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "98",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "99",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "100",
"vpc-orphan-ports": "Po21, Eth1/44, Eth1/45"
},
{
"vpc-vlan": "200",
"vpc-orphan-ports": "Po21"
},
{
"vpc-vlan": "302",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "303",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "304",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "305",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "306",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "307",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "308",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "309",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "310",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "311",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "312",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "313",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "314",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "315",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "316",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "317",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "318",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "319",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "320",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "321",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "322",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "323",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "324",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "325",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "326",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "327",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "328",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "329",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "330",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "331",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "332",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "333",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "334",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "335",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "336",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "337",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "338",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "339",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "340",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "341",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "342",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "343",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "344",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "345",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "346",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "347",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "348",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "349",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "350",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "351",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "352",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "353",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "354",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "355",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "356",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "357",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "358",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "359",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "360",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "361",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "362",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "363",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "364",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "365",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "366",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "367",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "368",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "369",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "370",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "371",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "372",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "373",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "374",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "375",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "376",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "377",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "378",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "379",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "380",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "381",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "382",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "383",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "384",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "385",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "386",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "387",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "388",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "389",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "390",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "391",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "392",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "393",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "394",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "395",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "396",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "397",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "398",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "399",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "400",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "401",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "402",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "403",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "404",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "405",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "406",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "407",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "408",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "409",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "410",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "411",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "412",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "413",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "414",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "415",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "416",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "417",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "418",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "419",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "420",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "421",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "422",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "423",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "424",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "425",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "426",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "427",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "428",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "429",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "430",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "431",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "432",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "433",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "434",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "435",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "436",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "437",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "438",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "439",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "440",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "441",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "442",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "443",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "444",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "445",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "446",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "447",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "448",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "449",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "450",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "451",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "452",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "453",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "454",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "455",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "456",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "457",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "458",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "459",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "460",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "461",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "462",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "463",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "464",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "465",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "466",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "467",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "468",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "469",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "470",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "471",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "472",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "473",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "474",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "475",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "476",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "477",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "478",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "479",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "480",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "481",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "482",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "483",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "484",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "485",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "486",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "487",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "488",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "489",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "490",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "491",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "492",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "493",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "494",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "495",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "496",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "497",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "498",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "499",
"vpc-orphan-ports": "Po21, Eth1/45"
},
{
"vpc-vlan": "500",
"vpc-orphan-ports": "Po21, Eth1/43, Eth1/45"
},
{
"vpc-vlan": "501",
"vpc-orphan-ports": "Po21, Eth1/45"
}
]
}
}}}}}}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show vpc orphan-ports command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show vpc peer-keepalive
show vpc peer-keepalive
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 vpc peer-keepalive ",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show vpc peer-keepalive",
"msg": "Success",
"code": "200",
"body": {
"vpc-peer-keepalive-status": "peer-alive",
"vpc-keepalive-dest": [
"172.31.144.182",
"172.31.144.182"
],
"vpc-keepalive-send-interface": "mgmt0",
"vpc-keepalive-receive-interface": "mgmt0",
"vpc-keepalive-send-tstamp": "2018.08.08 03:32:10 372 ms",
"vpc-keepalive-receive-tstamp": "2018.08.08 03:32:10 373 ms",
"vpc-peer-keepalive-up-time": "(34882) seconds, (450) msec",
"vpc-keepalive-send-status": "Success",
"vpc-keepalive-receive-status": "Success",
"vpc-keepalive-lastupdate": "(0) seconds, (895) msec",
"vpc-keepalive-interval": "1000",
"vpc-keepalive-timeout": "5",
"vpc-keepalive-hold-timeout": "3",
"vpc-keepalive-vrf": "management",
"vpc-keepalive-udp-port": "3200",
"vpc-keepalive-tos": "192"
}}}}}}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show vpc peer-keepalive command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|
show vpc role
show vpc role
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 vpc role ",
"output_format": "json"
}
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"input": "show vpc role",
"msg": "Success",
"code": "200",
"body": {
"vpc-peer-status": "peer-ok",
"vpc-peer-status-reason": "SUCCESS",
"vpc-current-role": "secondary",
"dual-active-detected": "1024",
"vpc-system-mac": "00:23:04:ee:be:64",
"vpc-system-prio": "32667",
"vpc-local-system-mac": "2c:d0:2d:50:be:ff",
"vpc-local-system-prio": "32667",
"vpc-local-role-prio": "32667",
"vpc-peer-system-mac": "2c:d0:2d:50:d0:5b",
"vpc-peer-system-prio": "100",
"vpc-peer-role-prio": "100"
}}}}}}
The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show vpc role command, see the CLI command reference:
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output |
---|
|