Package com.vmware.performance
Class Basics
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.performance.Basics
-
@Sample(name="performance-basics", description="displays available performance counters or other data") public class Basics extends ConnectedVimServiceBaseBasics This sample displays available performance counters or other data for an requested ESX system. Output is in following report style: Performance Interval: Interval Name Interval Period Interval Length Performance counters: Host perf capabilities: Summary supported Current supported Current refresh rate Parameters: url [required] : url of the web service username [required] : username for the authentication password [required] : password for the authentication info [required] : requested info - [interval|counter|host] hostname [optional] : required when 'info' is 'host' Command Line: Display name and description of all perf counters on VCenter run.bat com.vmware.performance.Basics --url [webserviceurl] --username [username] --password [password] --info [interval|counter|host] --hostname [VC hostname] Display counter names, sampling period, length of all intervals run.bat com.vmware.performance.Basics --url [webserviceurl] --username [username] --password [password] --info interval --hostname [VC or ESX hostname] Display name and description of all perf counters on ESX run.bat com.vmware.performance.Basics --url [webserviceurl] --username [username] --password [password] --info counter --hostname [ESX hostname] Display name, description and metrics of all perf counters on ESX run.bat com.vmware.performance.Basics --url [webserviceurl] --username [username] --password [password] --info host --hostname [ESX hostname]
-
-
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 Basics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetHostname(java.lang.String hostname)voidsetInfo(java.lang.String info)-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
-
-
-
-
Method Detail
-
setInfo
@Option(name="info", description="requested info - [interval|counter|host]") public void setInfo(java.lang.String info)
-
setHostname
@Option(name="hostname", required=false, description="required when \'info\' is \'host\'") public void setHostname(java.lang.String hostname)
-
run
@Action public void run() throws com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.vim25.InvalidPropertyFaultMsg, javax.xml.datatype.DatatypeConfigurationException- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgjavax.xml.datatype.DatatypeConfigurationException
-
-