Monitor VIB
InstallationLast Updated December 16, 2024
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.
The Software Update profile is
not supported in the base installation. It requires a separate VIB
installation.
You can monitor the status of the update
operation in one of two ways:
- You can poll for status of the operation by using theCIM_ConcreteJobclass.
- You can subscribe to any of the supported indications that report changes in the status of the update operation. The supported indications are shown in Table 3-1.
Condition
| CQL Expression
|
---|---|
Any job creation
| SELECT * from
CIM_InstCreation WHERE SourceInstance ISA CIM_ConcreteJob
|
Any job change
| SELECT * from
CIM_InstModification WHERE SourceInstance ISA CIM_ConcreteJob
|
Any job deletion
| SELECT * from
CIM_InstDeletion WHERE SourceInstance ISA CIM_ConcreteJob
|
This example shows how to monitor the update and
report completion status by polling an instance of
CIM_ConcreteJob
.
Figure 1
shows the relationships of the CIM objects involved.
Monitoring an Update of ESXi Software

Figure 1
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.
This pseudocode depends on the pseudocode in
Make a Connection to the CIMOM and
Identifying the Base Server Scoping Instance.
To monitor VIB installation
- After invoking theInstallFromURI()method, save the object reference returned in theJoboutput parameter.The output parameter is a reference to an instance ofCIM_ConcreteJobthat you can use to monitor progress of the software update operation.
- Retrieve the referenced instance ofCIM_ConcreteJoband test the value of thePercentCompleteproperty.Repeat this step until thePercentCompleteproperty has the value100.While the software update operation is in progress, the property has an arbitrary value less than100. After the operation completes, thePercentCompleteproperty takes the value100and the CIM server no longer updates theCIM_ConcreteJobinstance.A sample of the output looks like the following: