socialwifi/RouterOS-api

May I ask how to avoid getting data interactively?

qzq-123 opened this issue · 2 comments

I'm having an issue where commands that would otherwise work fine are reporting errors when my router has too much data.

A screenshot of the error is below
too-many-connections
error-print

A screenshot of the normal operation is as follows
normal-print

It looks like it requires me to click if I want to see all the data, but how should this be implemented in the code?

Please let me know if I need to provide more information. Thanks
Python 3.8.10
RouterOS-7-api 0.18.1.dev0
routeros 7.12.1

ssh mktxp_user@x.x.x.x "/ip/firewall/connection/print terse"
I managed to get the data via ssh, but I think the api should be able to do the same, does anyone know what to do?

Refer to this discussion https://forum.mikrotik.com/viewtopic.php?t=106989#p531731
I tried increasing the tracking timeout parameter from 35 seconds to 5 minutes.
Then using the same print command
/ip/firewall/connection/print proplist=src-address,dst-addr ess without-paging terse
The number of connections printed increased from 5000 to 40000, but the memory consumption increased by 60Mib, and the cpu seems to have increased a little, and the response slows down when clicking on the winbox.

1721026810541