How to query and remove esxi host patches via CLI Command

How to Query and Remove ESXi Host Patches via CLI Command

VMware vSphere CLI

The following commands are used to query installed packages and remove ESXi Host installed packages. Use the vSphere CLI to query the target host for installed bundles. vihostupdate.pl

Command for querying installed Patches on ESXi Host.

vihostupdate.pl --server vmwesx01 --username root --query

Command Syntax (-q can be used instead of query)

vihostupdate.pl --server (ServerName) --username (UserName) --query

Command for Removing installed Patch from ESXi Host.

vihostupdate.pl --server vmwesx01 --username root -bulletin VEM400-200906002-BG --remove

Command Syntax (-r and -b can be used instead of remove and bulletin) http://www.vmware.com/support/developer/vcli/vcli41/doc/reference/(Examples can be found here)

vihostupdate.pl --server (ServerName) --username (UserName) -b (BundleName) --r 
vihostupdate.pl --server vmwesx01 -s -b E:update-from-esxi4.0-4.0_update04.zip -B ESXi400-201111202-UG
vihostupdate.pl --server vmwesx01 -s -bundle E:hp-esxi4.0uX-bundle-1.6-5.zip --username root --password XXXXX
vihostupdate.pl --server vmwesx01 -i -bundle E:hp-esxi4.0uX-bundle-1.6-5.zip --username root --password XXXXX
vihostupdate.pl --server vmwesx01 -i -b E:update-from-esxi4.0-4.0_update04.zip -B ESXi400-201111201-UG --username root --password XXXXX

Check Also

VMware ESXi step-by-step Installation Guide with Screenshots

The following article would cover VMware ESXi Step-by-step Installation guide with screenshots. VMware ESXi comes with a 60 days evaluation mode, however there is also a Free version available as well.

Leave a Reply