@Adam84 Thank You for sharing the script. It works Perfect!
@Mikrotik
That would be great if You could add Active Host Name in DHCP log.
I have recently switched from open DHCP server to Mikrotik DHCP server and this is the only thing which is missing in RouterOS.
What ever you send to log in lease script is sent to offsite syslog as well (if configured in “/ system logging”).
So why do you think this is required to be a native feature? IMHO this is an example where everything is fine due to extensibility by script.
then why log the leases mac address in default logging? this too could be done via script.
bc its a useful feature to log mac and active-host-name (as both provide different types of information) , and when doing these things via dhcp-server’s script functionality, its yet another thing we admins have to keep an eye on during upgrades (ie changes that may break the users script, we have already had this happen during one upgrade and didnt catch it until we needed to look up active-host-name logs only to find it missing).
The issue becomes a bit mre serious when you are talking about 100-200 mts deployed.
(also this script becomes another thing that we have to add to our default configure script for newly deployed MTs (and any copy/paste or escaping type issues)- ideally we want the new deploy script kept as simple and basic as possible). As well for new users who may not know how to use scripting.
tks
I used this script and i did get some messages into my syslog. Question is if its possible to export info from DHCP lease into 1 message instead of multiple messages? (see attachment)
Thanks