Script to log into external modem and reboot

Im having zero success at this…

Ive got a modem, that I can ssh, telnet or http into… But its on different ports.

Id like telnet on netwatch ping fail for example…

telnet = 1.1.1.1:41034
username = name
password = password
command to reboot = sys reboot

I gave up, Im using a remote centos server, but its external. Id like the mikrotik to do this, but no joy…

Anyone can help?

Thanks!

With /tool fetch you can open URLs


Sent from my iPhone using Tapatalk

Have you tried ??
port=ssh port
address=ip address of modem
output-to-file=debug.log (to debug the connection)

Import the keys from the modem.
/system ssh user=“name” address=1.1.1.1 port=41034 command=“sys reboot” output-to-file=debug.log