Hoping that someone here has an idea how to accomplish something, because so far I have not.
I need to connect to a MT device that sits behind another MT router, and my options are limited only to layer 2 protocols, aka RoMon or Mac-Telnet, connections via IP are not possible. The challenge is that I need to trigger this from the API, and / or a script that runs on the device that I have API access to (no winbox, only API), and the regular mac-telnet command doesn't seem to be possible to script much less utilize from the API.
My actual specific goal is to issue the command "/system reset-configuration skip-backup=yes" to the device on the far side of the API connection. The reset needs to be initiated via the API, and executed via a Layer 2 protocol on the remote device. Assume that username/password of the remote device is available to be supplied either during the API call or saved in a script called via the API.
I've brainstormed many ways to accomplish this so far, but everything I've tried has so far failed to work. Anyone have any ideas?