Skip to content

Instantly share code, notes, and snippets.

@Tommasov
Created December 21, 2023 14:47
Show Gist options
  • Save Tommasov/9bc0c7eabb8299861b74679b0d97794e to your computer and use it in GitHub Desktop.
Save Tommasov/9bc0c7eabb8299861b74679b0d97794e to your computer and use it in GitHub Desktop.
Mikrotik Netwatch status "Down"
:log error "(Netwatch) Internet disconnesso";
:if ([/interface lte get [find name="lte1"] running]=true) do={
:log info "(Netwatch) lte1 disabilitata";
/interface lte disable lte1;
:log info "(Netwatch) Attendo 5 secondi...";
:delay 5000ms;
:log info "(Netwatch) lte1 abilitata";
/interface lte enable lte1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment