Automation

 View Only
  • 1.  Get-Log in cluster with VMCrypt VMs

    Posted Dec 17, 2019 11:57 AM

    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.



  • 2.  RE: Get-Log in cluster with VMCrypt VMs

    Posted Dec 17, 2019 01:09 PM

    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