Тёмный
No video :(

How to List or display offline pppoe client in mikrotik router os using script, easy 

Lawintek
Подписаться 609
Просмотров 603
50% 1

:foreach pppuser in=[/ppp secret find] do={
:local pppname [/ppp secret get $pppuser name]
:do {
:local tmp [/ppp active get [find where name="$pppname"]]
} on-error={
:put "$pppname user is offline"
}
}
/system/script/run NotConnectedPPPoE
Im using routeros 7.11 , btw
Buy shoppe ph
shope.ee/5pfeS...

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@Lawintek
@Lawintek Год назад
Ver 2 wtih log out :foreach pppuser in=[/ppp secret find] do={ :local pppname [/ppp secret get $pppuser name] :do { :local tmp [/ppp active get [find where name="$pppname"]] } on-error={ :local lastout [/ppp secret get [find where name=$pppname] last-logged-out ] :put "$pppname user is offline --> $lastout" } }
@matheussantos-ip8jk
@matheussantos-ip8jk Год назад
very good video, helped me a lot
@SawaMania
@SawaMania 6 месяцев назад
What if i want to disable it when it's not connected for 2 hours or more..... . . Because it disconnected and connected from time to time...
@laregunung157
@laregunung157 4 месяца назад
help me to sent notif telegram
@Lawintek
@Lawintek 4 месяца назад
You have to make telegram bot there tutorial to do that and use tool fetch url="api.telegram.org
@andaru-galuh
@andaru-galuh 4 месяца назад
full script sir plis?
@laregunung157
@laregunung157 4 месяца назад
I can create a Telegram bot ID, but the script format for sending using a combination of your scripts is not possible
@Lawintek
@Lawintek 4 месяца назад
/tool fetch url="api.telegram.org/bot6155253455:AAEvaxPwQy-VOYP1fnxEWKA2d7E/sendMessage?chat_id=-921417894&text= $user DOWN " keep-result=no
@Lawintek
@Lawintek 4 месяца назад
Change the telegram id . Try it first on the command line . Then i put the command on the profile on ppp