update template system
This commit is contained in:
parent
a964e8ad0c
commit
c66bb89be2
7 changed files with 20 additions and 33 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# RouterOS script: collect-wireless-mac
|
||||
# RouterOS script: collect-wireless-mac.capsman
|
||||
# Copyright (c) 2013-2018 Christian Hesse <mail@eworm.de>
|
||||
#
|
||||
# collect wireless mac adresses in access list
|
||||
|
|
@ -33,13 +33,7 @@
|
|||
}
|
||||
:local regentry [ / caps-man registration-table find where mac-address=$mac ];
|
||||
:local interface [ / caps-man registration-table get $regentry interface ];
|
||||
:local ssid;
|
||||
:if ("caps-man" = ("caps" . "-man")) do={
|
||||
:set ssid [ / caps-man registration-table get $regentry ssid ];
|
||||
} else={
|
||||
# keep two spaces here to protect against replace!
|
||||
:set ssid [ / interface wireless get [ find where name=$interface ] ssid ];
|
||||
}
|
||||
:local ssid [ / caps-man registration-table get $regentry ssid ];
|
||||
:local datetime ([ / system clock get date ] . " " . [ / system clock get time ]);
|
||||
:local message ("unknown MAC address " . $mac . " (" . $hostname . ") first seen on " . \
|
||||
$datetime . " connected to SSID " . $ssid . ", interface " . $interface);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue