Community discussions

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

How to remove where running=no dynamic=yes

Tue Apr 04, 2023 2:44 pm

Problems with pppoe sessions occur in MT for a long time (end of version 6 and all the time in version 7). Currently, it often happens that single pppoe sessions have a D tag without an R, customers report no internet access. Fortunately, in version 7, such sessions can be deleted (previously it was not possible). I wanted to add a script that would run every few a minutes looking for such a session, but I don't know how to do it because I can't run the remove command from ppp/ or interface/. How to do it? how can I remove from PPP/Interface (winbox menu) where running=no dynamic=yes
You do not have the required permissions to view the files attached to this post.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How to remove where running=no dynamic=yes

Tue Apr 04, 2023 2:54 pm

So, you want on /interface pppoe-server remove all connection that are [find where running=no and dynamic=yes] ???
 
mysz0n
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Mar 03, 2009 2:14 am

Re: How to remove where running=no dynamic=yes

Tue Apr 04, 2023 2:57 pm

So, you want on /interface pppoe-server remove all connection that are [find where running=no and dynamic=yes] ???
Exactly, however in ppp/active/remove I don't have find or where option
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How to remove where running=no dynamic=yes

Tue Apr 04, 2023 2:58 pm

Read TWICE my reply... :lol: :lol: :lol:
 
mysz0n
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Mar 03, 2009 2:14 am

Re: How to remove where running=no dynamic=yes

Tue Apr 04, 2023 3:21 pm

Read TWICE my reply... :lol: :lol: :lol:
ok, got it now pppoe-server
I also looked in the pppoe-client interface, anyway, you have to admit that there is a bit of a lack of consistency in the winbox vs terminal menu
thx for help
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How to remove where running=no dynamic=yes

Tue Apr 04, 2023 3:28 pm

Your read it correctly on Italyc??? ;)

____ /interface pppoe-server remove ____ [find where running=no and dynamic=yes] ____

/interface pppoe-server remove [find where running=no and dynamic=yes]
 
mysz0n
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Mar 03, 2009 2:14 am

Re: How to remove where running=no dynamic=yes

Tue Apr 04, 2023 4:32 pm

Yup i got it. Everything is working fine write now. Thx for help

Who is online

Users browsing this forum: donkeyKong, marcelofares, rogerioqueiroz and 23 guests