<?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: PowerCli Script to collect logs from Multiples ESXI into the same Vcenter in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969595#M112060</link>
    <description>&lt;P&gt;Hi LuckD,&lt;/P&gt;&lt;P&gt;The "d&lt;SPAN&gt;estinationPath" parameter already&amp;nbsp;receive a path. Correct me if i'm&amp;nbsp;&lt;/SPAN&gt;wrong :&lt;/P&gt;&lt;P&gt;-DestinationPath $bundleFilePath&lt;/P&gt;&lt;P&gt;$destinationFolder = "C:\Logs" ==&amp;gt; indicate the path where the logs will be saved&lt;BR /&gt;$bundleFilePath = Join-Path -Path $destinationFolder -ChildPath $bundleFileName&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 07:49:38 GMT</pubDate>
    <dc:creator>Jocker-H</dc:creator>
    <dc:date>2023-05-22T07:49:38Z</dc:date>
    <item>
      <title>PowerCli Script to collect logs from Multiples ESXI into the same Vcenter</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969367#M112043</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;Im trying to create a script PowerCLI that collect logs&amp;nbsp; from specific ESXI servers into the same VCenter using this script but unfortunately it doesn't work and i dont know why !! Any suggestion please ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;$csvFilePath = "C:\esxi_info.csv"&lt;/P&gt;&lt;P&gt;$destinationFolder = "C:\Logs"&lt;/P&gt;&lt;P&gt;$esxiInfo = Import-Csv -Path $csvFilePath&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;foreach ($esxi in $esxiInfo) {&lt;BR /&gt;$esxiIP = $esxi.IP&lt;BR /&gt;$esxiUser = $esxi.User&lt;BR /&gt;$esxiPassword = $esxi.Password&lt;/P&gt;&lt;P&gt;# Connect to the ESXi server&lt;BR /&gt;Connect-VIServer -Server $esxiIP -User $esxiUser -Password $esxiPassword&lt;/P&gt;&lt;P&gt;# Generate the log bundle filename&lt;BR /&gt;$bundleFileName = "LogBundle_$($esxiIP.Replace('.', '_')).zip"&lt;BR /&gt;$bundleFilePath = Join-Path -Path $destinationFolder -ChildPath $bundleFileName&lt;/P&gt;&lt;P&gt;# Collect the log bundle&lt;BR /&gt;$task = Get-VMHost -Name $esxiIP | Get-Log -Bundle -DestinationPath $bundleFilePath -RunAsync&lt;/P&gt;&lt;P&gt;Write-Host "Collecting log bundle for ESXi host ($esxiIP)..."&lt;/P&gt;&lt;P&gt;# Wait for the log bundle collection task to complete&lt;BR /&gt;$task | Wait-Task&lt;/P&gt;&lt;P&gt;Write-Host "Log bundle collected for ESXi host ($esxiIP) and saved as $bundleFileName"&lt;/P&gt;&lt;P&gt;# Disconnect from the ESXi server&lt;BR /&gt;Disconnect-VIServer -Server $esxiIP -Confirm:$false&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 14:57:26 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969367#M112043</guid>
      <dc:creator>Jocker-H</dc:creator>
      <dc:date>2023-05-19T14:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCli Script to collect logs from Multiples ESXI into the same Vcenter</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969381#M112044</link>
      <description>&lt;P&gt;Do you get errors?&lt;BR /&gt;Is the file created, or is it empty?&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 16:04:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969381#M112044</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-05-19T16:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCli Script to collect logs from Multiples ESXI into the same Vcenter</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969588#M112056</link>
      <description>&lt;P&gt;Hey Luck,&lt;/P&gt;&lt;P&gt;No there was no file created and no errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;what do you think about the script does it seems correct to&amp;nbsp; you ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 07:06:53 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969588#M112056</guid>
      <dc:creator>Jocker-H</dc:creator>
      <dc:date>2023-05-22T07:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCli Script to collect logs from Multiples ESXI into the same Vcenter</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969594#M112059</link>
      <description>&lt;P&gt;The DestinationPath parameter on the Get-Log cmdlet wants a path, not a file.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 07:33:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969594#M112059</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-05-22T07:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCli Script to collect logs from Multiples ESXI into the same Vcenter</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969595#M112060</link>
      <description>&lt;P&gt;Hi LuckD,&lt;/P&gt;&lt;P&gt;The "d&lt;SPAN&gt;estinationPath" parameter already&amp;nbsp;receive a path. Correct me if i'm&amp;nbsp;&lt;/SPAN&gt;wrong :&lt;/P&gt;&lt;P&gt;-DestinationPath $bundleFilePath&lt;/P&gt;&lt;P&gt;$destinationFolder = "C:\Logs" ==&amp;gt; indicate the path where the logs will be saved&lt;BR /&gt;$bundleFilePath = Join-Path -Path $destinationFolder -ChildPath $bundleFileName&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 07:49:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969595#M112060</guid>
      <dc:creator>Jocker-H</dc:creator>
      <dc:date>2023-05-22T07:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCli Script to collect logs from Multiples ESXI into the same Vcenter</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969596#M112061</link>
      <description>&lt;P&gt;You attach the ZIP filename to that path (&lt;SPAN&gt;-DestinationPath $bundleFilePath&lt;/SPAN&gt;).&lt;BR /&gt;That is a file, not a folder&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 07:54:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969596#M112061</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-05-22T07:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCli Script to collect logs from Multiples ESXI into the same Vcenter</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969598#M112063</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So the paramètres should be like this ?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$task = Get-VMHost -Name $esxiIP | Get-Log -Bundle -DestinationPath "C:\Logs" -RunAsync&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 08:01:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969598#M112063</guid>
      <dc:creator>Jocker-H</dc:creator>
      <dc:date>2023-05-22T08:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCli Script to collect logs from Multiples ESXI into the same Vcenter</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969600#M112065</link>
      <description>&lt;P&gt;Yes, and I would first run a test with 1 ESXi node without the RunAsync parameter.&lt;BR /&gt;Collecting a log bundle might take some time and you might hit the &lt;STRONG&gt;WebOperationsTimeout&lt;/STRONG&gt; (default 300 seconds).&lt;BR /&gt;Increase the value with the &lt;A href="https://developer.vmware.com/docs/powercli/latest/vmware.vimautomation.core/commands/set-powercliconfiguration/" target="_blank" rel="noopener"&gt;Set-PowerCLIConfiguration&lt;/A&gt; cmdlet if needed.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 08:05:42 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCli-Script-to-collect-logs-from-Multiples-ESXI-into-the/m-p/2969600#M112065</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-05-22T08:05:42Z</dc:date>
    </item>
  </channel>
</rss>

