RE : Script telnet and monitor

I’m a total newb with Mikrotik scripting.

I’d like my CPE per site to telnet into and monitor the status of a device local to it.

What I’d like to do is use /system telnet xxx.xxx.xxx.xxx, pass the password “xxxxx” , status is gotten by simply entering “status” on the device, get the status and put it to log, preferably remote logging syslog.

Can something like this be done via Mikrotik scripting ? I appreciate any help.

Not possible from router directly.

Thank you for your answer. At least now I know it is not doable via router directly. I will put further effort into other avenues.

if device supports ssh, you can try that from router.

Sadly its a basic device that does not support ssh. Thank you for the suggestion :slight_smile:

I was hoping to encapsulate the monitoring of the device and CPE into a independent per site solution, however such is life.

I did create software (that needs more work) that does what I want by logining into the basic device to check its status via telnet and the mikrotik CPE onsite via ssh, and use The Dude to provide visual monitoring as well.

This is a more centralized approach but effective non the less.