Romon discover

Hi all,
I need to retrieve results from /tools/romon/discover with my python mikrotik api but as I understand, only print/getall is possible.

Other option in lieu of api I thought to commit output of /tools/romon/discover into a file.

I need to build an inventory of all mikrotik devices behind the vpn connected routers of my vpn server for management/upgrade purposes.

All the mikrotiks have romon turned on.

Someone with an idea?

Not directly a reply to your question, but I do use syslog to send out all neighbor a device find and then make a table of it.

.
neigbhor.jpg
Se my signature for more info.

Thanks for the reply. I like the presentation on your picture. Sadly I need romon since I have layer 3 between devices and cannot thus use “neighbors” since it only supports layer 2.
I have about 250+ vpn connected routers to my VPN server CHR. Behind these VPN connected routers, I have a stack of routers/switches/APs that I would like to discover and ultimately manage through python mikrotik_API. I thought, if I cannot get the romon discovery hosts by API, I could at least write them to a file and retrieve and build them in a list to build my list.

If I can get output of “/tools romon discover” in to an variable (seem to not be possible), you can send it using syslog and get same graph as neighbors.

Ahh, thanks. You gave me an idea. I will try to put it to local log file and just filter for that.