Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 246286

Re: Creating port groups on a vSphere Distributed Switch with PowerCLI

$
0
0

Here is a better explanation of what I’m thinking.  For example, lets say I want to have 5 fields in my csv file, in the following order, that create a port group called “mgt-pg1”.

  1. Name = Name of Port Group  (in this example, the name should be “mgt-pg1”)
  2. Description = Description of Port Group  ( I want the description field in the properties sheet for the port group to read “Management Port Group Number 1”
  3. ActiveUplinkNames= Identifies which uplinks (which will already have been defined in the vDs) will be identified as “Active” uplinks for this port group.  For example, I want to use 2 uplinks, already defined in the vds, called “dvuplink1” and “dvuplink2”.  I want both links to be active.  I don’t need any standby uplinks.
  4. NumPorts =Number of Ports to use for the Port Group  ( I want to have 64 ports on this port group)
  5. VlanID = VLAN ID (my vlan ID is 220)

 

So I want a CSV file that has a line for this port group, something like:

Mgt-pg1, “Management Port Group Number 1”, {dvUplink1,dvUplink2}, 64, 220

Then I want to be able to use these 5 settings to define my port group using PowerCLI.

Thanks again


Viewing all articles
Browse latest Browse all 246286

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>