Microsoft Virtualization Discussions

Powershell api invoke-NaSnapmirrorUpdate with TransferRate parameter

ONTAP1234
3,425 Views

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

1 ACCEPTED SOLUTION

beam
3,425 Views

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

2 REPLIES 2

beam
3,426 Views

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

ONTAP1234
3,425 Views

Ah ok !

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

Thank you very much

Public