VMware Cloud Community
timalexanderINV
Enthusiast
Enthusiast

Get-Log in cluster with VMCrypt VMs

We enabled vmcrypt for a few VMs in our 6.7 vsphere environment months ago and thought no more of it.  Alas it seems that as these VMs have moved around the cluster "Host Encryption Mode" is being turned on (as expected I guess).  This seems to break the ability to use PowerCLI to dump out log bundles.

I am loathe to have to get my support team to login as root to each host, run vm-support and then scp them off to a jump box. 

Is there a method to pass the same "Password" parameter that teh GUI shows to "Get-Log -Bundle -VMHost $vmhost"?  I have had a poke around the API Explorer and cant see a method in there either so am guessing it is a host sepcific thing?

The alternative of the GUI may work but this seems to struggle under large log requests.

0 Kudos
1 Reply
LucD
Leadership
Leadership

What prompt do you get?

WHen I'm connected to the vCenter, I can run the following without being prompted for a root password.
The cmdlet uses the vCenter-ESXi connection to obtain the logs afaik.

Get-Log -VMHost esx* -Bundle -DestinationPath C:\Temp


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos