I am trying to automate the HBA firmware installation using Posh-SSH module on my HP Gen8 6.5 hosts. The firmware installer comes in zip format and it contains the following files:
So the script will ask for host name and the datastore on which these files are uploaded.
However it is failing to execute the vmexe file. It is telling vmfile not found.
Any help would be appreciated.
At last its executed after putting semi colon at the end as as shown below:
$code = @'
cd $dspath; ls -l; chmod +x CP032799.vmexe; ./CP032799.vmexe -f;
However getting the below after the installation. How to get rid of it.
That looks to be a timeout happening.
The Invoke-SSHCommand cmdlet has a Timeout parameter, you could try using that.
I have no clue how long this vmexe is supposed to run.
How long did it run when you executed it from an interactive session?