com.vmware.vim25.mo.samples.network
Class RemoveVirtualNic
java.lang.Object
com.vmware.vim25.mo.samples.network.RemoveVirtualNic
public class RemoveVirtualNic
- extends Object
This sample is used to remove a Virtual Nic
To run this samples following parameters are used:
portgroupname [required]: Name of the port group from which the nic is to be removed
host [optional]: Name of the host
datacenter [optional]: Name of the datacenter
Parameters:
Command Line:to remove a Host VirtualNic from a PortGroup
run.bat com.vmware.samples.host.RemoveVirtualNic --url [webserviceurl] --username [username] --password [password]
--datacenter [mydatacenter] --portgroupname [myportgroup]> --host [hostname]
Command Line:to remove a Host VirtualNic from a PortGroup without specifying the host
run.bat com.vmware.samples.host.RemoveVirtualNic --url [webserviceurl] --username [username] --password [password]
--datacenter [mydatacenter] --portgroupname [myportgroup]
Command Line:to remove a Host VirtualNic from a PortGroup without specifying the datacenter
run.bat com.vmware.samples.host.RemoveVirtualNic --url [webserviceurl] --username [username] --password [password]
--portgroupname [myportgroup] --host [name of the host]
http://vijava.sf.net
- Author:
- Steve Jin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoveVirtualNic
public RemoveVirtualNic()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2011-2012. All Rights Reserved.