How to check VMware tools version using CLI on Linux
Posted by jlchannel - on February 10th, 2009 in Operating Systems, Tips | 2 Comments »

Personally, I would said VMware Tools upgrade on Linux is not as easy as Microsoft Windows virtual machine. Every time VMware Tools upgrade must give me some problem especially on SuSE Linux virtual machine. Anyway this article is not discuss about VMware Tools upgrade and I’m focus on “How to check VMware tools version on Linux using CLI”
Option 1:
# grep buildNr /usr/bin/vmware-config-tools.pl
my $buildNr;
$buildNr = '3.5.0 build-143128';
return remove_whitespaces($buildNr);
Option 2:
# vmware-config-tools.pl -h
VMware Tools 3.5.0 build-143128 for Linux
Option 3:
# rpm -qa|grep VM
VMwareTools-7302-143128
Note: Only apply to RPM installed
Enjoy and I hope this is useful!
2 Responses
FYI, option 2 doesn’t seem to be as clean as your example indicates at least for the two ESX versions I am running. It also sends to stderr so a command like the following seems to be in order.
[root@nile tmp]# vmware-config-tools.pl -h 2>&1 | head -1
VMware Tools 3.5.0 build-153875 for Linux configurator
[root@osiris tmp]# vmware-config-tools.pl -h 2>&1 | head -1
VMware Tools 3.0.1 build-47426 for Linux configurator
vmware-toolbox-cmd -v