Class Basics


  • @Sample(name="performance-basics",
            description="displays available performance counters or other data")
    public class Basics
    extends ConnectedVimServiceBase
     Basics
    
     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]
     
    • Constructor Detail

      • Basics

        public Basics()
    • 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.RuntimeFaultFaultMsg
        com.vmware.vim25.InvalidPropertyFaultMsg
        javax.xml.datatype.DatatypeConfigurationException