Skip to content

Instantly share code, notes, and snippets.

@elico
Created November 10, 2024 21:20
Show Gist options
  • Select an option

  • Save elico/5549893f297dbd45b45ff0cbcf8b8fa2 to your computer and use it in GitHub Desktop.

Select an option

Save elico/5549893f297dbd45b45ff0cbcf8b8fa2 to your computer and use it in GitHub Desktop.
An example on how to send WOL packet on a RouterOS device on all ports
{
:local nasMacAddress "AA:BB:CC:11:22:33";
/interface
:foreach iface in=[find] do={
:local interfaceName [get $iface name];
/tool/wol interface=$interfaceName mac=$nasMacAddress;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment