Hi, I have a small program(exe) written for a client with a database of their clients/routers.
I give them filters/options and they type in the code/commands they want to run on all the selected routers. Like reboot/set limits/ect on the routers.
I have done it, and its working, but I need a more efficient tool.
Basically I loop through the selected routers in the database, create a txt file based on the selected router to run all the commands. Except the tool I am using now only process some of the routers and skipping some.
Can anyone give me advice or recommend some command line tool to help me process the commands?
Much appreciated!!
Maybe use the API to create such a tool? There’s libraries for various languages that you can use.
The “trick” is that unlike, say, SSH, the API allows you to easily inspect the output of each router, and act accordingly. If your app is currently inspecting the SSH output, perhaps some “cosmetic” changes between RouterOS versions are the reason some routers get skipped. OR there might be a configuration error that you fail to detect (and which the authors didn’t anticipate when they were making their commands) - the API would make it easier to detect, though admittedly, it still requires you to actually check IF there’s an error, and act accordingly.