Package com.vmware.general
Class GetHostName
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.connection.VCenterSampleBase
-
- com.vmware.general.GetHostName
-
@Sample(name="get-hostname", description="This sample gets the hostname and additional details of the ESX Servers in the inventory") public class GetHostName extends VCenterSampleBaseGetHostName This sample gets the hostname and additional details of the ESX Servers in the inventory Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication Command Line: run.bat com.vmware.general.GetHostName --url [webservicesurl] --username [username] --password [password]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase
ConnectedVimServiceBase.ConnectionException
-
-
Field Summary
-
Fields inherited from class com.vmware.connection.ConnectedVimServiceBase
PROP_ME_NAME, SVC_INST_NAME
-
-
Constructor Summary
Constructors Constructor Description GetHostName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprintHostProductDetails()Prints the Host names.voidsetHostSystemAttributesList()-
Methods inherited from class com.vmware.connection.VCenterSampleBase
connect
-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setHostSystemAttributesList
public void setHostSystemAttributesList()
-
printHostProductDetails
@Action public void printHostProductDetails() throws com.vmware.vim25.InvalidPropertyFaultMsg, com.vmware.vim25.RuntimeFaultFaultMsgPrints the Host names.- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg
-
-