Created
November 10, 2024 21:20
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| :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