getdvSwitchInfo.pl

Version 4

    This script extracts various bits of information from a vSphere Distributed vSwitch supporting vSphere 4.x and vSphere 5.0

     

    You can refer to the blog post here for the details including the download.