Friday, July 15, 2022

MIKROTIK : reset usb modem

create the script to cut power to USB port for 5s

/system script add name=reset_usb owner=admin dont-require-permissions=yes policy=read,write source="/system routerboard usb power-reset bus=0 duration=5s"

create a netwatch to ping 8.8.8.8 or any public ip, that will run in 5min interval, with 5s timeout and add the down-script for when the test failed

/tool netwatch add host=8.8.8.8 interval=300s timeout=5s down-script=reset_usb

No comments:

Post a Comment