<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments for LucD notes	</title>
	<atom:link href="https://www.lucd.info/comments/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lucd.info/</link>
	<description>My PowerShell ramblings</description>
	<lastBuildDate>Wed, 08 Jan 2025 15:37:24 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/><atom:link rel="hub" href="https://websubhub.com/hub"/>	<item>
		<title>
		Comment on Folder by Path by Importer et exporter les dossiers de machines virtuelles avec PowerShell - Mon Post-It		</title>
		<link>https://www.lucd.info/2012/05/18/folder-by-path/#comment-25570</link>

		<dc:creator><![CDATA[Importer et exporter les dossiers de machines virtuelles avec PowerShell - Mon Post-It]]></dc:creator>
		<pubDate>Wed, 08 Jan 2025 15:37:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=4027#comment-25570</guid>

					<description><![CDATA[[&#8230;] effectuant quelques recherches sur le Net, nous avions lu les&#160; scripts&#160; de LucD (Lien 1&#160;, Lien 2), mais hier je suis tombé par hasard sur un script de LucD modifié par Mathieu du [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] effectuant quelques recherches sur le Net, nous avions lu les&nbsp; scripts&nbsp; de LucD (Lien 1&nbsp;, Lien 2), mais hier je suis tombé par hasard sur un script de LucD modifié par Mathieu du [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on About Async tasks, the Get-Task cmdlet and a hash table by PowerCLI for VM Encryption &#8211; Mike Foley		</title>
		<link>https://www.lucd.info/2010/02/21/about-async-tasks-the-get-task-cmdlet-and-a-hash-table/#comment-25524</link>

		<dc:creator><![CDATA[PowerCLI for VM Encryption &#8211; Mike Foley]]></dc:creator>
		<pubDate>Tue, 22 Oct 2024 19:44:28 +0000</pubDate>
		<guid isPermaLink="false">http://lucd.info/?p=1820#comment-25524</guid>

					<description><![CDATA[[&#8230;] You can use that value to monitor the Reconfigure VM task that&#8217;s generated. Luc Dekens has a great little chunk of code that I used in the past. I wrote a PowerCLI script to load up a bunch of New-VM tasks into a hash [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] You can use that value to monitor the Reconfigure VM task that&#8217;s generated. Luc Dekens has a great little chunk of code that I used in the past. I wrote a PowerCLI script to load up a bunch of New-VM tasks into a hash [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Get the vMotion/svMotion history by Troubleshooting vCenter permission errors &#124; Enterprise Admins.org		</title>
		<link>https://www.lucd.info/2013/03/31/get-the-vmotionsvmotion-history/#comment-25523</link>

		<dc:creator><![CDATA[Troubleshooting vCenter permission errors &#124; Enterprise Admins.org]]></dc:creator>
		<pubDate>Thu, 15 Aug 2024 16:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=4405#comment-25523</guid>

					<description><![CDATA[[&#8230;] worked for our case. Another option would be to use the Get-VIEventPlus function from here: https://www.lucd.info/2013/03/31/get-the-vmotionsvmotion-history/. Using this custom function, a EventFilterSpec is created where we can have vCenter only return the [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] worked for our case. Another option would be to use the Get-VIEventPlus function from here: <a href="https://www.lucd.info/2013/03/31/get-the-vmotionsvmotion-history/" rel="ugc">https://www.lucd.info/2013/03/31/get-the-vmotionsvmotion-history/</a>. Using this custom function, a EventFilterSpec is created where we can have vCenter only return the [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Orphaned Files Revisited by LucD		</title>
		<link>https://www.lucd.info/2016/09/13/orphaned-files-revisited/#comment-24593</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Tue, 17 Oct 2023 09:34:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=5384#comment-24593</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2016/09/13/orphaned-files-revisited/#comment-24590&quot;&gt;Marco Hofmann&lt;/a&gt;.

The version of the script in the post does not work with VSAN datatsores.

But on VMTN I got a similar question, and I posted an updated version of the script there.
See https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/get-orphaned-vmdk-information-from-vSAN/m-p/2814645/highlight/true#M98536

Can you try that version and let me know if it returns correct results for you?]]></description>
			<content:encoded><![CDATA[<p>The version of the script in the post does not work with VSAN datatsores.</p>
<p>But on VMTN I got a similar question, and I posted an updated version of the script there.<br />
See <a href="https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/get-orphaned-vmdk-information-from-vSAN/m-p/2814645/highlight/true#M98536" rel="nofollow ugc">https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/get-orphaned-vmdk-information-from-vSAN/m-p/2814645/highlight/true#M98536</a></p>
<p>Can you try that version and let me know if it returns correct results for you?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Orphaned Files Revisited by Marco Hofmann		</title>
		<link>https://www.lucd.info/2016/09/13/orphaned-files-revisited/#comment-24590</link>

		<dc:creator><![CDATA[Marco Hofmann]]></dc:creator>
		<pubDate>Tue, 17 Oct 2023 09:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=5384#comment-24590</guid>

					<description><![CDATA[Hi! Really would like to use that script, but I only get zero results. Even with -Verbose.
This should work against VSAN 7, should it?]]></description>
			<content:encoded><![CDATA[<p>Hi! Really would like to use that script, but I only get zero results. Even with -Verbose.<br />
This should work against VSAN 7, should it?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Get the maximum IOPS by LucD		</title>
		<link>https://www.lucd.info/2011/04/22/get-the-maximum-iops/#comment-24138</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Thu, 05 Oct 2023 06:43:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=3212#comment-24138</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2011/04/22/get-the-maximum-iops/#comment-24133&quot;&gt;Jerry&lt;/a&gt;.

These 3 metrics produce the average IO/sec over the interval corresponding with the Historical Interval, determined by the Start and Finish parameters.
The Entity property shows which component is involved.

- datastore.numberwriteaveraged.average : the metric for a Datastore. Entity is a Datastore.
- disk.numberwriteaveraged.average: the metric for a LUN. Should be equal to the previous one, provided the Datastore is composed of only 1 LUN. Entity is the LUN&#039;s CanonicalName.
- virtualdisk.numberwriteaveraged.average: the metric per VMDK. Entity is the VMDK

If you are interested in meaningfull numbers, specific for a VM, I would use the virtualdisk.numberwriteaveraged.average.

If you want to see if a datastore is over-utilised, I would use the datastore.numberwriteaveraged.average.
If the Datastore is spread over more than 1 LUN, I would also look at disk.numberwriteaveraged.average to check if the issue is due to a specific LUN.

If you want to see the numbers for a 30 min interval, use the Start and Finish parameters on the Get-Stat cmdlet.
Note that due to aggregation the Interval becomes longer, and thus the returned numbers less meaningfull to see/find outliers.

Hope this helps.]]></description>
			<content:encoded><![CDATA[<p>These 3 metrics produce the average IO/sec over the interval corresponding with the Historical Interval, determined by the Start and Finish parameters.<br />
The Entity property shows which component is involved.</p>
<p>&#8211; datastore.numberwriteaveraged.average : the metric for a Datastore. Entity is a Datastore.<br />
&#8211; disk.numberwriteaveraged.average: the metric for a LUN. Should be equal to the previous one, provided the Datastore is composed of only 1 LUN. Entity is the LUN&#8217;s CanonicalName.<br />
&#8211; virtualdisk.numberwriteaveraged.average: the metric per VMDK. Entity is the VMDK</p>
<p>If you are interested in meaningfull numbers, specific for a VM, I would use the virtualdisk.numberwriteaveraged.average.</p>
<p>If you want to see if a datastore is over-utilised, I would use the datastore.numberwriteaveraged.average.<br />
If the Datastore is spread over more than 1 LUN, I would also look at disk.numberwriteaveraged.average to check if the issue is due to a specific LUN.</p>
<p>If you want to see the numbers for a 30 min interval, use the Start and Finish parameters on the Get-Stat cmdlet.<br />
Note that due to aggregation the Interval becomes longer, and thus the returned numbers less meaningfull to see/find outliers.</p>
<p>Hope this helps.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Get the maximum IOPS by Jerry		</title>
		<link>https://www.lucd.info/2011/04/22/get-the-maximum-iops/#comment-24133</link>

		<dc:creator><![CDATA[Jerry]]></dc:creator>
		<pubDate>Thu, 05 Oct 2023 03:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=3212#comment-24133</guid>

					<description><![CDATA[Luc, what&#039;s the real difference between...?

disk.numberwriteaveraged.average
virtualdisk.numberwriteaveraged.average
datastore.numberwriteaveraged.average

Check this out:

(get-vm VM01 &#124; Get-Stat -Stat datastore.numberwriteaveraged.average -Start (Get-Date).AddMinutes(-30) -IntervalMins 1 &#124; Measure-Object Value -Average).Average
122.188888888889

(get-vm VM01 &#124; Get-Stat -Stat disk.numberwriteaveraged.average -Start (Get-Date).AddMinutes(-30) -IntervalMins 1 &#124; Measure-Object Value -Average).Average
121.644444444444

(get-vm VM01 &#124; Get-Stat -Stat virtualdisk.numberwriteaveraged.average -Start (Get-Date).AddMinutes(-30) -IntervalMins 1 &#124; Measure-Object Value -Average).Average
10.9333333333333

I want the average write IOPS of some VM in the last 30 minutes.
Datastore? Disk? VirtualDisk?]]></description>
			<content:encoded><![CDATA[<p>Luc, what&#8217;s the real difference between&#8230;?</p>
<p>disk.numberwriteaveraged.average<br />
virtualdisk.numberwriteaveraged.average<br />
datastore.numberwriteaveraged.average</p>
<p>Check this out:</p>
<p>(get-vm VM01 | Get-Stat -Stat datastore.numberwriteaveraged.average -Start (Get-Date).AddMinutes(-30) -IntervalMins 1 | Measure-Object Value -Average).Average<br />
122.188888888889</p>
<p>(get-vm VM01 | Get-Stat -Stat disk.numberwriteaveraged.average -Start (Get-Date).AddMinutes(-30) -IntervalMins 1 | Measure-Object Value -Average).Average<br />
121.644444444444</p>
<p>(get-vm VM01 | Get-Stat -Stat virtualdisk.numberwriteaveraged.average -Start (Get-Date).AddMinutes(-30) -IntervalMins 1 | Measure-Object Value -Average).Average<br />
10.9333333333333</p>
<p>I want the average write IOPS of some VM in the last 30 minutes.<br />
Datastore? Disk? VirtualDisk?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Task Data Mining &#8211; An improved Get-Task by LucD		</title>
		<link>https://www.lucd.info/2013/06/01/task-data-mining-an-improved-get-task/#comment-24082</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Tue, 03 Oct 2023 19:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=4464#comment-24082</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2013/06/01/task-data-mining-an-improved-get-task/#comment-24081&quot;&gt;Fabio Storni&lt;/a&gt;.

So there are no Tasks that completed during the last 10 minutes.

Another possible cause I can think of is that due to the default MaxSamples of 100 some recent Tasks are not included.
You might want to use that parameter to give it a try.

&lt;code&gt;
Get-TaskPlus -Start $start -Realtime -MaxSamples ([int]::MaxValue)
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>So there are no Tasks that completed during the last 10 minutes.</p>
<p>Another possible cause I can think of is that due to the default MaxSamples of 100 some recent Tasks are not included.<br />
You might want to use that parameter to give it a try.</p>
<p><code><br />
Get-TaskPlus -Start $start -Realtime -MaxSamples ([int]::MaxValue)<br />
</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Task Data Mining &#8211; An improved Get-Task by Fabio Storni		</title>
		<link>https://www.lucd.info/2013/06/01/task-data-mining-an-improved-get-task/#comment-24081</link>

		<dc:creator><![CDATA[Fabio Storni]]></dc:creator>
		<pubDate>Tue, 03 Oct 2023 19:01:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=4464#comment-24081</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2013/06/01/task-data-mining-an-improved-get-task/#comment-24080&quot;&gt;LucD&lt;/a&gt;.

PS C:\Users\fabio.storni&#062; Connect-VIServer vca07.pollaio.lan -Credential $credential

Name                           Port  User
----                           ----  ----
vca07.pollaio.lan              443   CORP.LOCAL\Administrator

PS C:\Users\fabio.storni&#062; 
PS C:\Users\fabio.storni&#062; $si = Get-View ServiceInstance
$taskMgr = Get-View $si.Content.TaskManager

if($taskMgr.RecentTask.Count -ne 0){
Get-View $taskMgr.RecentTask
}
else {
Write-Host &quot;No recent Tasks&quot;
}
No recent Tasks
PS C:\Users\fabio.storni&#062;

The tasks that I want check are MOVE-VM with RUNASYNC]]></description>
			<content:encoded><![CDATA[<p>PS C:\Users\fabio.storni&gt; Connect-VIServer vca07.pollaio.lan -Credential $credential</p>
<p>Name                           Port  User<br />
&#8212;-                           &#8212;-  &#8212;-<br />
vca07.pollaio.lan              443   CORP.LOCAL\Administrator</p>
<p>PS C:\Users\fabio.storni&gt;<br />
PS C:\Users\fabio.storni&gt; $si = Get-View ServiceInstance<br />
$taskMgr = Get-View $si.Content.TaskManager</p>
<p>if($taskMgr.RecentTask.Count -ne 0){<br />
Get-View $taskMgr.RecentTask<br />
}<br />
else {<br />
Write-Host &#8220;No recent Tasks&#8221;<br />
}<br />
No recent Tasks<br />
PS C:\Users\fabio.storni&gt;</p>
<p>The tasks that I want check are MOVE-VM with RUNASYNC</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Task Data Mining &#8211; An improved Get-Task by LucD		</title>
		<link>https://www.lucd.info/2013/06/01/task-data-mining-an-improved-get-task/#comment-24080</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Tue, 03 Oct 2023 18:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=4464#comment-24080</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2013/06/01/task-data-mining-an-improved-get-task/#comment-24079&quot;&gt;Fabio&lt;/a&gt;.

Can you check if there are any recent Tasks present?
&lt;code&gt;
$si = Get-View ServiceInstance
$taskMgr = Get-View $si.Content.TaskManager

if($taskMgr.RecentTask.Count -ne 0){
   Get-View $taskMgr.RecentTask 
}
else {
   Write-Host &quot;No recent Tasks&quot;
}
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>Can you check if there are any recent Tasks present?<br />
<code><br />
$si = Get-View ServiceInstance<br />
$taskMgr = Get-View $si.Content.TaskManager</p>
<p>if($taskMgr.RecentTask.Count -ne 0){<br />
   Get-View $taskMgr.RecentTask<br />
}<br />
else {<br />
   Write-Host "No recent Tasks"<br />
}<br />
</code></p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
