does anyone have a PowerCLI script to get the OpenSSL version for each host on a Virtual Center
Then I suggest you try plink.exe from the PuTTY suite
Once the SSH is open, just execute the same command as I gave above.
Alan has some tips on the use of plink.exe
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try something like this (it assumes all VMs have the VMware Tools installed).
$script = 'openssl version -v'
$user = 'root'
$pswd = 'password'
Get-VM | where {$_.GuestId -match "rhel|sles"} |
Select Name,@{N='OpenSSL';E={
Invoke-VMScript -VM $_ -ScriptType Bash -ScriptText $script -GuestUser $user -GuestPassword $pswd
}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Luc,
Thanks for the response, but this would check VMGuests, I need to check the version on the host
To clarify, you mean the ESXi nodes ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Luc,
Sorry, , yes the ESXi nodes.
Thank You
Are you allowed to set up a SSH session to your ESXi nodes ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yes we have it enabled, so there is no issue
Then I suggest you try plink.exe from the PuTTY suite
Once the SSH is open, just execute the same command as I gave above.
Alan has some tips on the use of plink.exe
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks much Luc,
Will do
This has been answered. Thank You