com.vmware.vim25.mo.samples.network
Class AddVirtualSwitchPortGroup

java.lang.Object
  extended by com.vmware.vim25.mo.samples.network.AddVirtualSwitchPortGroup

public class AddVirtualSwitchPortGroup
extends Object

This sample is used to add a Virtual Switch PortGroup

To run this samples following parameters are used:>

vsiwtchid      [required]: Name of the switch in which portgroup is to be added
portgroupname  [required]: Name of the port group
host           [optional]: Name of the host
datacenter     [optional]: Name of the datacenter

Command Line:to add a Virtual switch Port Group as: -
run.bat com.vmware.samples.host.AddVirtualSwitchPortGroup --url [webserviceurl] --username [username] --password  [password] 
--vsiwtchid [mySwitch] --datacenter [mydatacenter] --portgroupname [myportgroup] --host[hostname]

Command Line:to add a Virtual switch Port Group without specifying the host: 
run.bat com.vmware.samples.host.AddVirtualSwitchPortGroup --url [webserviceurl] --username [username] --password  [password] 
--vsiwtchid [mySwitch] --datacenter [mydatacenter] --portgroupname [myportgroup]


Command Line:to add a Virtual switch Port Group without specifying the datacenter -
run.bat com.vmware.samples.host.AddVirtualSwitchPortGroup --url [webserviceurl] --username [username] --password  [password] 
--vsiwtchid [mySwitch]  --portgroupname [myportgroup]

Author:
sjin THis is a sample converted from VI SDK samples

Constructor Summary
AddVirtualSwitchPortGroup()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddVirtualSwitchPortGroup

public AddVirtualSwitchPortGroup()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2011-2012. All Rights Reserved.