Looks like the syntax labeling has changed… The Rate-limit label no longer exists.
…and has been broken up into multiple labels:
So, you’ll have to change this line of your script:
Using v5.22, the problem still exists. There are problems when setting values in User Manager > Profiles > Limitations > Rate Limits using the command line. (The web interface works fine. There I can add / edit / remove values without any problem)
I start with a blank Limitation profile:
I try to add a combination of values, or a single value.
/tool user-manager profile limitation set [find name=“John”] rate-limit-rx=524288 rate-limit-tx=524288;
/tool user-manager profile limitation set [find name=“John”] rate-limit-burst-time-tx=90;
Profile remains blank:
I use Web interface to add values, they work: It seems that settings these values from the Terminal somehow hinges upon the Rate limit Rx and Rate limit Tx. If I set the Rate limit Rx or Rate limit Rx in the web interface, then I am able to add / edit any of the other rate-limit-… values from the Terminal, one at a time, or in a group. Setting these other values does not seem to cause any problems.
/tool user-manager profile limitation set [find name="John"] rate-limit-burst-rx=2M
/tool user-manager profile limitation set [find name="John"] rate-limit-burst-treshold-rx=512k rate-limit-burst-treshold-tx=256k rate-limit-burst-time-rx=2m rate-limit-burst-time-tx=60
Now if I try to set the Rate limit Rx and Rate limit Tx from the command line, I have mixed results. It seems setting values to a higher number works fine:
/tool user-manager profile limitation set [find name="John"] rate-limit-tx=5M
But sometimes a lower number might cause all rate-limit… values to disappear!
/tool user-manager profile limitation set [find name="John"] rate-limit-rx=512
Web interface still shows previous values, but when I log out / log back in, they are gone again, all blank.
This command will create and activate a predefined profile for a user:
/tool user-manager user create-and-activate-profile UserName customer=admin profile="1.5 M Uncapped";
Depending on the Profile settings, this change will either start “Now” or “At first Login”
However, I don’t see a command to remove a profile. (You can view available commands by typing, for example, /tool user-manager user, and then pressing Tab):
So, running that command does change the profile, but causes the old profiles to keep stacking up… You can remove them from the web interface, but I can’t find where to do this from the command line…