Monday, October 19, 2009

How to update VMware ESX patch using CLI

Using VMware Update Manager is pretty easy for VMware patch update but I would like to share about how to update VMware ESX patch using command line interface here as an alternative way.
First download VMware patch from VMware download web site said for an example:
VMware ESX 3.5 Update 2
Latest Version: 3.5 Update 2 | 8/13/2008 | Build: 110268
Login with your username & password and click YES for agree with VMware Inc. term and condition.

Option 1:
Once completed the VMware patch download, you can either copy the patch source file to Apache or IIS web server and unzip it said http://your.webserver.com/esxupdate/
Before continue with VMware ESX host patch, you can vmotion all VMware guest from ESX host 1 to VMware ESX host

2. Connect to VMware ESX host 1 box using SSH,

Enter server maintenance mode:
vimsh -n -e /hostsvc/maintenance_mode_enter

Tips: How can I check whether ESX host is in maintenance mode.
vimsh -n -e /hostsvc/runtimeinfo | grep inMaintenanceMode | awk ‘{print $3}’

Turn Off Firewall:
esxcfg-firewall –allowOutgoing


ESX patch update:
esxupdate -r http://your.webserver.com/esxupdate/ update

Option 2:
Copy patch source files into ESX host itself said for an example folder /download/esxupdate

Enter maintenance mode:
vimsh -n -e /hostsvc/maintenance_mode_enter

Turn Off Firewall:
esxcfg-firewall –allowOutgoing

ESX patch update:
cd /download/esxupdate; esxupdate update

Login another SSH session and monitor patch update log:
tail -f esxupdate.log

Let’s wait for a while and VMware host patch should be in progress now. The ESX host should be reboot once the patch completed.

Turn On Firewall:
esxcfg-firewall –blockOutgoing

Exit maintenance mode:
vimsh -n -e /hostsvc/maintenance_mode_exit

Again, we can check ESX host patch update using command:
cat /proc/vmware/version
OR
vmware -v
OR
esxupdate -l query

Congratulation! You’re done. You should have latest VMware ESX patch now!
Please feel free to comment to make it more useful to everyone.

http://malaysiavm.com/blog/how-to-update-vmware-esx-patch-using-cli/#comments
http://sanderdaems.wordpress.com/category/vmware/

26 comments:

Anonymous said...

buy tramadol online buy tramadol 50mg - can you buy tramadol online in usa

Anonymous said...

xanax online skelaxin xanax drug interactions - buy xanax online us pharmacy

Anonymous said...

buy cheap tramadol buy cheap tramadol online - best place order tramadol online

Anonymous said...

generic xanax how much xanax and alcohol to die - xanax withdrawal symptoms how long

Anonymous said...

buy tramadol online tramadol and ibuprofen - purchase tramadol online

Anonymous said...

buy tramadol online cod overnight can you buy tramadol over the counter usa - buy tramadol mastercard

Anonymous said...

generic xanax xanax how long in system - 2mg ativan vs 2mg xanax

Anonymous said...

buy tramadol online tramadol addiction mayo clinic - tramadol generic

Anonymous said...

buy tramadol online no prescription order tramadol online no rx - tramadol 50mg (generic ultram)

Anonymous said...

buy tramadol online tramadol purchase fedex - order tramadol overnight cod

Anonymous said...

cheap tramadol online tramadol 50 mg how long does it stay in your system - boompanjang blogspot buy tramadol online

Anonymous said...

generic xanax xanax withdrawal blurred vision - xanax 2

Anonymous said...

xanax online doctors prescribe xanax online - 30 mg xanax overdose

Anonymous said...

where to buy cialis online no prescription cheap cialis levitra - cialis tolerance

Anonymous said...

http://landvoicelearning.com/#38471 tramadol cause addiction - tramadol hcl xr 100mg

Anonymous said...

buy tramadol online mastercard overnight tramadol mechanism of action - tramadol 50mg t7

Anonymous said...

buy tramadol tramadol 50 mg recommended dose - buy tramadol online florida

Anonymous said...

learn how to buy tramdadol buy tramadol online without prescriptions - tramadol with alcohol

Anonymous said...

buy tramadol tramadol 100mg euphoria - tramadol 50mg for dogs

Anonymous said...

http://landvoicelearning.com/#44827 tramadol buy dogs - tramadol hcl is it a narcotic

Anonymous said...

generic tramadol online generic tramadol usa - tramadol hcl 37.5 mg

Anonymous said...

buy tramadol tramadol hcl 50 mg what is it for - tramadol 50 mg for cramps

Anonymous said...

discount ativan lorazepam 1 mg for sleep - ativan dosage bluelight

Anonymous said...

purchase tramadol chewing 100mg tramadol - tramadol for dogs maximum dosage

Anonymous said...

Youг own repoгt features eѕtablished useful to me.
Ӏt’s νеry helρful and you're simply naturally very educated in this region. You have got exposed my personal sight to different thoughts about this specific subject using intriguing and sound content material.

my homepage klonopin

Anonymous said...

Everyone loves what you guys tend to be up too. This type of clever work and
reporting! Keep up the terrific works guys I've added you guys to my personal blogroll.

Also visit my weblog - the tao of badass