There was a question on the VMTN community forums about retrieving the security policies: promiscuous, forged transmits and MAC Address change from a distributed vSwitch and distributed portgroup and I realized my getdvSwitchInfo.pl script that I wrote awhile back only included basic information about the dvSwitch.

I spent some time updating my vSphere SDK for Perl script to include additional information such as the high level summary, configuration of the dvSwitch, network resource pools, dvportgroups, hosts attached to dvSwitch and virtual machines attached to the dvSwitch. The script also includes information about many of the new features in vSphere 5.0 networking such as netflow, port mirror, LLDP, NIOC to just name a few. You can take a look at the What’s New in vSphere 5 Networking whitepaper for more details.

The script allows for the following type of “list” operations: summary, config, networkpool, portgroup, host and vm. In addition, you can display all information by specifying the “all” operation and you can specify a specific dvSwitch by using the --dvswitch flag and providing the name of a dvSwitch.

Here is an example output for the list “summary” operation for all dvSwitches:

Here is an example output for the list “config” operation on a specific dvSwitch:

Here is an example output for the list “networkpool” operation on a specific dvSwitch:

Here is an example output for the list “portgroup” operation on a specific dvSwitch:

Here is an example output for the list “host” operation on a specific dvSwitch:

Here is an example output for the list “vm” operation on a specific dvSwitch:

Hopefully this script will be helpful if you need to quickly get information about your dvSwitches.

25 thoughts on “Retrieving Information from a Distributed vSwitch

  1. Any argument to remove/avoid to color from the output?
    Or must better, to create an HTML document?

    • Having and running an online business is not just about creating cash. This is because of the way that before acquiring enormous pay from your business you need to secure first the prosperity of your online business particularly its site.
      allbeefsteakdogs.com

  2. “Thanks so much for this wonderful website as well as this post. This post is the kind of thing that keeps me on track through. I’ve been looking around for this site after I heard about them from a buddy and was thrilled. Thanks a bunch.

  3. Certainly a fantastic piece of work “ It has relevant information. Thanks for posting this. Your blog is so interesting and very informative. Thanks sharing. Definitely a great piece of work

  4. Perfect to relocate after dark to find out your web site and also cool, comprehend the very first thing little or maybe bring up therefore with his others who live nearby. I’m keen the way we improve this website, unobtrusively as well as fascinating, I always listened to and it also yrs ago, but will also I always can’t stand statements, like they require a meeting a avert slumber.
    write my essay

  5. The post is written in very a good manner and it entails many useful information for me. I am happy to find your distinguished way of writing the post.
    We understand that being a student can sometimes be difficult. You have all the different classes you are taking with their readings, lectures, tests, projects, and essay writing requirements.
    Get a Loan

  6. I am always in search for new article and this one was the nicest article. I was wondered while reading the article; I was not able to please myself with the fact. It really influenced me with the quality of the content; even I would follow the way of your writing.Banquet Hall Mumbai

    • The best automotive news and best cars review. We are writing about new car details, specifications, release date, price etc. Follow us and be informed about top automotive news!

Thanks for the comment!