<?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 Issue with Remotely Invoking SDCLI commands with PowerShell? in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Issue-with-Remotely-Invoking-SDCLI-commands-with-PowerShell/m-p/2293#M418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using Windows PowerShell with remoting.&amp;nbsp; We issue a PowerShell Invoke command to run SDCLI on a remote server.&amp;nbsp; SDCLI DISK LIST commands work fine, however when we go to run a more complex command such as the one below to create a LUN and mount it, not all of the parameters that were passed are being interpreted correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier; "&gt;Invoke-Command -computername TEST -scriptblock { SDCLI DISK CREATE&amp;nbsp; -m TEST -p N1:/vol/clientvol_aggr6001_lun_1/Testdb_LUN1 -d C:\NA_Mounts\Testdb_LUN1 -dtype dedicated&amp;nbsp; -IG TEST TEST -z 65MB -rs n&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the command is received on the remote system the command received is identical to the command that was sent, however the argument&amp;nbsp; after the &lt;SPAN style="color: #0000ff;"&gt;-z&lt;/SPAN&gt; is not being interpreted correctly and we see this error from the utility.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Invalid disk size 104857600MB. Must be in range [64MB, 2002022MB].&lt;BR /&gt;Please enter a valid disk size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet if we run powershell and &lt;STRONG&gt;PASTE (or type) the EXACT&lt;/STRONG&gt; command on the remote system with the utility from a remote desktop or the console, the command works correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would cause this?&amp;nbsp; We are just passing a static string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nikos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 07:04:07 GMT</pubDate>
    <dc:creator>n_yannios</dc:creator>
    <dc:date>2025-06-05T07:04:07Z</dc:date>
    <item>
      <title>Issue with Remotely Invoking SDCLI commands with PowerShell?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Issue-with-Remotely-Invoking-SDCLI-commands-with-PowerShell/m-p/2293#M418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using Windows PowerShell with remoting.&amp;nbsp; We issue a PowerShell Invoke command to run SDCLI on a remote server.&amp;nbsp; SDCLI DISK LIST commands work fine, however when we go to run a more complex command such as the one below to create a LUN and mount it, not all of the parameters that were passed are being interpreted correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier; "&gt;Invoke-Command -computername TEST -scriptblock { SDCLI DISK CREATE&amp;nbsp; -m TEST -p N1:/vol/clientvol_aggr6001_lun_1/Testdb_LUN1 -d C:\NA_Mounts\Testdb_LUN1 -dtype dedicated&amp;nbsp; -IG TEST TEST -z 65MB -rs n&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the command is received on the remote system the command received is identical to the command that was sent, however the argument&amp;nbsp; after the &lt;SPAN style="color: #0000ff;"&gt;-z&lt;/SPAN&gt; is not being interpreted correctly and we see this error from the utility.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Invalid disk size 104857600MB. Must be in range [64MB, 2002022MB].&lt;BR /&gt;Please enter a valid disk size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet if we run powershell and &lt;STRONG&gt;PASTE (or type) the EXACT&lt;/STRONG&gt; command on the remote system with the utility from a remote desktop or the console, the command works correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would cause this?&amp;nbsp; We are just passing a static string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nikos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:04:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Issue-with-Remotely-Invoking-SDCLI-commands-with-PowerShell/m-p/2293#M418</guid>
      <dc:creator>n_yannios</dc:creator>
      <dc:date>2025-06-05T07:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Remotely Invoking SDCLI commands with PowerShell?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Issue-with-Remotely-Invoking-SDCLI-commands-with-PowerShell/m-p/2299#M419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After some more testing, we were able to get the command to successfully work by simply dropping the "MB" after the number and allowing it to default &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;invoke-command -computername TEST -scriptblock { sdcli disk create -m test -p netapp1:/vol/clientvol_aggr6001_lun_1/testdb_lun3 -d c:\netapp_mounts\testdb_lun3 -dtype dedicated -IG TEST viaRPC.21:00:00:1b:32:10:f0:a2.TEST -z 1000 }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST : Checking input parameters&lt;BR /&gt;TEST : Checking access control&lt;BR /&gt;TEST : Checking policies&lt;BR /&gt;TEST : Turning off snap scheduling&lt;BR /&gt;TEST : Creating the LUN&lt;BR /&gt;TEST : Creating a partition&lt;BR /&gt;TEST : Formatting the disk with NTFS&lt;BR /&gt;TEST : Mounting volume on the disk&lt;BR /&gt;UNC Path: None&lt;BR /&gt;LUN Path: NetApp1:/vol/clientvol_aggr6001_lun_1/testdb_lun3&lt;BR /&gt; Storage System:&amp;nbsp; NetApp1&lt;BR /&gt; Storage System Path: /vol/clientvol_aggr6001_lun_1/testdb_lun3&lt;BR /&gt; Type:&amp;nbsp;&amp;nbsp; lun&lt;BR /&gt; Disk serial number: W9mPNo/bO0a0&lt;BR /&gt; Backed by Snapshot Copy: &lt;BR /&gt; Shared:&amp;nbsp;&amp;nbsp; No&lt;BR /&gt; BootOrSystem Disk: No&lt;BR /&gt; SCSI port:&amp;nbsp; 2&lt;BR /&gt; Bus:&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt; Target:&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt; LUN:&amp;nbsp;&amp;nbsp; 9&lt;BR /&gt; Readonly:&amp;nbsp; No&lt;BR /&gt; Size:&amp;nbsp;&amp;nbsp; 1004&lt;BR /&gt; Snapmirror Source: No&lt;BR /&gt; Snapvault Primary: No&lt;BR /&gt; Disk Partition Style: GUID Partition Table (GPT)&lt;BR /&gt; Clone Split Restore status: Normal&lt;BR /&gt; DiskID:&amp;nbsp;&amp;nbsp; 19&lt;BR /&gt; Volume Name:&amp;nbsp; &lt;A target="_blank"&gt;\\?\Volume{f11d06d0-b9bb-4617-a295-3caeff6fc0de}\&lt;/A&gt;&lt;BR /&gt; Mount points:&amp;nbsp; c:\netapp_mounts\testdb_lun3\&lt;BR /&gt; IP Addresses:&amp;nbsp; 10.146.0.10, 10.146.10.2, 10.146.4.150&lt;BR /&gt;The operation completed successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A snippet of the code that we used to issue the remote command from C# is attached....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 15:17:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Issue-with-Remotely-Invoking-SDCLI-commands-with-PowerShell/m-p/2299#M419</guid>
      <dc:creator>n_yannios</dc:creator>
      <dc:date>2010-12-03T15:17:23Z</dc:date>
    </item>
  </channel>
</rss>

