O'Reilly logo

Mastering PowerCLI by Sajal Debnath

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with ports

So far, we have worked with host, switch, and port groups; now, let's explore how we can get details of a port and modify it. To manage a port, we will use the following two cmdlets:

  • Get-VDPort
  • Set-VDPort

We can get the details of the port using the Get-VDPort cmdlet and set details via the Set-VDPort cmdlet.

Working with ports

Configuring traffic shaping

We can use PowerCLI to configure traffic shaping in distributed ports, and we can use the following two cmdlets to configure it:

  • Get-VDTrafficShapingPolicy
  • Set-VDTrafficShapingPolicy

Obviously, Get-VDTrafficShapingPolicy will provide you with the details of the current policy set and Set-VDTrafficShapingPolicy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required