So we have a script that takes an ESXi host and just does:
Connect-Viserver [ESXihostname] -Credential (Import-clixml [credfile])
Get-Log -Bundle -DestinationPath E:\Logs\
However, about exactly 5 min after the execution of Get-Log, the cmdlet consistently errors with:
Get-Log : 3/23/2017 12:05:02 PM Get-Log The operation has timed out At line:1 char:1 + Get-Log -Bundle -DestinationPath E:\Logs\ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo: NotSpecified: (:) [Get-Log], ViError + FullyQualifiedErrorId : Client20_QueryServiceImpl_WaitForUpdates_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetLog
And for the life of me, I cannot find a timeout that extends this.
Set-PowerCliConfiguration -WebOperationTimeoutSeconds -1
$vmHost | Get-AdvancedSettings -Name 'UserVars.ESXiShellTimeOut' (equals 0)
$vmHost | Get-AdvancedSettings -Name 'UserVars.ESXiShellInteractiveTimeOut' (equals 900)
There's an old KB about modifying the timeout on the query service, but this applied to vCenter 4, and doesn't seem applicable now. So I'm struggling to find any setting to modify this timeout and allow a Get-Log execution to complete (vSphere client takes just over 15 min to run).
Any help would be appreciated.
Get-Log;operation timed out;weboperationtimeoutsecond