Home > Blogs > VMware PowerCLI Blog


Enhanced Support for Distributed Switches in PowerCLI 4.1.1

Support for managing distributed switches was initially introduced in PowerCLI 4.1. In PowerCLI 4.1.1,  we extend this functionality by making changes to the following cmdlets:

Name
Description
Get-VirtualSwitch
Returns both standard and distributed switches. You can filter the retrieved switches by their type.
Get-VirtualPortGroup
Returns the virtual port groups of the specified standard and distributed switches.
Get-VMHost
You can retrieve the hosts that are connected to a specific distributed switch.
Get-VM
You can retrieve the virtual machines that are connected to a specific distributed switch.
Get-VMHostNetworkAdapter
You can retrieve the host network adapters that are connected to a specific distributed switch.
New-NetworkAdapter, Set-NetworkAdapter
You can attach network adapters to a specific Port Id of the distributed switch.

 

By using PowerCLI cmdlets, you can migrate virtual machines and hosts between distributed virtual switches, and also create various reports related to distributed switches.

Example:

To list all distributed switches available in the vCenter Server, you can just run the Get-VirtualSwitch cmdlet:

The port groups on the distributed switch are also easy to retrieve:

If you need to get the hosts connected to the distributed switch, just filter them by using the Get-VMHost cmdlet:

Even more, you can check which host network adapters are connected to a specific distributed switch:

To check which virtual machines are part of a distributed switch network, use the DistributedSwitch parameter of the Get-VM cmdlet:

13 thoughts on “Enhanced Support for Distributed Switches in PowerCLI 4.1.1

  1. Ivan

    It doesn’t work with the Cisco Nexus 1000v ūüôĀ

    Reply
  2. Halr9000

    I love the expanded dvswitch support, but I have to say, the added DistributedSwitch parameter on get-vmhost & get-vm does not make sense when I read it. The only other type of filter you have on these cmdlets now are by name, datastore, and location. I guess “network location” is a good way to filter, however, it feels a bit weird. I don’t know, maybe as I use it it will make more sense.
    I’d rather just type get-virtualswitch | get-vmhost though.

    Reply
  3. alltägliches englisch lernen

    Das Auerhuhn, auch Urhahn oder Großer Hahn genannt,
    steht in Deutschland auf der Roten Liste als vom Aussterben bedroht.

    Reply
  4. culturedsemeste31.Penzu.com

    Sobald sich Ihr Organismus an den hohen Rohkostanteil Ihrer Ern√§hrung gew√∂hnt hat, k√∂nnen Sie nat√ľrlich auch abends Rohkost essen.

    Reply
  5. taeglich-laufen.s3-website.eu-central-1.amazonaws.com

    Wir geben Ihnen 10 Tipps, wie Sie Ihren Blutdruck mit einfachen Maßnahmen senken können.

    Reply
  6. gesund und munter bleiben englisch

    √Ąndert sich jetzt bewusst sein Sinnes spezifisch relevanter Code,
    so verändert sich plötzlich die Gesamtbedeutung einer Information.

    Reply
  7. Mose

    Wäre ich zum Doc gegangen, hätte er mir wahrscheinlich Medikamente
    verschrieben, die ich ein Leben lang h√§tte einnehmen m√ľssen.

    Reply
  8. Gesundheitssendungen im Fernsehen

    Ein Raubtier ist hervorragend an Fleischnahrung angepasst und
    w√ľrde mit reiner Pflanzennahrung kaum gesund,
    fortpflanzungs- und √ľberlebensf√§hig bleiben.

    Reply
  9. Gesundheit Nachrichten

    Nach dem Gottesdienst mit der Taufe findet in der Regel eine Feier mit viel Essen und Spaß statt.

    Reply
  10. blutdrucksenkende lebensmittel wiki

    Bei einer Überschreitung könnte der Verzehr von diesen Produkten Ihre
    Gesundheit beeinträchtigen oder sogar schädigen.

    Reply
  11. derneue65.wordpress.com

    Als ich gestern Ihr Buch in meinem Körbchen fand, habe
    ich sofort alles stehen und liegen gelassen und mich Kapitel f√ľr Kapitel hineingest√ľrzt.

    Reply
  12. Tabitha Cabiya

    I have been absent for some time, but now I remember why I used to love this website. Thank you, I¡¦ll try and check back more frequently. How frequently you update your site?

    Reply
  13. Radio Albatros

    May I just say what a comfort to find a person that actually
    understands what they are talking about online.
    You definitely understand how to bring a problem to light and make it important.
    More people really need to read this and understand this side of your story.
    I was surprised you aren’t more popular since
    you most certainly have the gift.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*