Hostsvc/runtimeinfo

From VI-Toolkit
Revision as of 08:53, 29 May 2009 by Wila (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Vimsh hostsvc/runtimeinfo

Usage: runtimeinfo

Retrieves the host runtime information.

example output

Example output when accessing an ESX3.5i host:

# vmware-vim-cmd -H 10.10.10.10 -U root -P password hostsvc/runtimeinfo
(vim.host.RuntimeInfo) {
  dynamicType = <unset>,
  connectionState = "connected",
  powerState = "poweredOn",
  inMaintenanceMode = false,
  bootTime = "2008-11-24T23:10:41.665567Z",
  healthSystemRuntime = (vim.host.HealthStatusSystem.Runtime) {
     dynamicType = <unset>,
     systemHealthInfo = (vim.host.SystemHealthInfo) {
        dynamicType = <unset>,
        numericSensorInfo = (vim.host.NumericSensorInfo) [
           (vim.host.NumericSensorInfo) {
              dynamicType = <unset>,
              name = "VMware Rollup Health State",
              healthState = (vim.ElementDescription) {
                 dynamicType = <unset>,
                 label = "Green",
                 summary = "Green",
                 key = "Green",
              },
              currentReading = 0,
              unitModifier = 0,
              baseUnits = "",
              rateUnits = <unset>,
              sensorType = "system",
           },
           (vim.host.NumericSensorInfo) {
              dynamicType = <unset>,
              name = "Phoenix Technologies LTD System BIOS 6.00 2008-07-29 00:00:00.000",
              healthState = (vim.ElementDescription) {
                 dynamicType = <unset>,
                 label = "Green",
                 summary = "Green",
                 key = "Green",
              },
              currentReading = 0,
              unitModifier = 0,
              baseUnits = "",
              rateUnits = <unset>,
              sensorType = "Software Components",
           },
           (vim.host.NumericSensorInfo) {
              dynamicType = <unset>,
              name = "VMware Inc. Hypervisor VMware ESX Server 3i 3.5.0 build-123629 2008-10-15 21:03:57.000",
              healthState = (vim.ElementDescription) {
                 dynamicType = <unset>,
                 label = "Green",
                 summary = "Green",
                 key = "Green",
              },
              currentReading = 0,
              unitModifier = 0,
              baseUnits = "",
              rateUnits = <unset>,
              sensorType = "Software Components",
           }
        ],
     },
     hardwareStatusInfo = (vim.host.HardwareStatusInfo) {
        dynamicType = <unset>,
        memoryStatusInfo = (vim.host.HardwareStatusInfo.HardwareElementInfo) [
           (vim.host.HardwareStatusInfo.HardwareElementInfo) {
              dynamicType = <unset>,
              name = "Memory",
              status = (vim.ElementDescription) {
                 dynamicType = <unset>,
                 label = "Green",
                 summary = "Physical element is functioning as expected",
                 key = "Green",
              },
           }
        ],
        cpuStatusInfo = (vim.host.HardwareStatusInfo.HardwareElementInfo) [
           (vim.host.HardwareStatusInfo.HardwareElementInfo) {
              dynamicType = <unset>,
              name = "CPU socket #0",
              status = (vim.ElementDescription) {
                 dynamicType = <unset>,
                 label = "Green",
                 summary = "Physical element is functioning as expected",
                 key = "Green",
              },
           },
           (vim.host.HardwareStatusInfo.HardwareElementInfo) {
              dynamicType = <unset>,
              name = "CPU socket #1",
              status = (vim.ElementDescription) {
                 dynamicType = <unset>,
                 label = "Green",
                 summary = "Physical element is functioning as expected",
                 key = "Green",
              },
           }
        ],
     },
  },
}

example usage

  1. Checking Maintenance Mode
vimsh -n -e /hostsvc/runtimeinfo | grep inMaintenanceMode | awk ‘{print $3}’

(see http://communities.vmware.com/thread/212398 )