Package com.vmware.scsilun
Class SCSILunName
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.scsilun.SCSILunName
-
@Sample(name="scsi-lun", description="This sample displays the CanonicalName,Vendor,Model,Data,Namespace and NamespaceId of the host SCSI LUN name") public class SCSILunName extends ConnectedVimServiceBaseSCSILunName This sample displays the CanonicalName,Vendor,Model,Data,Namespace and NamespaceId of the host SCSI LUN name Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication hostname [required] : host for which SCSI details will be displayed Command Line: run.bat com.vmware.scsilun.SCSILunName --url [webserviceurl] --username [username] --password [password] --hostname [host name]
-
-
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 SCSILunName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprintLunInfo(com.vmware.vim25.ManagedObjectReference host)voidrun()voidsetHostname(java.lang.String hostname)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setHostname
@Option(name="hostname", description="host for which SCSI details will be displayed") public void setHostname(java.lang.String hostname)
-
printLunInfo
public void printLunInfo(com.vmware.vim25.ManagedObjectReference host) throws com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.InvalidPropertyFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg
-
run
@Action public void run() throws com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.InvalidPropertyFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg
-
-