What I’d like to do is to change the max-limit at certain times of the day or night.
For example, I’d like to throttle him down to 128K for 20 minutes on a Monday morning when everyone’s checking their email and bank balances and then give him 2Mb from 11:00pm to 6:00am
A good starting point is to simply enter the commands you’d like to run into a script (the exact same commands that you would run manually if it wasn’t a script), and use “/system scheduler” to execute the script at certain times. When making the scheduled task, set the start-date to the current date, the start-time to the time you’d like to run the script to be executed automatically (e.g., 18:00) and the delay to 24h so that the script runs every day at 6pm.
You don’t use the queue name to refer to it, you use the unique queue identifier. If you need to determine the identifier first, you’ll have to programatically do so. Also, ‘edit’ as an action opens up a text editor for a person to set a property with. You want to use the ‘set’ option.
/queue simple set [/queue simple find name=NameOfQueue] max-limit=64000/128000;
This is necessary because the name of something is not necessarily always unique (address-lists, for example, have multiple entries), or the unique identifier for an item is not always a name. It’s better to abstract that away and always use a unique identifier that has nothing to do with real the properties of an entry.
If you post the output of
/queue simple print detail
and are more specific in what you want to do, I can give more specific examples.