The VMware implementation of the DMTF Software Update profile allows system administrators to use CIM client applications to update ESXi software. See
Installing VIBs. The update can take several minutes to complete. For a CIM client, this is an asynchronous operation because the CIM server returns before the update is complete.
Monitoring an Update of ESXi Software shows the relationships of the CIM objects involved.
Monitoring an Update of ESXi Software shows some classes, such as
CIM_Error, that you can use to provide detail on status of the software update operation, but their use is not shown here. This example pseudocode relies only on the properties available in the
CIM_ConcreteJob instance that represents the status of an operation in progress. The
CIM_ConcreteJob instance remains in existence for a few minutes after the job completes.
The output parameter is a reference to an instance of CIM_ConcreteJob that you can use to monitor progress of the software update operation.
While the software update operation is in progress, the property has an arbitrary value less than 100. After the operation completes, the
PercentComplete property takes the value
100 and the CIM server no longer updates the
CIM_ConcreteJob instance.