Community discussions

MikroTik App
 
butteryak
newbie
Topic Author
Posts: 40
Joined: Fri Sep 12, 2008 1:16 am

script to reset counters for specific profiles

Sun Jun 20, 2010 12:33 am

Ok, so in the usermanager I can create users, and specify groups(profiles) for users. I"m wondering if it's possible to create a script that will reset counters for specific groups?


Any help would be much appreciated.....I reallllly need to be able to do this!

Thanks folks!!!

B
Last edited by butteryak on Wed Jun 23, 2010 2:05 am, edited 1 time in total.
 
butteryak
newbie
Topic Author
Posts: 40
Joined: Fri Sep 12, 2008 1:16 am

Re: script to reset counters for specific groups (profile)

Tue Jun 22, 2010 9:14 pm

I suppose my terminology was not correct on that. Actually the "group" referred to in the user manager is actually the "profile". So how do I reset the counters for all users with the same profile?

I really need to figure this out, hope someone can help!!

Thanks
B
 
butteryak
newbie
Topic Author
Posts: 40
Joined: Fri Sep 12, 2008 1:16 am

Re: script to reset counters for specific profiles

Wed Jun 23, 2010 8:17 pm

got it

/tool user-manager user reset-counters [find group-name="xxxxx"]