Community discussions

MikroTik App
 
marcelosantos
just joined
Topic Author
Posts: 4
Joined: Thu Mar 30, 2017 9:02 pm

PPPoE Script

Tue Apr 04, 2017 4:21 am

Hello

I'm trying to make a script that lists all the "PPPoE Secrets" that are not connected. Starting from this script

:global list "";
:foreach i in [/ppp active find] do={:if ([:find \
[/ppp active get $i name] "m"]=0) do={:set list ($list . "," . $i);}}; \
/ppp active print detail without-paging from $list;

Has anyone done a script with this logic?
Last edited by marcelosantos on Tue Apr 04, 2017 1:12 pm, edited 1 time in total.
 
marcelosantos
just joined
Topic Author
Posts: 4
Joined: Thu Mar 30, 2017 9:02 pm

Re: PPPoE Script

Tue Apr 04, 2017 1:11 pm

Explaining better

In place of the "m" I would like to put all the names of the secrets

And if you have not been connected save to a list and then show

Who is online

Users browsing this forum: No registered users and 6 guests