i want a mikrotik router script that can be do dhcp log like my log file settings.
i add a file standart mikrotik dhcp log file . but i want that like my_log.txt and every hour send them to ftp server . thats all … i wait yours offer.
script make the assigned ip-mac hold on in memory when the ip-mac deassigned write the log file then send them every 1 hour to ftp . log file name like dhcplog-(identity)-dd-mm-yyyy_HH-mm.txt
for example :
Jan/02/1970 02:12:52 dhcp,info dhcp1 assigned 10.5.50.254 to AC:22:0B:B8:13:ED ( hold in memory or file )
Jan/02/1970 02:29:37 dhcp,info dhcp1 deassigned 10.5.50.254 from AC:22:0B:B8:13:ED ( when its deassigned write the real log file.then forget this lines)
dhcplog-(identy)-dd-mm-yyyy_HH-mm.txt ( its fill the date and time when ftp to server )
IP adress assigned date-time deassigned date-time MAC Adress
10.5.50.254 02.01.1970-02:12:52 02.01.1970-02:29:37 AC:22:0B:B8:13:ED mikrotik dhcp log.txt (324 Bytes) my_log.txt (451 Bytes)