:set transferlimit [get $i transfer]

Good evening all

I have a big problem in RouterOS & Usermanager 5.11

I had a script running in RouterOS V3.3 and upgraded to V5.11

After the upgrade the script didn’tt run any more

I have tried to de-bug the script by copying it part by part in New Terminal and got to the line where the value name

:set transferlimit [get $i transfer]

is called

I get the error message:

interrupted input does not match any value of value-name

I have also tried the following

:set transferlimit [get $i transfer-limit]

but the script still have a problem with this value name.

Any help will be appreciated!

I don’t have a version 3.3 handy, but if it is a hotspot user you mean, could it be limit-bytes-total you are looking for:

:set transferlimit [/ip hotspot user get $i limit-bytes-total]

Cheers,
Niels
niels.bos@live.com

Hi

No, it is a user-manager user.

Any suggestions?

Hmm, I see your problem. I did not work with the user-manager before… so I started a fresh one.

I added a customer, my router, a profile, a limit and a user. I then linked the limit to the profile and the profile to the user. I then did an “export” and everything is in there, the limit, the profile, the user, an entry linking the limit to the profile, but nothing to link the user to the profile. I’ve checked if the DB is in readable format, or if we could do a query on it somewhere, but no luck so far.

I’ll keep looking at this too.

Cheers,
Niels