How to Get Cisco (CDP) Data on the Command Line.

Troubleshooting networking is rather difficult if you can only connect to your ESX box via the console. Luckily I came across the instructions below

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 .

Here is the link to the VMware KB Article.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s