Hostssh Question

We are attempting to install the latest version of vmware tools across multiple clusters (12.0.0).  Currently it requires a restart of the host if upgrading to 12 via lifecycle man and a baseline.  However, if i do it manually via esxcli software vib update or install, it does not require an update.  When i try to push this out to one of our test clusters via a cvm and the command: hostssh ‘esxcli software vib update -d /vmfs/volumes/tehdatastore/Tools12/’, it completes properly but times out and moves to the next host before the output stating it completed successfully etc, giving an error stating it timed out instead (to be clear, it does actually run against all the hosts properly).  Is there any way of adding a no timeout switch to the hostssh command (or perhaps just a larger timeout)?  Upgrade was verified using hostssh ‘esxcli software vib list | grep tools'.  Also within vcenter it now shows updates available to the vm’s etc.  So this does work, it just looks bad when you get the error below.



WARNING:root:Timeout executing /usr/bin/ssh -q -o CheckHostIp=no -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o TCPKeepAlive=yes -o UserKnownHostsFile=/dev/null  -o PreferredAuthentications=publickey  root@ 'esxcli software vib update -d /vmfs/volumes/tehdatastore/Tools12/': 30 secs elapsed
ERROR:root:Got Non Zero Return code -1 while executing cmd 'esxcli software vib update -d /vmfs/volumes/tehdatastore/Tools12/' on host

Validation later:

============= ============
tools-light                         VMware   VMwareCertified   2022-05-16

0 replies

Be the first to reply!