Microsoft Virtualization Discussions

Highlighted

Powershell api invoke-NaSnapmirrorUpdate with TransferRate parameter

Hello,

I have a pb with the powershell api invoke-nasnapmirrorupdate with the parameter -TransferRate. This parameter send only 0 whatever i put.

For Example in powershell window :

  

Invoke-NaSnapmirrorUpdate -Destination vol_dst_sm  -MaxTransferRate 20

And here is the network capture :

  

<netapp version='1.0' xmlns='http://www.netapp.com/filer/admin'><snapmirror-update>

<destination-location>vol_dst_sm</destination-location>

<max-transfer-rate>0</max-transfer-rate>

</snapmirror-update></netapp>

  

The ontap version is 8.0.1 P2

Powershell version : 2.0

  

Someone has an idea ?

  

Thanks for advance

2 REPLIES 2
Highlighted

Re: Powershell api invoke-NaSnapmirrorUpdate with TransferRate parameter

The MaxTransferRate parameter is specified in bytes/second.  The max-transfer-rate parameter in the API is in kilobytes/second.

PS C:\> help Invoke-NaSnapmirrorUpdate -Parameter MaxTransferRate

-MaxTransferRate <Int64>

    Maximum transfer rate in bytes per second.  The default is as fast as the filer can transfer.

    Required?                    false

    Position?                    named

    Default value

    Accept pipeline input?       true (ByPropertyName)

    Accept wildcard characters?  false

-Steven

View solution in original post

Highlighted

Re: Powershell api invoke-NaSnapmirrorUpdate with TransferRate parameter

Ah ok !

I didn't understand that. It's ok now.

Thank you very much

Try the NEW Support Site!
NetApp Support Site
Forums