Hi, I'm totally new to Tik language and scripting. Just for fun I want to do this:
I'm wanting to make a script that on Critical firewall detection events(basically any severe intrusion,DDoS,Brute Force,syn/ping floods,port scans,etc), it alerts, just by simple beeps.
I dont know the syntax or the best way to apply it to the RouterOS
:if ($DiskTopics="critical") or ($FirewallState="critical") do={ beepFunction } else { nothing }
beepFunction:
:for t1 from=1 to=10 step=1 do={
:for t2 from=300 to=1800 step=40 do={
:beep frequency=$t2 length=11ms;
:delay 11ms;
}
}
I'm just guessing at some of this syntax, the beep was stolen from the writeups on this board thanks