Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Programming API Might Not Show Current Value for Virtual Machine Power State (2161166)

Details

 When you call GetProperties( ) to examine the VIX_PROPERTY_VM_POWER_STATE property, the value might not immediately show the result of a recent change in the virtual machine's power state. Instead, the value shows the previous power state. For example, after you power off a virtual machine, the Vix_GetProperties( ) might continue to report for a brief time that the power state of the virtual machine is VIX_POWERSTATE_POWERED_ON.

Solution

If your client application depends on checking the power state, sleep several seconds after a power state change before checking the value of the VIX_PROPERTY_VM_POWER_STATE property.

Keywords

vs100

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 23 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 23 Ratings
Actions
KB: