-
- Service Provider
- Posts: 105
- Liked: 7 times
- Joined: Aug 24, 2010 8:55 am
- Full Name: Alex
- Contact:
bug in Set-VBRNetworkTrafficRule
Using v11 with latest patches.
get-help shows:
-ThrottlingValue <Int32>
Specifies the maximum speed value that must be used to transfer VM machine data from source to target.
But, the parameter accepts only values up to 999, if you try for example 1024 (mbitpersec) you get this error:
Set-VBRNetworkTrafficRule : Cannot validate argument on parameter 'ThrottlingValue'. The 1024 argument is greater than the maximum allowed range of
999. Supply an argument that is less than or equal to 999 and then try the command again.
get-help shows:
-ThrottlingValue <Int32>
Specifies the maximum speed value that must be used to transfer VM machine data from source to target.
But, the parameter accepts only values up to 999, if you try for example 1024 (mbitpersec) you get this error:
Set-VBRNetworkTrafficRule : Cannot validate argument on parameter 'ThrottlingValue'. The 1024 argument is greater than the maximum allowed range of
999. Supply an argument that is less than or equal to 999 and then try the command again.
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: bug in Set-VBRNetworkTrafficRule
Are you really sure, that it is a bug?
It looks like the value is limited to 999 on purpose (like other parameters on other veeam powershell commands are limited to 999, for example max immutability for object storage)
It looks like the value is limited to 999 on purpose (like other parameters on other veeam powershell commands are limited to 999, for example max immutability for object storage)
Product Management Analyst @ Veeam Software
-
- Service Provider
- Posts: 105
- Liked: 7 times
- Joined: Aug 24, 2010 8:55 am
- Full Name: Alex
- Contact:
Re: bug in Set-VBRNetworkTrafficRule
In the GUI you can perfectly set any value, for example 1024Mbps or 3072Mbps which is what I needed to limit to 3Gbs.
Since we have multiple servers/proxies I'd rather set this with a simple powershell oneliner rather than using the GUI.
Other commands have absolute limits, for example your max immutability, but for traffic limiting this obviously makes no sense and most likely this is a simple copy/paste error for input validation by the developer which wasn't catched by QA.
Since we have multiple servers/proxies I'd rather set this with a simple powershell oneliner rather than using the GUI.
Other commands have absolute limits, for example your max immutability, but for traffic limiting this obviously makes no sense and most likely this is a simple copy/paste error for input validation by the developer which wasn't catched by QA.
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: bug in Set-VBRNetworkTrafficRule
You are right. That makes sense. If it's working in the GUI, then it should be possible in the powershell too.
Product Management Analyst @ Veeam Software
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: bug in Set-VBRNetworkTrafficRule
You could configure it that way as a workaround until there is a solution from Veeam.
384 Mbyte/s is the same as 3072 Mbit/s.
384 Mbyte/s is the same as 3072 Mbit/s.
Code: Select all
$rule = Get-VBRNetworkTrafficRule -Name "Testing"
Set-VBRNetworkTrafficRule -rule $rule -ThrottlingUnit MbytePerSec -ThrottlingValue 384
Product Management Analyst @ Veeam Software
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: bug in Set-VBRNetworkTrafficRule
Hi Alex,
Thanks for your bug report! We scheduled the fix to vNext. For now, you can use the workaround Fabian suggested.
Best regards,
Oleg
Thanks for your bug report! We scheduled the fix to vNext. For now, you can use the workaround Fabian suggested.
Best regards,
Oleg
Who is online
Users browsing this forum: No registered users and 19 guests