bernz
Enthusiast
Enthusiast

Extract Host CDP Information

Jump to solution

Hi all

It would be appreciated a lot if someone can help me provide script to extract all host CDP information for reporting and output it to excel or csv file.

Output would be this format:

DatacenterClusternameHostVMnicMACSpeedDuplexDevice IDAddressPort IDHardware PlatformVLANStatus
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Have a look at 1.  Re: Cisco Discovery Protocol

Let us know how far that brings you.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
5 Replies
LucD
Leadership
Leadership
Have a look at 1.  Re: Cisco Discovery Protocol

Let us know how far that brings you.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
bernz
Enthusiast
Enthusiast

I'll give a try and let you know.

0 Kudos
bernz
Enthusiast
Enthusiast

Hi LucD

The script works fine, but can you add up some details to it?

DatacenterClusternameHostVMnicMACSpeedDuplexDevice IDAddressPort IDHardware PlatformVLANStatus

I already got Hostname, pNIC, PortID, Address & VLAN.

thanks much.

0 Kudos
LucD
Leadership
Leadership

Can you share the script you already have, makes it easier to add the missing info.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
kunaludapi
Expert
Expert

This link will be helpful.

vGeek: Powercli Pull CDP and LLDP information in single nice table format - Part 2

vcloud-lab.com

--------------------------------------------------------------- Kunal Udapi Sr. System Architect (Virtualization, Networking And Storage) http://vcloud-lab.com http://kunaludapi.blogspot.com VMWare vExpert 2014, 2015, 2016 If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".