<?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 Error when executing Invoke-NaSSh in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19257#M4156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using brand new wfa2.1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a custom command setting reallocate schedules for volumes. Unfortunately cmdlet start-nareallocate does not set the threshold to the value provided to the cmdlet. It always sets 1. Because of this I want to use invoke-nassh with the following command "reallocate start -t 4 -p /vol/volname".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this custom command is executed out of a workflow it runs without errors. Executing this custom command in a workflow throws the following error: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"Index was out of range. Must be non-negative and less than the size of the collection. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Parameter name: index"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;When I remove the invoke-nassh cmdlet then the command finishes without errors. When I replace the "reallocate ..." with "abc" the same error is thrown (whereas I would except some exception from the controller because debug is no known command). When I relocate the invoke-nassh cmdlet to the beginning of the command then this error is thrown immediately after starting the command. When I relocate the invoke-nassh cmdlet to the end of the command then every step is executed until the cmdlet is reached and again this error is raised.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;What is wrong here? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:56:21 GMT</pubDate>
    <dc:creator>kiessl</dc:creator>
    <dc:date>2025-06-05T05:56:21Z</dc:date>
    <item>
      <title>Error when executing Invoke-NaSSh</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19257#M4156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using brand new wfa2.1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a custom command setting reallocate schedules for volumes. Unfortunately cmdlet start-nareallocate does not set the threshold to the value provided to the cmdlet. It always sets 1. Because of this I want to use invoke-nassh with the following command "reallocate start -t 4 -p /vol/volname".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this custom command is executed out of a workflow it runs without errors. Executing this custom command in a workflow throws the following error: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"Index was out of range. Must be non-negative and less than the size of the collection. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Parameter name: index"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;When I remove the invoke-nassh cmdlet then the command finishes without errors. When I replace the "reallocate ..." with "abc" the same error is thrown (whereas I would except some exception from the controller because debug is no known command). When I relocate the invoke-nassh cmdlet to the beginning of the command then this error is thrown immediately after starting the command. When I relocate the invoke-nassh cmdlet to the end of the command then every step is executed until the cmdlet is reached and again this error is raised.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;What is wrong here? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:56:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19257#M4156</guid>
      <dc:creator>kiessl</dc:creator>
      <dc:date>2025-06-05T05:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error when executing Invoke-NaSSh</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19262#M4158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Walter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you copy the command into part of an existing workflow?&amp;nbsp; It sounds like a param somewhere in the code itself may be set to an array.&amp;nbsp; Can you "sanitize" anything sensitive to you and post the command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 13:29:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19262#M4158</guid>
      <dc:creator>cscott</dc:creator>
      <dc:date>2013-08-08T13:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error when executing Invoke-NaSSh</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19266#M4160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, I inserted the command in an already existing workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you can find the command. The version in the attachment is running without an error (besides that it cannot set the threshold because the powershell cmdlet is erroneous). When I comment out the line starting with "Start-NaReallocate" and remove the comment from the lines starting with "$cmd ..." and "Invoke-NaSSH ..." the error described is thrown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If testing the command without a workflow then it is working in both versions. But embedded in the workflow it fails when using Invoke-NaSSH. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 05:26:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19266#M4160</guid>
      <dc:creator>kiessl</dc:creator>
      <dc:date>2013-08-09T05:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error when executing Invoke-NaSSh</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19271#M4161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Walter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sorry for the delay, something changed on my DNS and WFA was not logging into the controllers properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To level set, I am running WFA 2.0.1 and the 2.1.0.205 version of the ONTAP toolkit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was not able to reproduce the error, all three volumes that I tried to reallocate worked without issue.&amp;nbsp; However when you are building your values in your parameters, you will be trying to pass -1 to the frame for $DayOfMonth as you are using invoke-nassh.&amp;nbsp; When using the invoke command you would need to substitute "*"(splat, asterisk, star) in the command if my thinking is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would wrap an if(something like this) around that command such as the one below would fix your error&lt;/P&gt;&lt;P&gt;If ($DayOfMonth -eq "-1") {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $DayOfMonth = "*"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 16:44:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19271#M4161</guid>
      <dc:creator>cscott</dc:creator>
      <dc:date>2013-08-12T16:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error when executing Invoke-NaSSh</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19276#M4162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no problem and thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following: &lt;/P&gt;&lt;P&gt;I removed all statements from the command except the parameter definition at the beginning, the connect-wfacontroller and a 'invoke-nassh "abc" -erroraction stop'. When executing this little command in my workflow it still throws the error ("Index was out of range ...")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried the following:&lt;/P&gt;&lt;P&gt;I took the little command and substituted the 'invoke-nassh" with 'get-wfalogger -info -message $("debug")'. Now executing this and the workflow finished without errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned, the original command which I posted is running outside of the workflow (when running with the "test" button in the command edit window) without errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I am using WFA2.1: Could there be an error introduced with 2.1 regarding invoke-nassh in a workflow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 06:18:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19276#M4162</guid>
      <dc:creator>kiessl</dc:creator>
      <dc:date>2013-08-13T06:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error when executing Invoke-NaSSh</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19280#M4163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; As I am using WFA2.1: Could there be an error introduced with 2.1 regarding invoke-nassh in a workflow?&lt;/P&gt;&lt;P&gt;I tried a version of your command using code as follows through a workflow and seems to work fine for me. This was on WFA 2.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Command code I tried was:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;------------------------&lt;/P&gt;&lt;P&gt;Param (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="Array name or IP address")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [string]$Array,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="Name of the volume for which the reallocate should be set up.")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [string]$VolumeName,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="This threshold marks the defragmentation count for which reallocate should start. Default is 4")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ValidateRange(3,10)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [int]$Threshold = 4,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="Reallocate Job Schedule: Minute (Valid values are from -1 to 59 with -1 meaning all possible values.)")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ValidateRange(-1,59)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [int]$Minute = 8, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="Reallocate Job Schedule: Hour (Valid values are from -1 to 23 with -1 meaning all possible values.)")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ValidateRange(-1,23)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [int]$Hour = 2, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="Reallocate Job Schedule: Day of month (Valid values are from -1 to 31 with -1 or 0 meaning all possible values.)")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ValidateRange(-1,31)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [int]$DayOfMonth = -1, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="Reallocate Job Schedule: Day of week (Valid values are from -1 to 6 with -1 meaning all possible values.)")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ValidateRange(-1,6)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [int]$DayOfWeek = 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;#--- connect to controller&lt;/P&gt;&lt;P&gt;Connect-WfaController -Array $Array &lt;/P&gt;&lt;P&gt;#--- vars&lt;/P&gt;&lt;P&gt;$msg = $VolumeName + ": "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#---&amp;nbsp; Checks (and exits if checks fail)&lt;/P&gt;&lt;P&gt;$vol = Get-NaVol -Names $VolumeName -ErrorAction Stop &lt;/P&gt;&lt;P&gt;$volpath = "/vol/" + $vol.name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$reallocstatus = Get-NaReallocate -ErrorAction Stop&lt;/P&gt;&lt;P&gt;if($reallocstatus -match "Reallocation [a-z ]* on$") {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Get-WFALogger -Info -message $($msg + "Reallocation is already enabled on the storage system.")&lt;/P&gt;&lt;P&gt;} else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Get-WFALogger -Info -message $($msg + "Reallocation not yet enabled on the storage system -&amp;gt; enabling.")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Enable-NaReallocate -ErrorAction Stop&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($Minute -lt 0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $schedule = "*"&lt;/P&gt;&lt;P&gt;} else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $schedule = [string]$Minute&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;if($Hour -lt 0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $schedule += " *"&lt;/P&gt;&lt;P&gt;} else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $schedule += " " + [string]$Hour&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;if($DayOfMonth -lt 1) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $schedule += " *"&lt;/P&gt;&lt;P&gt;} else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $schedule += " " + [string]$DayOfMonth&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;if($DayOfWeek -lt 0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $schedule += " *"&lt;/P&gt;&lt;P&gt;} else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $schedule += " " + [string]$DayOfWeek&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;if($schedule -eq "* * * *"){&lt;/P&gt;&lt;P&gt;&amp;nbsp; throw $msg + "The schedule '" + $schedule + "' is not allowed."&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#--- Configure the reallocate scan for the volume&lt;/P&gt;&lt;P&gt;$cmd = "reallocate start -t " + $Threshold + " -p " + $volpath&lt;/P&gt;&lt;P&gt;Invoke-NaSSH -Command&amp;nbsp; $cmd -ErrorAction Stop&lt;/P&gt;&lt;P&gt;# Invoke-WfaCli -CliCommand $cmd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-WFALogger -Info -message $($msg + "Scheduling the job: " + $schedule)&lt;/P&gt;&lt;P&gt;Set-NaReallocateSchedule -Path $volpath -Schedule $schedule -ErrorAction Stop&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;filer_prompt*&amp;gt; reallocate status -v&lt;/P&gt;&lt;P&gt;Reallocation scans are on&lt;/P&gt;&lt;P&gt;/vol/xyz:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; State: Idle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flags: whole_vol,maybe_realloc,repeat,keep_vvbn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Threshold: 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Schedule: 4 3 * 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval: n/a&lt;/P&gt;&lt;P&gt; Optimization: 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;If it still fails for you can you also paste the workflow details (command parameters sent) or the workflow DAR file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 08:17:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19280#M4163</guid>
      <dc:creator>shailaja</dc:creator>
      <dc:date>2013-08-14T08:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error when executing Invoke-NaSSh</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19285#M4165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shailaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for trying this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot explain this behaviour. As I described, I took the same workflow with the same configuration in two ways: &lt;/P&gt;&lt;P&gt;a) deleting every statement from the command except the parameter config and the invoke-nassh command -&amp;gt; failure&lt;/P&gt;&lt;P&gt;b) then changing invoke-nassh to get-wfalogger&amp;nbsp; in the same workflow and with the same parameters (template)&amp;nbsp; -&amp;gt; success&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, this cannot be a problem with the parameters sent to the command or with the workflow because this is in both tests the very same. It, too, cannot be a problem of the command because it is running without failure when testing in&amp;nbsp; the command editing window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 11:43:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Error-when-executing-Invoke-NaSSh/m-p/19285#M4165</guid>
      <dc:creator>kiessl</dc:creator>
      <dc:date>2013-08-14T11:43:56Z</dc:date>
    </item>
  </channel>
</rss>

