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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show vpc
Legend: (*) - local vPC is down, forwarding via vPC peer-link vPC domain id : 100 Peer status : peer adjacency formed ok
vPC keep-alive status : peer is alive
Configuration consistency status : success Per-vlan consistency status : success
Type-2 consistency status : success vPC role : secondary
Number of vPCs configured : 12
Peer Gateway : Enabled Dual-active excluded VLANs : - Graceful Consistency Check : Enabled Auto-recovery status : Enabled, timer is off.(timeout = 240s) Delay-restore status : Timer is off.(timeout = 30s) Delay-restore SVI status : Timer is off.(timeout = 10s) Operational Layer3 Peer-router : Disabled vPC Peer-link status --------------------------------------------------------------------- id Port Status Active vlans
-- ---- ------ ------------------------------------------------- 1 Po100 up 1-501
vPC status ---------------------------------------------------------------------------- Id Port Status Consistency Reason Active vlans -- ------------ ------ ----------- ------ --------------- 1 Po1 up success success 1-100,302-501
2 Po2 up success success 1-501
3 Po3 up success success 100
4 Po4 up success success 500
5 Po5 up success success 1-501
6 Po6 up success success 1-501
7 Po7 up success success 1-501
8 Po8 up success success 200
9 Po9 up success success 100
10 Po10 up success success 400
30 Po30 up success success 220
50 Po50 up success success 1-501
Please check "show vpc consistency-parameters vpc " for the consistency reason of down vpc and for type-2 consistency reasons for any vpc.

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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show vpc orphan-ports 
Note: 
--------::Going through port database. Please be patient.::--------

VLAN           Orphan Ports
------- ------------------------- 1 Po21, Eth1/45
2 Po21, Eth1/45
3 Po21, Eth1/45
4 Po21, Eth1/45
5 Po21, Eth1/45
6 Po21, Eth1/45
7 Po21, Eth1/45
8 Po21, Eth1/45
9 Po21, Eth1/45
10 Po21, Eth1/45
11 Po21, Eth1/45
12 Po21, Eth1/45
13 Po21, Eth1/45
14 Po21, Eth1/45
15 Po21, Eth1/45
16 Po21, Eth1/45
17 Po21, Eth1/45
18 Po21, Eth1/45
19 Po21, Eth1/45
20 Po21, Eth1/45
21 Po21, Eth1/45
22 Po21, Eth1/45
23 Po21, Eth1/45
24 Po21, Eth1/45
25 Po21, Eth1/45
26 Po21, Eth1/45
27 Po21, Eth1/45
28 Po21, Eth1/45
29 Po21, Eth1/45
30 Po21, Eth1/45
31 Po21, Eth1/45
32 Po21, Eth1/45
33 Po21, Eth1/45
34 Po21, Eth1/45
35 Po21, Eth1/45
36 Po21, Eth1/45
37 Po21, Eth1/45
38 Po21, Eth1/45
39 Po21, Eth1/45
40 Po21, Eth1/45
41 Po21, Eth1/45
42 Po21, Eth1/45
43 Po21, Eth1/45
44 Po21, Eth1/45
45 Po21, Eth1/45
46 Po21, Eth1/45
47 Po21, Eth1/45
48 Po21, Eth1/45
49 Po21, Eth1/45
50 Po21, Eth1/45
51 Po21, Eth1/45
52 Po21, Eth1/45
53 Po21, Eth1/45
54 Po21, Eth1/45
55 Po21, Eth1/45
56 Po21, Eth1/45
57 Po21, Eth1/45
58 Po21, Eth1/45
59 Po21, Eth1/45
60 Po21, Eth1/45
61 Po21, Eth1/45
62 Po21, Eth1/45
63 Po21, Eth1/45
64 Po21, Eth1/45
65 Po21, Eth1/45
66 Po21, Eth1/45
67 Po21, Eth1/45
68 Po21, Eth1/45
69 Po21, Eth1/45
70 Po21, Eth1/45
71 Po21, Eth1/45
72 Po21, Eth1/45
73 Po21, Eth1/45
74 Po21, Eth1/45
75 Po21, Eth1/45
76 Po21, Eth1/45
77 Po21, Eth1/45
78 Po21, Eth1/45
79 Po21, Eth1/45
80 Po21, Eth1/45
81 Po21, Eth1/45
82 Po21, Eth1/45
83 Po21, Eth1/45
84 Po21, Eth1/45
85 Po21, Eth1/45
86 Po21, Eth1/45
87 Po21, Eth1/45
88 Po21, Eth1/45
89 Po21, Eth1/45
90 Po21, Eth1/45
91 Po21, Eth1/45
92 Po21, Eth1/45
93 Po21, Eth1/45
94 Po21, Eth1/45
95 Po21, Eth1/45
96 Po21, Eth1/45
97 Po21, Eth1/45
98 Po21, Eth1/45
99 Po21, Eth1/45
100 Po21, Eth1/44, Eth1/45
200 Po21
302 Po21, Eth1/45
303 Po21, Eth1/45
304 Po21, Eth1/45
305 Po21, Eth1/45
306 Po21, Eth1/45
307 Po21, Eth1/45
308 Po21, Eth1/45
309 Po21, Eth1/45
310 Po21, Eth1/45
311 Po21, Eth1/45
312 Po21, Eth1/45
313 Po21, Eth1/45
314 Po21, Eth1/45
315 Po21, Eth1/45
316 Po21, Eth1/45
317 Po21, Eth1/45
318 Po21, Eth1/45
319 Po21, Eth1/45
320 Po21, Eth1/45
321 Po21, Eth1/45
322 Po21, Eth1/45
323 Po21, Eth1/45
324 Po21, Eth1/45
325 Po21, Eth1/45
326 Po21, Eth1/45
327 Po21, Eth1/45
328 Po21, Eth1/45
329 Po21, Eth1/45
330 Po21, Eth1/45
331 Po21, Eth1/45
332 Po21, Eth1/45
333 Po21, Eth1/45
334 Po21, Eth1/45
335 Po21, Eth1/45
336 Po21, Eth1/45
337 Po21, Eth1/45
338 Po21, Eth1/45
339 Po21, Eth1/45
340 Po21, Eth1/45
341 Po21, Eth1/45
342 Po21, Eth1/45
343 Po21, Eth1/45
344 Po21, Eth1/45
345 Po21, Eth1/45
346 Po21, Eth1/45
347 Po21, Eth1/45
348 Po21, Eth1/45
349 Po21, Eth1/45
350 Po21, Eth1/45
351 Po21, Eth1/45
352 Po21, Eth1/45
353 Po21, Eth1/45
354 Po21, Eth1/45
355 Po21, Eth1/45
356 Po21, Eth1/45
357 Po21, Eth1/45
358 Po21, Eth1/45
359 Po21, Eth1/45
360 Po21, Eth1/45
361 Po21, Eth1/45
362 Po21, Eth1/45
363 Po21, Eth1/45
364 Po21, Eth1/45
365 Po21, Eth1/45
366 Po21, Eth1/45
367 Po21, Eth1/45
368 Po21, Eth1/45
369 Po21, Eth1/45
370 Po21, Eth1/45
371 Po21, Eth1/45
372 Po21, Eth1/45
373 Po21, Eth1/45
374 Po21, Eth1/45
375 Po21, Eth1/45
376 Po21, Eth1/45
377 Po21, Eth1/45
378 Po21, Eth1/45
379 Po21, Eth1/45
380 Po21, Eth1/45
381 Po21, Eth1/45
382 Po21, Eth1/45
383 Po21, Eth1/45
384 Po21, Eth1/45
385 Po21, Eth1/45
386 Po21, Eth1/45
387 Po21, Eth1/45
388 Po21, Eth1/45
389 Po21, Eth1/45
390 Po21, Eth1/45
391 Po21, Eth1/45
392 Po21, Eth1/45
393 Po21, Eth1/45
394 Po21, Eth1/45
395 Po21, Eth1/45
396 Po21, Eth1/45
397 Po21, Eth1/45
398 Po21, Eth1/45
399 Po21, Eth1/45
400 Po21, Eth1/45
401 Po21, Eth1/45
402 Po21, Eth1/45
403 Po21, Eth1/45
404 Po21, Eth1/45
405 Po21, Eth1/45
406 Po21, Eth1/45
407 Po21, Eth1/45
408 Po21, Eth1/45
409 Po21, Eth1/45
410 Po21, Eth1/45
411 Po21, Eth1/45
412 Po21, Eth1/45
413 Po21, Eth1/45
414 Po21, Eth1/45
415 Po21, Eth1/45
416 Po21, Eth1/45
417 Po21, Eth1/45
418 Po21, Eth1/45
419 Po21, Eth1/45
420 Po21, Eth1/45
421 Po21, Eth1/45
422 Po21, Eth1/45
423 Po21, Eth1/45
424 Po21, Eth1/45
425 Po21, Eth1/45
426 Po21, Eth1/45
427 Po21, Eth1/45
428 Po21, Eth1/45
429 Po21, Eth1/45
430 Po21, Eth1/45
431 Po21, Eth1/45
432 Po21, Eth1/45
433 Po21, Eth1/45
434 Po21, Eth1/45
435 Po21, Eth1/45
436 Po21, Eth1/45
437 Po21, Eth1/45
438 Po21, Eth1/45
439 Po21, Eth1/45
440 Po21, Eth1/45
441 Po21, Eth1/45
442 Po21, Eth1/45
443 Po21, Eth1/45
444 Po21, Eth1/45
445 Po21, Eth1/45
446 Po21, Eth1/45
447 Po21, Eth1/45
448 Po21, Eth1/45
449 Po21, Eth1/45
450 Po21, Eth1/45
451 Po21, Eth1/45
452 Po21, Eth1/45
453 Po21, Eth1/45
454 Po21, Eth1/45
455 Po21, Eth1/45
456 Po21, Eth1/45
457 Po21, Eth1/45
458 Po21, Eth1/45
459 Po21, Eth1/45
460 Po21, Eth1/45
461 Po21, Eth1/45
462 Po21, Eth1/45
463 Po21, Eth1/45
464 Po21, Eth1/45
465 Po21, Eth1/45
466 Po21, Eth1/45
467 Po21, Eth1/45
468 Po21, Eth1/45
469 Po21, Eth1/45
470 Po21, Eth1/45
471 Po21, Eth1/45
472 Po21, Eth1/45
473 Po21, Eth1/45
474 Po21, Eth1/45
475 Po21, Eth1/45
476 Po21, Eth1/45
477 Po21, Eth1/45
478 Po21, Eth1/45
479 Po21, Eth1/45
480 Po21, Eth1/45
481 Po21, Eth1/45
482 Po21, Eth1/45
483 Po21, Eth1/45
484 Po21, Eth1/45
485 Po21, Eth1/45
486 Po21, Eth1/45
487 Po21, Eth1/45
488 Po21, Eth1/45
489 Po21, Eth1/45
490 Po21, Eth1/45
491 Po21, Eth1/45
492 Po21, Eth1/45
493 Po21, Eth1/45
494 Po21, Eth1/45
495 Po21, Eth1/45
496 Po21, Eth1/45
497 Po21, Eth1/45
498 Po21, Eth1/45
499 Po21, Eth1/45
500 Po21, Eth1/43, Eth1/45
501 Po21, Eth1/45

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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show vpc peer-keepalive 

vPC keep-alive status             : peer is alive
--Peer is alive for : (34882) seconds, (693) msec --Send status : Success --Last send at : 2018.08.08 03:32:11 372 ms --Sent on interface : mgmt0 --Receive status : Success --Last receive at : 2018.08.08 03:32:11 373 ms --Received on interface : mgmt0 --Last update from peer : (0) seconds, (138) msec vPC Keep-alive parameters --Destination : 172.31.144.182 --Keepalive interval : 1000 msec --Keepalive timeout : 5 seconds --Keepalive hold timeout : 3 seconds --Keepalive vrf : management --Keepalive udp port : 3200 --Keepalive tos : 192

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:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show vpc role 

vPC Role status
----------------------------------------------------
vPC role                        : secondary
Dual Active Detection Status : 0 vPC system-mac : 00:23:04:ee:be:64
vPC system-priority : 32667 vPC local system-mac : 2c:d0:2d:50:be:ff
vPC local role-priority : 32667 vPC local config role-priority : 32667 vPC peer system-mac : 2c:d0:2d:50:d0:5b
vPC peer role-priority : 100 vPC peer config role-priority : 100