<?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 on: Automate SIOC	</title>
	<atom:link href="https://www.lucd.info/2010/10/20/automate-sioc/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lucd.info/2010/10/20/automate-sioc/</link>
	<description>My PowerShell ramblings</description>
	<lastBuildDate>Wed, 08 Apr 2020 11:01:47 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.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>
		By: LucD		</title>
		<link>https://www.lucd.info/2010/10/20/automate-sioc/#comment-4562</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Wed, 06 Feb 2019 15:20:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2721#comment-4562</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2010/10/20/automate-sioc/#comment-4561&quot;&gt;Oleg&lt;/a&gt;.

Thanks for confirming, I&#039;ll update the post.]]></description>
			<content:encoded><![CDATA[<p>Thanks for confirming, I&#8217;ll update the post.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Oleg		</title>
		<link>https://www.lucd.info/2010/10/20/automate-sioc/#comment-4561</link>

		<dc:creator><![CDATA[Oleg]]></dc:creator>
		<pubDate>Wed, 06 Feb 2019 15:10:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2721#comment-4561</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2010/10/20/automate-sioc/#comment-4560&quot;&gt;LucD&lt;/a&gt;.

Luc,

Thank you very much!!! Now it&#039;s working like a champ!!!

Thanks again for such a great script!

All the best!

(just get rid of space in the second line &quot;&#060; # .SYNOPSIS Enables/disables Storage IO Control&#034; between &#034;&#060;&#034; and &#034;#&#034;, we know you just missed it)]]></description>
			<content:encoded><![CDATA[<p>Luc,</p>
<p>Thank you very much!!! Now it&#8217;s working like a champ!!!</p>
<p>Thanks again for such a great script!</p>
<p>All the best!</p>
<p>(just get rid of space in the second line &#8220;&lt; # .SYNOPSIS Enables/disables Storage IO Control&quot; between &quot;&lt;&quot; and &quot;#&quot;, we know you just missed it)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2010/10/20/automate-sioc/#comment-4560</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Tue, 05 Feb 2019 19:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2721#comment-4560</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2010/10/20/automate-sioc/#comment-4559&quot;&gt;Oleg&lt;/a&gt;.

Hi Oleg,
Which PowerCLI version are you using?
Since vSphere went out of support last year, the 5.5 methods have been removed from PowerCLI.
You could install a PowerCLI version pre-September 2018, or try with the following updated  code, which doesn&#039;t use that Convert anymore.

&lt;code&gt;
function Set-Sioc{
&lt;#
.SYNOPSIS
	Enables/disables Storage IO Control for a a datastore
.DESCRIPTION
	The function enables or disables SIOC for a datastore.
.NOTES
	Authors:      Luc Dekens
.PARAMETER Datastore
	On or more datastores
.PARAMETER Enabled
	A switch that defines if SIOC will be enabled or disabled
.PARAMETER Threshold
	Specify the threshold
.EXAMPLE
	PS&gt; Set-Sioc -Datastore (Get-Datastore -Name &quot;DS1&quot;) -Enabled:$true
.EXAMPLE
	PS&gt; Get-Datastore &#124; Set-SIOC -Enabled:$true -Threshold 30
.EXAMPLE
	PS&gt; Get-Datastore &#124; Set-SIOC -Enabled:$false
#&gt;
	param(
		[parameter(
		valuefrompipeline = $true,position = 0,
		HelpMessage = &quot;Enter a datastore&quot;)]
		[VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreImpl[]]$Datastore,
		[switch]$Enabled,
		[int]$Threshold = 30
	)
	begin{
	$si = Get-View ServiceInstance
	$spec = New-Object VMware.Vim.StorageIORMConfigSpec
	$spec.congestionThreshold = $Threshold
	$spec.enabled = $Enabled
	}
 
	process{
		$Datastore &#124; %{
            $storMgr = Get-View -Id $si.Content.StorageResourceManager
            $storMgr.ConfigureDatastoreIORM($_.ExtensionData.MoRef,$spec)
		}
	}
}

function Get-Sioc{
&lt;#
.SYNOPSIS
	Get the Storage IO Control settings for a host or a datastore
.DESCRIPTION
	When called against a VMHost, the cmdlet will return the SIOC
	settings on the host
	When called against a Datastore, the cmdlet will return the SIOC
	settings for all hosts on which the datastore is accessible
.NOTES
	Authors:      Luc Dekens
.PARAMETER VMHost
	On or more hosts
.PARAMETER Datastore
	On or more datastores
.EXAMPLE
	PS&gt; Get-Sioc -VMHost (Get-VMHost)
.EXAMPLE
	PS&gt; Get-VMHost -Name &quot;esx41&quot; &#124; Get-Sioc
.EXAMPLE
	PS&gt; Get-Sioc -Datastore (Get-Datastore)
.EXAMPLE
	PS&gt; Get-Datastore -Name &quot;DS1&quot; &#124; Get-Sioc
#&gt;
	param(
		[parameter(ParameterSetName = &quot;VMHost&quot;,
			valuefrompipeline = $true,position = 0,
			HelpMessage = &quot;Enter a host&quot;)]
			[VMware.VimAutomation.ViCore.Impl.V1.Inventory.VMHostImpl[]]$VMHost,
		[parameter(ParameterSetName = &quot;Datastore&quot;,
			valuefrompipeline = $true, position = 0,
			HelpMessage = &quot;Enter a datastore&quot;)]
			[VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreImpl[]]$Datastore
	)
	begin{
		switch($PsCmdlet.ParameterSetName){
			&quot;VMHost&quot;{
				$si = Get-View ServiceInstance
			}
			&quot;Datastore&quot;{}
		}
	}
	process{
		switch($PsCmdlet.ParameterSetName){
			&quot;VMHost&quot;{
				$VMHost &#124; %{
                    $storMgr = Get-View -Id $si.Content.StorageResourceManager
                    $result = $storMgr.QueryIORMConfigOption($_.ExtensionData.MoRef)
					$row = &quot;&quot; &#124; Select Name,SIOCSupported,SIOCStateDefault,
										SIOCThresholdMinimum,SIOCThresholdMaximum,SIOCThresholdDefault
					$row.Name = $_.Name
					$row.SIOCSupported = $result.enabledOption.supported
					$row.SIOCStateDefault = $result.enabledOption.defaultValue
					$row.SIOCThresholdMinimum = $result.congestionThresholdOption.min
					$row.SIOCThresholdMaximum = $result.congestionThresholdOption.max
					$row.SIOCThresholdDefault = $result.congestionThresholdOption.defaultValue
					$row
				}
			}
			&quot;Datastore&quot;{
				$Datastore &#124; %{
					$row = &quot;&quot; &#124; Select Name,SIOCEnabled,SIOCThreshold
					$row.Name = $_.Name
					$row.SIOCEnabled = $_.Extensiondata.iormConfiguration.enabled
					$row.SIOCThreshold = $_.Extensiondata.iormConfiguration.congestionThreshold
					$row
				}
			}
		}
	}
}
&lt;/code&gt;

Let me know if the new code works for you, then I can update the post.]]></description>
			<content:encoded><![CDATA[<p>Hi Oleg,<br />
Which PowerCLI version are you using?<br />
Since vSphere went out of support last year, the 5.5 methods have been removed from PowerCLI.<br />
You could install a PowerCLI version pre-September 2018, or try with the following updated  code, which doesn&#8217;t use that Convert anymore.</p>
<p><code><br />
function Set-Sioc{<br />
<#
.SYNOPSIS
	Enables/disables Storage IO Control for a a datastore
.DESCRIPTION
	The function enables or disables SIOC for a datastore.
.NOTES
	Authors:      Luc Dekens
.PARAMETER Datastore
	On or more datastores
.PARAMETER Enabled
	A switch that defines if SIOC will be enabled or disabled
.PARAMETER Threshold
	Specify the threshold
.EXAMPLE
	PS> Set-Sioc -Datastore (Get-Datastore -Name "DS1") -Enabled:$true<br />
.EXAMPLE<br />
	PS> Get-Datastore | Set-SIOC -Enabled:$true -Threshold 30<br />
.EXAMPLE<br />
	PS> Get-Datastore | Set-SIOC -Enabled:$false<br />
#><br />
	param(<br />
		[parameter(<br />
		valuefrompipeline = $true,position = 0,<br />
		HelpMessage = "Enter a datastore")]<br />
		[VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreImpl[]]$Datastore,<br />
		[switch]$Enabled,<br />
		[int]$Threshold = 30<br />
	)<br />
	begin{<br />
	$si = Get-View ServiceInstance<br />
	$spec = New-Object VMware.Vim.StorageIORMConfigSpec<br />
	$spec.congestionThreshold = $Threshold<br />
	$spec.enabled = $Enabled<br />
	}</p>
<p>	process{<br />
		$Datastore | %{<br />
            $storMgr = Get-View -Id $si.Content.StorageResourceManager<br />
            $storMgr.ConfigureDatastoreIORM($_.ExtensionData.MoRef,$spec)<br />
		}<br />
	}<br />
}</p>
<p>function Get-Sioc{<br />
<#
.SYNOPSIS
	Get the Storage IO Control settings for a host or a datastore
.DESCRIPTION
	When called against a VMHost, the cmdlet will return the SIOC
	settings on the host
	When called against a Datastore, the cmdlet will return the SIOC
	settings for all hosts on which the datastore is accessible
.NOTES
	Authors:      Luc Dekens
.PARAMETER VMHost
	On or more hosts
.PARAMETER Datastore
	On or more datastores
.EXAMPLE
	PS> Get-Sioc -VMHost (Get-VMHost)<br />
.EXAMPLE<br />
	PS> Get-VMHost -Name "esx41" | Get-Sioc<br />
.EXAMPLE<br />
	PS> Get-Sioc -Datastore (Get-Datastore)<br />
.EXAMPLE<br />
	PS> Get-Datastore -Name "DS1" | Get-Sioc<br />
#><br />
	param(<br />
		[parameter(ParameterSetName = "VMHost",<br />
			valuefrompipeline = $true,position = 0,<br />
			HelpMessage = "Enter a host")]<br />
			[VMware.VimAutomation.ViCore.Impl.V1.Inventory.VMHostImpl[]]$VMHost,<br />
		[parameter(ParameterSetName = "Datastore",<br />
			valuefrompipeline = $true, position = 0,<br />
			HelpMessage = "Enter a datastore")]<br />
			[VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreImpl[]]$Datastore<br />
	)<br />
	begin{<br />
		switch($PsCmdlet.ParameterSetName){<br />
			"VMHost"{<br />
				$si = Get-View ServiceInstance<br />
			}<br />
			"Datastore"{}<br />
		}<br />
	}<br />
	process{<br />
		switch($PsCmdlet.ParameterSetName){<br />
			"VMHost"{<br />
				$VMHost | %{<br />
                    $storMgr = Get-View -Id $si.Content.StorageResourceManager<br />
                    $result = $storMgr.QueryIORMConfigOption($_.ExtensionData.MoRef)<br />
					$row = "" | Select Name,SIOCSupported,SIOCStateDefault,<br />
										SIOCThresholdMinimum,SIOCThresholdMaximum,SIOCThresholdDefault<br />
					$row.Name = $_.Name<br />
					$row.SIOCSupported = $result.enabledOption.supported<br />
					$row.SIOCStateDefault = $result.enabledOption.defaultValue<br />
					$row.SIOCThresholdMinimum = $result.congestionThresholdOption.min<br />
					$row.SIOCThresholdMaximum = $result.congestionThresholdOption.max<br />
					$row.SIOCThresholdDefault = $result.congestionThresholdOption.defaultValue<br />
					$row<br />
				}<br />
			}<br />
			"Datastore"{<br />
				$Datastore | %{<br />
					$row = "" | Select Name,SIOCEnabled,SIOCThreshold<br />
					$row.Name = $_.Name<br />
					$row.SIOCEnabled = $_.Extensiondata.iormConfiguration.enabled<br />
					$row.SIOCThreshold = $_.Extensiondata.iormConfiguration.congestionThreshold<br />
					$row<br />
				}<br />
			}<br />
		}<br />
	}<br />
}<br />
</code></p>
<p>Let me know if the new code works for you, then I can update the post.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Oleg		</title>
		<link>https://www.lucd.info/2010/10/20/automate-sioc/#comment-4559</link>

		<dc:creator><![CDATA[Oleg]]></dc:creator>
		<pubDate>Tue, 05 Feb 2019 17:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2721#comment-4559</guid>

					<description><![CDATA[Hi Luc,

I was using your script just fine till I recently had to move to new laptop and looks like I am missing something now (either module or using a wrong version or something similar).

Anyway, when I &#039;m trying to run your script against ESXi 5.5 (and I know it worked before) I&#039;m getting the following error:
Method invocation failed because [VMware.Vim.VIConvert] does not contain a method named &#039;ToVim55&#039;.
At line:57 char:8
+        $taskMoRef = $si.Client.VimService.ConfigureDatastoreIORM_Task(
+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound
 
Get-View : Cannot validate argument on parameter &#039;VIObject&#039;. The argument is null or empty. Provide an argument that is not null or empty, and then try the command 
again.
At line:61 char:25
+        $task = Get-View ([VMWare.Vim.VIConvert]::ToVim($taskMoRef))
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Get-View], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutomation.ViCore.Cmdlets.Commands.DotNetInterop.GetVIView


And this is what I have in the code:

process{  
     $Datastore &#124; %{  
       $taskMoRef = $si.Client.VimService.ConfigureDatastoreIORM_Task(  
         [VMWare.Vim.VIConvert]::ToVim55($si.Content.StorageResourceManager),  
         [VMWare.Vim.VIConvert]::ToVim55($_.Extensiondata.MoRef),  
         [VMWare.Vim.VIConvert]::ToVim55($spec))  
       $task = Get-View ([VMWare.Vim.VIConvert]::ToVim($taskMoRef))  
       while (&quot;running&quot;,&quot;queued&quot; -contains $task.Info.State){  
         $task.UpdateViewData(&quot;Info.State&quot;)  
       }  
     }  
   }  
 
Can you please point what am I missing now? 

Thanks a lot!]]></description>
			<content:encoded><![CDATA[<p>Hi Luc,</p>
<p>I was using your script just fine till I recently had to move to new laptop and looks like I am missing something now (either module or using a wrong version or something similar).</p>
<p>Anyway, when I &#8216;m trying to run your script against ESXi 5.5 (and I know it worked before) I&#8217;m getting the following error:<br />
Method invocation failed because [VMware.Vim.VIConvert] does not contain a method named &#8216;ToVim55&#8217;.<br />
At line:57 char:8<br />
+        $taskMoRef = $si.Client.VimService.ConfigureDatastoreIORM_Task(<br />
+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException<br />
    + FullyQualifiedErrorId : MethodNotFound</p>
<p>Get-View : Cannot validate argument on parameter &#8216;VIObject&#8217;. The argument is null or empty. Provide an argument that is not null or empty, and then try the command<br />
again.<br />
At line:61 char:25<br />
+        $task = Get-View ([VMWare.Vim.VIConvert]::ToVim($taskMoRef))<br />
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
    + CategoryInfo          : InvalidData: (:) [Get-View], ParameterBindingValidationException<br />
    + FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutomation.ViCore.Cmdlets.Commands.DotNetInterop.GetVIView</p>
<p>And this is what I have in the code:</p>
<p>process{<br />
     $Datastore | %{<br />
       $taskMoRef = $si.Client.VimService.ConfigureDatastoreIORM_Task(<br />
         [VMWare.Vim.VIConvert]::ToVim55($si.Content.StorageResourceManager),<br />
         [VMWare.Vim.VIConvert]::ToVim55($_.Extensiondata.MoRef),<br />
         [VMWare.Vim.VIConvert]::ToVim55($spec))<br />
       $task = Get-View ([VMWare.Vim.VIConvert]::ToVim($taskMoRef))<br />
       while (&#8220;running&#8221;,&#8221;queued&#8221; -contains $task.Info.State){<br />
         $task.UpdateViewData(&#8220;Info.State&#8221;)<br />
       }<br />
     }<br />
   }  </p>
<p>Can you please point what am I missing now? </p>
<p>Thanks a lot!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2010/10/20/automate-sioc/#comment-4498</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Thu, 20 Sep 2018 12:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2721#comment-4498</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2010/10/20/automate-sioc/#comment-4493&quot;&gt;Hernan Rojas&lt;/a&gt;.

Thanks Hernan]]></description>
			<content:encoded><![CDATA[<p>Thanks Hernan</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Hernan Rojas		</title>
		<link>https://www.lucd.info/2010/10/20/automate-sioc/#comment-4493</link>

		<dc:creator><![CDATA[Hernan Rojas]]></dc:creator>
		<pubDate>Thu, 13 Sep 2018 16:04:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2721#comment-4493</guid>

					<description><![CDATA[Usually, I don&#039;t spend time writing reviews or comments but your post has been so useful that I take the time to say &quot;thank you&quot;.

great piece of code and with examples, those examples are priceless.

thanks again.

Hernan 
Bogotá-Col]]></description>
			<content:encoded><![CDATA[<p>Usually, I don&#8217;t spend time writing reviews or comments but your post has been so useful that I take the time to say &#8220;thank you&#8221;.</p>
<p>great piece of code and with examples, those examples are priceless.</p>
<p>thanks again.</p>
<p>Hernan<br />
Bogotá-Col</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Paul		</title>
		<link>https://www.lucd.info/2010/10/20/automate-sioc/#comment-1863</link>

		<dc:creator><![CDATA[Paul]]></dc:creator>
		<pubDate>Mon, 26 Nov 2012 12:44:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2721#comment-1863</guid>

					<description><![CDATA[&lt;a href=&quot;#comment-863&quot; rel=&quot;nofollow&quot;&gt;@LucD &lt;/a&gt; 

@LucD

That snippet of code has been incredibly useful in managing IOPS greedy VMs in our environment. So thanks very much.

A question, how would it be possible to report on IOPS limits instead of reconfiguring?

Regards

Paul]]></description>
			<content:encoded><![CDATA[<p><a href="#comment-863" rel="nofollow">@LucD </a> </p>
<p>@LucD</p>
<p>That snippet of code has been incredibly useful in managing IOPS greedy VMs in our environment. So thanks very much.</p>
<p>A question, how would it be possible to report on IOPS limits instead of reconfiguring?</p>
<p>Regards</p>
<p>Paul</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Oleg		</title>
		<link>https://www.lucd.info/2010/10/20/automate-sioc/#comment-1621</link>

		<dc:creator><![CDATA[Oleg]]></dc:creator>
		<pubDate>Thu, 07 Jun 2012 14:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2721#comment-1621</guid>

					<description><![CDATA[&lt;a href=&quot;#comment-1620&quot; rel=&quot;nofollow&quot;&gt;@LucD  &lt;/a&gt; 
Luc,

No the code was correct (I double check it with your book).  However, I did not have PowerShell 2.0 Now everything is working.
Thanks a lot!]]></description>
			<content:encoded><![CDATA[<p><a href="#comment-1620" rel="nofollow">@LucD  </a><br />
Luc,</p>
<p>No the code was correct (I double check it with your book).  However, I did not have PowerShell 2.0 Now everything is working.<br />
Thanks a lot!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LucD		</title>
		<link>https://www.lucd.info/2010/10/20/automate-sioc/#comment-1620</link>

		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Wed, 06 Jun 2012 20:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2721#comment-1620</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.lucd.info/2010/10/20/automate-sioc/#comment-1619&quot;&gt;Oleg&lt;/a&gt;.

@Oleg, are you sure the copy/paste of the code worked correctly ?
It looks as if there is a comma missing on the 2nd line of this part in the Get-Sioc function.
&lt;code&gt;
		[parameter(ParameterSetName = &quot;VMHost&quot;,
			valuefrompipeline = $true,position = 0,
			HelpMessage = &quot;Enter a host&quot;)]
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>@Oleg, are you sure the copy/paste of the code worked correctly ?<br />
It looks as if there is a comma missing on the 2nd line of this part in the Get-Sioc function.<br />
<code><br />
		[parameter(ParameterSetName = "VMHost",<br />
			valuefrompipeline = $true,position = 0,<br />
			HelpMessage = "Enter a host")]<br />
</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Oleg		</title>
		<link>https://www.lucd.info/2010/10/20/automate-sioc/#comment-1619</link>

		<dc:creator><![CDATA[Oleg]]></dc:creator>
		<pubDate>Wed, 06 Jun 2012 20:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.lucd.info/?p=2721#comment-1619</guid>

					<description><![CDATA[Luc,

I know I ran this script some time ago (maybe one year ago) and it worked just fine. However, now I have errors when I run it in both functions &quot;get-sioc&quot; and &quot;set-sioc&quot;.

When I&#039;m running &quot;Get-SIOC&quot; function I have the following error:

Parameter declarations are a comma-separated list of variable names with optional initializer expressions.
At :line:6 char:34
+ 			HelpMessage = &quot;Enter a host&quot;)]


and when I&#039;m running &quot;Set-SIOC&quot; function I have the following error:

Missing closing &#039;)&#039; in expression.
At :line:78 char:3
+ 		[ &#060;&#060;&#060;&#060; VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreImpl[]]

I checked and rechecked everything, but could not find the issue.
Could it be because I am running newer version of PowerCLI/PowerShell?

Please help.

Thank you]]></description>
			<content:encoded><![CDATA[<p>Luc,</p>
<p>I know I ran this script some time ago (maybe one year ago) and it worked just fine. However, now I have errors when I run it in both functions &#8220;get-sioc&#8221; and &#8220;set-sioc&#8221;.</p>
<p>When I&#8217;m running &#8220;Get-SIOC&#8221; function I have the following error:</p>
<p>Parameter declarations are a comma-separated list of variable names with optional initializer expressions.<br />
At :line:6 char:34<br />
+ 			HelpMessage = &#8220;Enter a host&#8221;)]</p>
<p>and when I&#8217;m running &#8220;Set-SIOC&#8221; function I have the following error:</p>
<p>Missing closing &#8216;)&#8217; in expression.<br />
At :line:78 char:3<br />
+ 		[ &lt;&lt;&lt;&lt; VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreImpl[]]</p>
<p>I checked and rechecked everything, but could not find the issue.<br />
Could it be because I am running newer version of PowerCLI/PowerShell?</p>
<p>Please help.</p>
<p>Thank you</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
