Page 1 of 1

need automatically delete Expired user

Posted: Sat Feb 23, 2013 6:15 pm
by oldsnake
hello anyone
i use user-manager v5.17 on routerbord RB750GL. can i automatically delete Expired user by scrip ?. Please show me.
Thank you so much

Re: need automatically delete Expired user

Posted: Sat Feb 23, 2013 9:37 pm
by jgellis
First, I do not use the built in user-manager, so use the following at your own risk...

I believe what you are looking to do can be accomplished with the following scheduled script set to run at regular intervals:
/tool user-manager user remove [find credit-left=00:00:00]
I find very little documentation on the user-manager command line syntax (most refers to web interface), so without the user-manager package installed I cannot say the above is 100% accurate, but it should be enough to get you were you need to be.

Re: need automatically delete Expired user

Posted: Mon Feb 25, 2013 10:31 am
by alfagius
I created a script for the same exact problem, and so far it works like a charm (link at the bottom).

I run it nightly and so far never failed :)

Mind, I only tested it on 3.xx, so 4 and 5 are uncharted territory.

If you can test it on 5.xx and let me know, it would be great!

http://forum.mikrotik.com/viewtopic.php?f=9&t=52261