WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Retrieving Information from a Distributed vSwitch

Retrieving Information from a Distributed vSwitch

12.22.2011 by William Lam // 30 Comments

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.

More from my site

  • How to manually clean up a Distributed Virtual Switch (VDS) on an ESXi host?
  • Migrating ESXi to a Distributed Virtual Switch with a single NIC running vCenter Server
  • Retrieving statistics for a Distributed Virtual Port using the vSphere API & PowerCLI
  • Automatically Remediating SvMotion / VDS Issue Using vCenter Alarms
  • Identifying & Fixing Virtual Machines Affected By SvMotion / VDS Issue

Categories // Uncategorized Tags // distributed virtual switch, dvs, vsphere sdk for perl

Comments

  1. *protectedfredlock says

    01/02/2012 at 3:45 pm

    Great post William
    Thanks a lot

    Reply
  2. *protectedfredlock says

    01/23/2012 at 4:25 pm

    How can i get a html output of this?

    Reply
  3. *protecteddissertation sample says

    12/28/2012 at 9:04 am

    This is inspiring; I am very pleased by this post. Nice work, thanks for such information.

    Reply
  4. *protectedAnonymous says

    03/14/2013 at 5:24 pm

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

    Reply
    • *protectedpaul leon says

      01/17/2014 at 7:29 pm

      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

      Reply
  5. *protectedseo says

    08/27/2013 at 6:49 am

    http://www.virtuallyghetto.com/2011/12/retrieving-information-from-distributed.html

    Reply
  6. *protectedSEO Packages says

    08/31/2013 at 8:43 am

    I'm really impressed with this post .... the person who created this post was a big thank you man .. for sharing with us.

    Reply
  7. *protectedBuy YouTube Views says

    09/11/2013 at 7:27 am

    Thanks to a Excellent attempt in publishing your article. One can be more educational as this. There are many things I can know only after reading your superb article.

    Reply
  8. *protectedLife Insurance Policy says

    09/19/2013 at 6:01 pm

    "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.

    Reply
  9. *protectedVPN for iPhone says

    09/29/2013 at 12:10 pm

    It is usefull to them because all of that discord enables them to focus on their own real agenda without anyone noticing it amid the din of the culture war.

    Reply
  10. *protectedWall Tiles says

    10/01/2013 at 12:18 pm

    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

    Reply
  11. *protectedsse says

    11/06/2013 at 10:45 am

    I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful background apps closing

    Reply
  12. *protectedget rid of cellulite says

    12/11/2013 at 6:32 pm

    I have found very useful information over there, thanks for sharing this. please try to add more informative posts in order to keep us in touch.
    klebe bh

    Reply
  13. *protectedAnonymousJeffers says

    12/28/2013 at 7:38 pm

    Fascinating post. Something of which most people visiting this page will agree with.    Web Design Blackpool

    Reply
  14. *protectedAnonymousJeffers says

    12/28/2013 at 7:39 pm

    You seemed to have gained a great response from this page. Keep it up!  Web Design Preston

    Reply
  15. *protectedAnonymousJeffers says

    12/28/2013 at 7:39 pm

    Came across the page by chance, but glad I did now; very good post. Good stuff. Web Design Manchester

    Reply
  16. *protectedNikolo Lloyd says

    01/17/2014 at 9:23 pm

    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

    Reply
  17. *protectedsafira jorge says

    01/22/2014 at 12:40 pm

    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

    Reply
  18. *protectedget rid of cellulite says

    01/27/2014 at 12:11 pm

    I was about to say something on this topic. But now i can see that everything on this topic is very amazing and mind blowing, so i have nothing to say here. I am just going through all the topics and being appreciated. Thanks for sharing.
    plumbing services

    Reply
  19. *protectedGoldie Hearn says

    01/31/2014 at 4:32 am

    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

    Reply
  20. *protectedGoldie Hearn says

    02/01/2014 at 10:21 am

    I appreciate your information in this article. It’s smart, well-written and easy to understand. You have my attention on this subject. I will be back.Pharma Packaging

    Reply
  21. *protectedMake My Fans says

    06/10/2014 at 8:07 pm

    am just going through all the topics and being appreciated. Thanks for sharing.

    Reply
  22. *protectedonfifa15 says

    07/05/2014 at 8:43 am

    its really a nice work thanks dear

    Reply
  23. *protectedUdim Damachi says

    07/05/2014 at 8:44 am

    am feeling very secure on this site due to his content thanks

    Reply
    • *protectedAutomotive news says

      07/26/2014 at 5:25 am

      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!

      Reply
  24. *protectedinbouwmengkraan says

    01/06/2015 at 7:40 am

    I appreciate you sharing this blog.Really thank you! Want more.

    Reply
  25. *protectedCandor Group says

    10/28/2015 at 7:10 am

    This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog.

    Reply
  26. *protectedShilpa Malhotra says

    07/04/2016 at 11:18 pm

    The blog you have written is precise. For some reason I found great interest in reading it and I would like to share it as well.

    Reply
  27. *protectedGoa Fashion Service says

    11/20/2016 at 10:19 pm

    Hello, this is my first time go to at right here and i'm genuinely inspired to study everything at single area.

    Reply
  28. *protectedAlka Talwar says

    06/19/2018 at 12:23 am

    You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work!!

    Reply

Leave a Reply to Automotive newsCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025