VMware Cloud Community
dwchan
Enthusiast
Enthusiast
Jump to solution

determine ESX Version (3.5 versus 4.0)

Back in the old days, one can determine the esx version from an xml file on /etc/vmware/patchdb

ESXver=`cat /etc/vmware/patchdb/3*.xml | grep ''| cut -c12-16`

But this file is no longer available on vsphere 4.0

Is there a simple way (a command) or a file I can parse that will tell my script if the current esx host is 3.0, 3.5 or 4.0?

0 Kudos
1 Solution

Accepted Solutions
Troy_Clavell
Immortal
Immortal
Jump to solution

something like that?

[root@ ~]# vmware -v
VMware ESX 4.0.0 build-208167
[root@ ~]#

or

http://kb.vmware.com/kb/1012514

View solution in original post

0 Kudos
3 Replies
Troy_Clavell
Immortal
Immortal
Jump to solution

something like that?

[root@ ~]# vmware -v
VMware ESX 4.0.0 build-208167
[root@ ~]#

or

http://kb.vmware.com/kb/1012514

0 Kudos
mittim12
Immortal
Immortal
Jump to solution

You could also use powershell to get the version number. Something like get-vmhost "name" | select Version






If you found this or any other post helpful please consider the use of the Helpful/Correct buttons to award points

dwchan
Enthusiast
Enthusiast
Jump to solution

Smiley Wink thanks

0 Kudos