We are using Windows PowerShell with remoting. We issue a PowerShell Invoke command to run SDCLI on a remote server. 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.
Invoke-Command -computername TEST -scriptblock { SDCLI DISK CREATE -m TEST -p N1:/vol/clientvol_aggr6001_lun_1/Testdb_LUN1 -d C:\NA_Mounts\Testdb_LUN1 -dtype dedicated -IG TEST TEST -z 65MB -rs n }
When the command is received on the remote system the command received is identical to the command that was sent, however the argument after the -z is not being interpreted correctly and we see this error from the utility.
Invalid disk size 104857600MB. Must be in range [64MB, 2002022MB].
Please enter a valid disk size.
Yet if we run powershell and PASTE (or type) the EXACT command on the remote system with the utility from a remote desktop or the console, the command works correctly.
What would cause this? We are just passing a static string?
Thanks
Nikos