Thursday, September 16, 2021

Accessing Mikrotik via API

I'm trying to pull some info from Mikrotiks with Python but not having much luck. I've tried the following two modules:

https://librouteros.readthedocs.io/en/latest/introduction.html

and

https://github.com/socialwifi/RouterOS-api/blob/master/README.md

The example documentation is very light and I'm having trouble understanding it or getting anything useful from the API. Does anybody have some examples to share that I can use? I only want to pull info from the devices (no changes at all) Below are some of the commands I want to run:

ip address print

int vlan print

int vlan print detail where name="Internet"

Any help with this appreciated.

Thanks



No comments:

Post a Comment