Initial Commit.

This commit is contained in:
Grzegorz Budny 2020-03-15 19:40:49 +01:00
parent 8cacc24150
commit ff04ad34f2
4 changed files with 110 additions and 0 deletions

View file

@ -0,0 +1,23 @@
# RouterOS Function
# Copyright (c) Grzegorz Budny
# Version 1.0
# Last update: 3/15/2020
# Disconnects all active PPP sessions at once
:global DisconnectActivePPPSesssions do={
:local pppSessions [/ppp active print count-only];
:for i from=0 to=$pppSessions step=1 do= \
{
/ppp active remove numbers=$i;
:log info ("...:::Removing PPP Sesion no ".$i.":::...";
}
:log info ("...:::Removed PPP sessions: ".$pppSessions);
}
$DisconnectActivePPPSesssions;