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

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

public class RemoveVirtualSwitch
extends Object

This sample is used to remove a virtual switch  

To run this samples following parameters are used:

vsiwtchid   [required]: Name of the switch to be removed
host        [optional]: Name of the host
datacenter  [optional]: Name of the datacenter

Command Line: to remove the Virtual Switch from a virtual center
run.bat com.vmware.samples.host.RemoveVirtualSwitch --url [webserviceurl] --username [username] --password  *[password]  --vsiwtchid [mySwitch] --datacenter [mydatacenter]  --host[hostname]

Command Line:to remove a Virtual Switch from a virtual center without specifying the host
run.bat com.vmware.samples.host.RemoveVirtualSwitch --url [webserviceurl] --username [username] --password  *[password]  --vsiwtchid [mySwitch] --datacenter [mydatacenter] 

 Command Line:to remove a Virtual Switch from a virtual center without specifying the datacenter
run.bat com.vmware.samples.host.RemoveVirtualSwitch --url [webserviceurl] --username [username] --password  [password]  --vsiwtchid [mySwitch] --host [host]

/** http://vijava.sf.net

Author:
Steve Jin

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

Constructor Detail

RemoveVirtualSwitch

public RemoveVirtualSwitch()
Method Detail

main

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

removeVirtualSwitch

public static void removeVirtualSwitch(HostSystem host,
                                       String vswitchId)
                                throws RemoteException
Throws:
RemoteException


Copyright © 2011-2012. All Rights Reserved.