Thursday, August 9, 2012

Drivers and Patches via CLI


Host ESX/ESXi Patches via CLI:

I've had to re-look this up a few times and there's a rather good (and similar) write-up here but these are my notes.
...

First things first, you need to be sure of know what you have now.

Patches:

For Build Numbers, if 'vmware -v' doesn't do it, try 'rpm -qa |grep -i vmware-esx-vmx', otherwise check KB 1012514.

Search for the version of vSphere you want to update and download the zip to your HD.


Drivers and Driver Updates:

If you're getting drivers and they're in an ISO you'll need to extract the .zip from the offline-bundle folder.
You'll also want to check what version you're running before install and after final reboot.

In the case of QLogic drivers: cat /proc/scsi/qla*/* |more

Then go and the get drivers you need.


Install:

These examples use the location c:\vmwareupdates

vicfg-hostops.pl -o enter -url https:// <hostname or IP>/sdk/webservice
Enter username: root
Enter password:
Host <hostname> entered into maintenance mode successfully.

vihostupdate.pl -i -bundle c:\vmwareupdates\<name of package.zip> -url https:// <host name or IP>/sdk/webservice
Enter username: root
Enter password:
Please wait patch installation is in progress ...
The update completed successfully, but the system needs to be rebooted for the changes to be effective.

vicfg-hostops.pl -o reboot -url https:// <hostname or IP>/sdk/webservice
Enter username: root
Enter password:
Host <hostname> rebooted successfully.

vicfg-hostops.pl -o exit -url https:// <hostname or IP>/sdk/webservice
Enter username: root
Enter password:
Host <hostname> exited from maintenance mode successfully.

No comments:

Post a Comment