I'm trying to find a generic way of checking, in the guest operating system of a virtual machine, if the VMware Tools are out of date.
The best way I have found so far has been to check the output of "vmware-toolbox-cmd -v", and to compare it to the expected version number. For example:
if [ "`vmware-toolbox-cmd -v`" = "8.3.18.20074 (build-975338)" ]
then
echo "The vmware tools are OK"
else
echo "The vmware tools are out of date"
...
...
fi
But the version number changes with time, so I would need to update the script every time, on every virtual machine. Or maybe I could read the "expected version number" from some shared resource, with wget or curl.
Can you help me find a better way ?
Thanks