I have been working with the billing scripts as found on the wiki with huge success. I am now writing a script to handle on the fly alteration of the "rate-limit" field in UM.
Is there any way to pull UM data regarding throttles in its individual form? like "rate-limit-TX" "rate-limit-RX" etc?
As I currently see it the field in the UM database that holds this data is rate-limit=" 128k/270k 0/0 0/0 0/0 7". The first "128k/270k" are the current values for the RX TX in the given user seems easy enough to break this information from that field into variables like
Code: Select all
:foreach i in=[/tool user-manager user find subscriber=admin] do={
:set foo [get $i rate-limit]
:set bar [:pick $foo 1 8]......}
Any help would be greatly appreciated.