<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get-Log: The operation has timed out in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-Log-The-operation-has-timed-out/m-p/2746420#M96573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did do a Get- after doing the Set- and it showed what I expected. But seeing the &lt;SPAN style="color: #ff4500;"&gt;$global:DefaultVIServer&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;.&lt;/SPAN&gt;ExtensionData&lt;SPAN style="color: #a9a9a9;"&gt;.&lt;/SPAN&gt;Client&lt;SPAN style="color: #a9a9a9;"&gt;.&lt;/SPAN&gt;ServiceTimeout still set to 300 is what tipped me off. I then did a Disconnect-VIServer for my existing session I'd been working in and then when I reconnected, this value was updated to -1 and Get-Log did not time out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to those that may read this in the future: it appears that &lt;SPAN style="font-family: courier new,courier;"&gt;Set-PowerCLIConfiguration -WebOperationTimeout&lt;/SPAN&gt; does not affect existing PowerCLI vCenter/ESXi connections, only future ones. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Luc for the hint in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Mar 2017 21:04:52 GMT</pubDate>
    <dc:creator>Tocano</dc:creator>
    <dc:date>2017-03-23T21:04:52Z</dc:date>
    <item>
      <title>Get-Log: The operation has timed out</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-Log-The-operation-has-timed-out/m-p/2746418#M96571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So we have a script that takes an ESXi host and just does:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Connect-Viserver [ESXihostname] -Credential (Import-clixml [credfile])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Get-Log -Bundle -DestinationPath E:\Logs\&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, about exactly 5 min after the execution of Get-Log, the cmdlet consistently errors with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;Get-Log : 3/23/2017 12:05:02 PM&amp;nbsp;&amp;nbsp;&amp;nbsp; Get-Log&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The operation has timed out At line:1 char:1 + Get-Log -Bundle -DestinationPath E:\Logs\ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo: NotSpecified: (:) [Get-Log], ViError&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : Client20_QueryServiceImpl_WaitForUpdates_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetLog&lt;/PRE&gt;&lt;P&gt;And for the life of me, I cannot find a timeout that extends this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Set-PowerCliConfiguration -WebOperationTimeoutSeconds -1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;$vmHost | Get-AdvancedSettings -Name 'UserVars.ESXiShellTimeOut'&amp;nbsp; (equals 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;$vmHost | Get-AdvancedSettings -Name 'UserVars.ESXiShellInteractiveTimeOut'&amp;nbsp; (equals 900)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Get-Log;operation timed out;weboperationtimeoutsecond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 19:54:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-Log-The-operation-has-timed-out/m-p/2746418#M96571</guid>
      <dc:creator>Tocano</dc:creator>
      <dc:date>2017-03-23T19:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get-Log: The operation has timed out</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-Log-The-operation-has-timed-out/m-p/2746419#M96572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you do a Get-PowerCLIConfiguration after the Set-?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What value does this show after the Connect-ViServer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="text-align: Left; font-family: Segoe UI; font-style: normal; font-weight: normal; font-size: 12; color: #000000;"&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 16;"&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500;"&gt;&lt;SPAN&gt;$global:DefaultVIServer&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;ExtensionData&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Client&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;ServiceTimeout&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lucida Console; margin: 0 0 0 0; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 20:19:14 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-Log-The-operation-has-timed-out/m-p/2746419#M96572</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2017-03-23T20:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get-Log: The operation has timed out</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-Log-The-operation-has-timed-out/m-p/2746420#M96573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did do a Get- after doing the Set- and it showed what I expected. But seeing the &lt;SPAN style="color: #ff4500;"&gt;$global:DefaultVIServer&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9;"&gt;.&lt;/SPAN&gt;ExtensionData&lt;SPAN style="color: #a9a9a9;"&gt;.&lt;/SPAN&gt;Client&lt;SPAN style="color: #a9a9a9;"&gt;.&lt;/SPAN&gt;ServiceTimeout still set to 300 is what tipped me off. I then did a Disconnect-VIServer for my existing session I'd been working in and then when I reconnected, this value was updated to -1 and Get-Log did not time out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to those that may read this in the future: it appears that &lt;SPAN style="font-family: courier new,courier;"&gt;Set-PowerCLIConfiguration -WebOperationTimeout&lt;/SPAN&gt; does not affect existing PowerCLI vCenter/ESXi connections, only future ones. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Luc for the hint in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 21:04:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Get-Log-The-operation-has-timed-out/m-p/2746420#M96573</guid>
      <dc:creator>Tocano</dc:creator>
      <dc:date>2017-03-23T21:04:52Z</dc:date>
    </item>
  </channel>
</rss>

