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?
something like that?
[root@ ~]# vmware -v VMware ESX 4.0.0 build-208167 [root@ ~]#
or
something like that?
[root@ ~]# vmware -v VMware ESX 4.0.0 build-208167 [root@ ~]#
or
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
thanks