WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud
  • Tanzu
    • Application Modernization
    • Tanzu services
    • Tanzu Community Edition
    • Tanzu Kubernetes Grid
    • vSphere with Tanzu
  • Home Lab
  • Nested Virtualization
  • 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. fredlock says

    01/02/2012 at 3:45 pm

    Great post William
    Thanks a lot

    Reply
  2. fredlock says

    01/23/2012 at 4:25 pm

    How can i get a html output of this?

    Reply
  3. dissertation 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. Anonymous 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
    • paul 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. seo says

    08/27/2013 at 6:49 am

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

    Reply
  6. SEO 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. Buy 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. Life 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. VPN 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. Wall 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. sse 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. get 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. AnonymousJeffers 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. AnonymousJeffers 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. AnonymousJeffers 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. Nikolo 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. safira 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. get 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. Goldie 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. Goldie 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. Make 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. onfifa15 says

    07/05/2014 at 8:43 am

    its really a nice work thanks dear

    Reply
  23. Udim Damachi says

    07/05/2014 at 8:44 am

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

    Reply
    • Automotive 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. inbouwmengkraan says

    01/06/2015 at 7:40 am

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

    Reply
  25. Candor 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. Shilpa 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. Goa 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. Alka 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

Thanks for the comment! Cancel reply

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

Search

Author

William Lam is a Senior Staff Solution Architect working in the VMware Cloud team within the Cloud Infrastructure Business Group (CIBG) at VMware. He focuses on Cloud Native technologies, Automation, Integration and Operation for the VMware Cloud based Software Defined Datacenters (SDDC)

Connect

  • Email
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • Vimeo

Recent

  • Changing the default HTTP(s) Reverse Proxy Ports on ESXi 8.0 03/22/2023
  • Quick Tip - How to download ESXi ISO image for all releases including patch updates? 03/15/2023
  • SSD with multiple NVMe namespaces for VMware Homelab 03/14/2023
  • Is my vSphere Cluster managed by vSphere Lifecycle Manager (vLCM) as a Desired Image or Baseline? 03/10/2023
  • Interesting VMware Homelab Kits for 2023 03/08/2023

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 © 2023