MKT - prikazy / premenne do skriptu
Kde by som nasiel nazvy premennych ak by som ich chcel pouzit v skripte?
Napr. pre DHCP aktivna mac adresa pripojeneho zariadenia, v Winboxe DHCP-Leases ju vidim ako Active MAC Adress, v terminali je len MAC Adress , vo wiki som nasiel polozku active-mac-address ale v skripte je pouzita $leaseActMAC . . . (dufam ze tomu skriptu nic nechyba )
:local recipient "abcd@gmail.com"
/ip dhcp-server lease
:if ($leaseBound = 1) do={
:do {
:tool e-mail send to=$recipient subject="DHCP Address Alert [MAC: $leaseActMAC]" body="The following MAC address [$leaseActMAC] received an IP address [$leaseActIP] from the DHCP Server [$leaseServerName]"
:log info "Sent DHCP alert for MAC $leaseActMAC"
} on-error={:log error "Failed to send alert email to $recipient"}}