Community discussions

MikroTik App
 
mysz0n
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Mar 03, 2009 2:14 am

Script to reset UM active sessions and active users. plz!

Tue Jul 05, 2011 4:49 pm

Some time ago I found a script on the forum that kill all active sessions and active users in UM.I can not find it anywhere. it would be great if someone could send me the script. thx
 
User avatar
omega-00
Forum Guru
Forum Guru
Posts: 1167
Joined: Sat Jun 06, 2009 4:54 am
Location: Australia
Contact:

Re: Script to reset UM active sessions and active users. plz

Tue Jul 05, 2011 6:21 pm

Do you mean to clear the hotspot active users or clear the user-manager database?
 
mysz0n
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Mar 03, 2009 2:14 am

Re: Script to reset UM active sessions and active users. plz

Tue Jul 05, 2011 7:03 pm

i want to remove the active sessions and active users in user manager (pppoe sessions) i got 800 users, and right now 50k active sessions and 2k acctive users
 
bd5ive
just joined
Posts: 7
Joined: Tue Jul 12, 2011 9:28 pm

Re: Script to reset UM active sessions and active users. plz

Tue Jul 12, 2011 9:51 pm

this one removes active sessions:
:local Flag
:set Flag [/tool user-manager session find]
:if ([:len $Flag] > 0) do={/tool user-manager session print;/tool user-manager session remove [/tool user-manager session find];}
just sign up to forums to reply to this, hope its what you need :D
 
mysz0n
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Mar 03, 2009 2:14 am

Re: Script to reset UM active sessions and active users. plz

Tue Sep 06, 2011 12:28 pm

@bd5ive: thank you very much, I have to save it somewhere. thx again!

Who is online

Users browsing this forum: No registered users and 9 guests