Microsoft Virtualization Discussions

Powershell api invoke-NaSnapmirrorUpdate with TransferRate parameter

ONTAP1234

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

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

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

ONTAP1234

Ah ok !

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

Thank you very much

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public