Community discussions

MikroTik App
 
angboontiong
Forum Guru
Forum Guru
Topic Author
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

remove pppoe user with matched realm.

Wed Sep 15, 2021 5:46 pm

Hi,

i got 3 group of user with:
group 1: xxxxxxx @admin.com
group 2: xxxxxxx @client.com
group 3: xxxxxxx @visitor.com

How can i run the script to remove all user ending with @admin.com ?
i cannot find any detail for it, this script will put inside my scheduler.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: remove pppoe user with matched realm.

Wed Sep 15, 2021 5:59 pm

please explain better, what you mean for realm? @xxx.xx after the username?

the user must be disconnected or
removed from where? user-manager? internal ppp secret?

explain better
 
angboontiong
Forum Guru
Forum Guru
Topic Author
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: remove pppoe user with matched realm.

Wed Sep 15, 2021 6:41 pm

please explain better, what you mean for realm? @xxx.xx after the username?

the user must be disconnected or
removed from where? user-manager? internal ppp secret?

explain better
example i got 30 user..
1) xxxx@admin.com
2) xxaa@admin.com
3) hhxx@admin.com and so on...

i want the script run on ppp active remove [find ???]
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: remove pppoe user with matched realm.

Wed Sep 15, 2021 6:42 pm

Ok... well explained.... :lol:

/ppp active remove [find where name~"@admin.com"]
 
angboontiong
Forum Guru
Forum Guru
Topic Author
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: remove pppoe user with matched realm.

Wed Sep 15, 2021 7:11 pm

Ok... well explained.... :lol:

/ppp active remove [find where name~"@admin.com"]
Thanks and appreciated

Who is online

Users browsing this forum: No registered users and 17 guests