Knowledge Base

Search the Knowledge Base:

Products:
Search In:
 

Cisco Discovery Protocol (CDP) network information via command line and VirtualCenter on an ESX host

Purpose

This article describes configuring and viewing Cisco Discovery Protocol (CDP) on ESX 3.x .

Resolution

 

Extracting CDP information via the ESX command line 

 
To extract CDP information using the ESX command line:
  1. Log in into ESX 3.5 via SSH as root.
  2. Run the following command on ESX command line :

    > vmware-vim-cmd hostsvc/net/query_networkhint

  3. The following information is displayed:
  • Virtual switch port information
  • CDP information from the physical Cisco switch connecting to the ESX host .
The following is an example output of the CDP command:

(vim.host.PhysicalNic.NetworkHint) [
   (vim.host.PhysicalNic.NetworkHint) {
      dynamicType = <unset>,
      device = "vmnic3",
      subnet = (vim.host.PhysicalNic.NetworkHint.IpNetwork) [
         (vim.host.PhysicalNic.NetworkHint.IpNetwork) {
            dynamicType = <unset>,
            vlanId = 0,
            ipSubnet = "10.21.4.1-10.21.7.254",
         }
      ],
      connectedSwitchPort = (vim.host.PhysicalNic.CdpInfo) null,
   },
   (vim.host.PhysicalNic.NetworkHint) {
      dynamicType = <unset>,
      device = "vmnic1",
      subnet = (vim.host.PhysicalNic.NetworkHint.IpNetwork) [
         (vim.host.PhysicalNic.NetworkHint.IpNetwork) {
            dynamicType = <unset>,
            vlanId = 0,
            ipSubnet = "10.21.3.1-10.21.3.15",
         }
      ],
      connectedSwitchPort = (vim.host.PhysicalNic.CdpInfo) {
         dynamicType = <unset>,
         cdpVersion = 0,
         timeout = 0,
         ttl = 169,
         samples = 2982,
         devId = "PA-3210-2-R15-SW1",
         address = "10.21.10.115",
         portId = "GigabitEthernet1/0/7",     <<<<<<<Switch Port ID>>>>>>
         deviceCapability = (vim.host.PhysicalNic.CdpDeviceCapability) {
            dynamicType = <unset>,
            router = false,
            transparentBridge = false,
            sourceRouteBridge = false,
            networkSwitch = true,
            host = false,
            igmpEnabled = true,
            repeater = false,
         },
         softwareVersion = "Cisco IOS Software, C3750 Softw",
         hardwarePlatform = "cisco WS-C3750G-48TS",
         ipPrefix = "0.0.0.0",
         ipPrefixLen = 0,
         vlan = 3,                                  <<<<<<<VLAN ID>>>>>>>>>>>>
         fullDuplex = true,
         mtu = 0,
         systemName = "",
         systemOID = "",
         mgmtAddr = "10.21.10.115",
         location = "",
      },
   },
  

Extracting CDP information via VirtualCenter

To extract CDP information using VirtualCenter:

  1. Log in in to Virtual Center
  2. Select Host > Configuration > Networking > Select Tool Tip (the balloon icon) under vSwitch Properties .

    The following screen shot highlights where to click to view CDP information:


    Selecting the above tool tip will open CDP infromnation pop-up.

    The following screen shot illustrates the CDP window.

Additional Information

Extracting network Information via Cisco Discovery Protocol (CDP)

Feedback

Rating: 1 - Lowest 2 3 4 5 - Highest (0 Ratings)   

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (2000 or fewer characters)
Submit
Rating: 1 - Lowest 2 3 4 5 - Highest (0 Ratings)   
Actions