mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-27 11:58:55 +02:00
hotspot-to-wpa-cleanup: clean up daily only
This commit is contained in:
parent
f1533b8962
commit
ae655646ba
3 changed files with 6 additions and 3 deletions
|
@ -62,7 +62,8 @@
|
|||
|
||||
:foreach Server,Timeout in=$DHCPServers do={
|
||||
:foreach Lease in=[ /ip/dhcp-server/lease/find where !dynamic status="waiting" \
|
||||
server=$Server last-seen>$Timeout comment~"^hotspot-to-wpa:" ] do={
|
||||
server=$Server last-seen>($Timeout + [ /system/clock/get time ]) \
|
||||
comment~"^hotspot-to-wpa:" ] do={
|
||||
:local LeaseVal [ /ip/dhcp-server/lease/get $Lease ];
|
||||
$LogPrint info $ScriptName ("Client with mac address " . ($LeaseVal->"mac-address") . \
|
||||
" was not seen for " . $Timeout . ", removing.");
|
||||
|
|
|
@ -68,7 +68,8 @@
|
|||
|
||||
:foreach Server,Timeout in=$DHCPServers do={
|
||||
:foreach Lease in=[ /ip/dhcp-server/lease/find where !dynamic status="waiting" \
|
||||
server=$Server last-seen>$Timeout comment~"^hotspot-to-wpa:" ] do={
|
||||
server=$Server last-seen>($Timeout + [ /system/clock/get time ]) \
|
||||
comment~"^hotspot-to-wpa:" ] do={
|
||||
:local LeaseVal [ /ip/dhcp-server/lease/get $Lease ];
|
||||
$LogPrint info $ScriptName ("Client with mac address " . ($LeaseVal->"mac-address") . \
|
||||
" was not seen for " . $Timeout . ", removing.");
|
||||
|
|
|
@ -62,7 +62,8 @@
|
|||
|
||||
:foreach Server,Timeout in=$DHCPServers do={
|
||||
:foreach Lease in=[ /ip/dhcp-server/lease/find where !dynamic status="waiting" \
|
||||
server=$Server last-seen>$Timeout comment~"^hotspot-to-wpa:" ] do={
|
||||
server=$Server last-seen>($Timeout + [ /system/clock/get time ]) \
|
||||
comment~"^hotspot-to-wpa:" ] do={
|
||||
:local LeaseVal [ /ip/dhcp-server/lease/get $Lease ];
|
||||
$LogPrint info $ScriptName ("Client with mac address " . ($LeaseVal->"mac-address") . \
|
||||
" was not seen for " . $Timeout . ", removing.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue