<?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>Jocker-H Tracker</title>
    <link>https://communities.vmware.com/wbsdv95928/tracker</link>
    <description>Jocker-H Tracker</description>
    <pubDate>Thu, 23 Nov 2023 15:29:03 GMT</pubDate>
    <dc:date>2023-11-23T15:29:03Z</dc:date>
    <item>
      <title>Re: PowerCLI Script that List all Clusters and their own Datastore details, Storage Baie</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Script-that-List-all-Clusters-and-their-own-Datastore/m-p/2991209#M113511</link>
      <description>&lt;P&gt;Please note that i did try this script and there was no output related to I/O&amp;nbsp; any idea why ?&lt;/P&gt;&lt;P&gt;# Get a list of ESXi hosts&lt;BR /&gt;$esxiHosts = Get-VMHost&lt;/P&gt;&lt;P&gt;# Get a list of ESXi clusters&lt;BR /&gt;$esxiClusters = Get-Cluster&lt;/P&gt;&lt;P&gt;# Create an array to store the data&lt;BR /&gt;$data = @()&lt;/P&gt;&lt;P&gt;# Loop through each ESXi host and add the associated datastores, size, free space, storage array, and I/O details to the data array&lt;BR /&gt;foreach ($esxiHost in $esxiHosts) {&lt;BR /&gt;$esxiHostName = $esxiHost.Name&lt;BR /&gt;$datastores = Get-Datastore -VMHost $esxiHost&lt;BR /&gt;$esxiCluster = ($esxiHost | Get-Cluster).Name&lt;/P&gt;&lt;P&gt;foreach ($datastore in $datastores) {&lt;BR /&gt;$datastoreName = $datastore.Name&lt;BR /&gt;$datastoreSize = $datastore.CapacityGB&lt;BR /&gt;$freeSpace = $datastore.FreeSpaceGB&lt;/P&gt;&lt;P&gt;# Get I/O details for the datastore (adjust the time period as needed)&lt;BR /&gt;$ioStats = Get-Stat -Entity $datastore -Stat "datastore.numberReadAveraged.average", "datastore.numberWriteAveraged.average" -MaxSamples 1 -Realtime&lt;/P&gt;&lt;P&gt;$data += [PSCustomObject]@{&lt;BR /&gt;"ESXi Host" = $esxiHostName&lt;BR /&gt;"Datastore" = $datastoreName&lt;BR /&gt;"Cluster" = $esxiCluster&lt;BR /&gt;"Size (GB)" = $datastoreSize&lt;BR /&gt;"Free Space (GB)" = $freeSpace&lt;BR /&gt;&lt;BR /&gt;"Reads per second" = $ioStats | Where-Object { $_.MetricId -eq "datastore.numberReadAveraged.average" } | Select-Object -ExpandProperty Value&lt;BR /&gt;"Writes per second" = $ioStats | Where-Object { $_.MetricId -eq "datastore.numberWriteAveraged.average" } | Select-Object -ExpandProperty Value&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 09:43:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Script-that-List-all-Clusters-and-their-own-Datastore/m-p/2991209#M113511</guid>
      <dc:creator>Jocker-H</dc:creator>
      <dc:date>2023-10-16T09:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: PowerCLI Script that List all Clusters and their own Datastore details, Storage Baie</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Script-that-List-all-Clusters-and-their-own-Datastore/m-p/2991206#M113510</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there any possibility to add a line into the below script in order to&amp;nbsp; show datastore&amp;nbsp; I/O value in real time ?&lt;/P&gt;&lt;P&gt;$esxiHosts = Get-VMHost&lt;BR /&gt;$esxiClusters = Get-Cluster&lt;BR /&gt;$data = @()&lt;BR /&gt;foreach ($esxiHost in $esxiHosts) {&lt;BR /&gt;$esxiHostName = $esxiHost.Name&lt;BR /&gt;$datastores = Get-Datastore -VMHost $esxiHost&lt;BR /&gt;$esxiCluster = ($esxiHost | Get-Cluster).Name&lt;/P&gt;&lt;P&gt;foreach ($datastore in $datastores) {&lt;BR /&gt;$data += [PSCustomObject]@{&lt;BR /&gt;"ESXi Host" = $esxiHostName&lt;BR /&gt;"Datastore" = $datastore.Name&lt;BR /&gt;"Cluster" = $esxiCluster&lt;BR /&gt;"Size (GB)" = $datastore.CapacityGB&lt;BR /&gt;"Free Space (GB)" = $datastore.FreeSpaceGB&lt;BR /&gt;"Storage Array" = $datastore.ExtensionData.Info.Url&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;$data | Format-Table -AutoSize&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hamdi&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 09:32:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Script-that-List-all-Clusters-and-their-own-Datastore/m-p/2991206#M113510</guid>
      <dc:creator>Jocker-H</dc:creator>
      <dc:date>2023-10-16T09:32:40Z</dc:date>
    </item>
    <item>
      <title>PowerCLI Script that List all Clusters and their own Datastore details, Storage Baie</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Script-that-List-all-Clusters-and-their-own-Datastore/m-p/2990595#M113464</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im looking to create a Power CLI script that list all clusters into a Vcenter and theirs own datastores and storage baies details ( Name of the baie, Name of the datastore, Size of the datastore, Free space …). Could you please help me and let me know what can i add to this exemple ? i'm Open to any suggestion&amp;nbsp;&lt;/P&gt;&lt;P&gt;$clusters = get-cluster&lt;BR /&gt;Foreach ($cluster in $clusters)&lt;BR /&gt;{&lt;BR /&gt;$cluster | get-datastore | % {&lt;BR /&gt;[pscustomobject] @{&lt;BR /&gt;'cluster' = $cluster.name&lt;BR /&gt;'datastore' = $_.name&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 15:03:03 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/PowerCLI-Script-that-List-all-Clusters-and-their-own-Datastore/m-p/2990595#M113464</guid>
      <dc:creator>Jocker-H</dc:creator>
      <dc:date>2023-10-11T15:03:03Z</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/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/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>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: Remove snapshots using script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Remove-snapshots-using-script/m-p/2967842#M111930</link>
      <description>&lt;P&gt;Hello, could you please share with us the script after the modification. Im intrest in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 17:56:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Remove-snapshots-using-script/m-p/2967842#M111930</guid>
      <dc:creator>Jocker-H</dc:creator>
      <dc:date>2023-05-10T17:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Remove snapshots using script</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Remove-snapshots-using-script/m-p/2964109#M111572</link>
      <description>&lt;P&gt;Hello Luc,&lt;/P&gt;&lt;P&gt;Quick question please can we remove Snapshot from the listed VMs but based on Date and time of the snap wich should be listed&amp;nbsp; into the CVS file ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exemple for the Csv VM Name / Date&amp;nbsp; / Time of Snap Creation /&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 10:34:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Remove-snapshots-using-script/m-p/2964109#M111572</guid>
      <dc:creator>Jocker-H</dc:creator>
      <dc:date>2023-04-17T10:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script to set disk ,CPU and Memory for an existing VMs</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-set-disk-CPU-and-Memory-for-an-existing-VMs/m-p/2953720#M110713</link>
      <description>&lt;P&gt;Hello LucD,&lt;/P&gt;&lt;P&gt;Yes the VM are in a list CSV that contain the VM name and the new value to be changed.&lt;/P&gt;&lt;P&gt;Some of them the Hot add Feature is disabled.&lt;/P&gt;&lt;P&gt;So i'm looking for a script to change the VM parameters disk, memory,CPU&amp;nbsp; if the Hot Add is enabled and if not return the list of the VM with disabled hot add option.&lt;/P&gt;&lt;P&gt;Every one how just started Learning Scripting could ask bad questions !&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 12:58:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-set-disk-CPU-and-Memory-for-an-existing-VMs/m-p/2953720#M110713</guid>
      <dc:creator>Jocker-H</dc:creator>
      <dc:date>2023-02-10T12:58:51Z</dc:date>
    </item>
    <item>
      <title>Script to set disk ,CPU and Memory for an existing VMs</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-set-disk-CPU-and-Memory-for-an-existing-VMs/m-p/2953711#M110711</link>
      <description>&lt;P&gt;Hello VMWare Communities.&lt;/P&gt;&lt;P&gt;VMWare version : 7.x&lt;/P&gt;&lt;P&gt;I'm locking for a script to add or remove disk,memory and CPU on Multiples&amp;nbsp;existing VMs at ones.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; : Some of them the hot add feature is disabled and other is enabled.&lt;/P&gt;&lt;P&gt;Could you please help me&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 11:46:18 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Script-to-set-disk-CPU-and-Memory-for-an-existing-VMs/m-p/2953711#M110711</guid>
      <dc:creator>Jocker-H</dc:creator>
      <dc:date>2023-02-10T11:46:18Z</dc:date>
    </item>
  </channel>
</rss>

