Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May I ask how to avoid getting data interactively? #93

Open
qzq-123 opened this issue May 7, 2024 · 2 comments
Open

May I ask how to avoid getting data interactively? #93

qzq-123 opened this issue May 7, 2024 · 2 comments

Comments

@qzq-123
Copy link

qzq-123 commented May 7, 2024

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

@qzq-123
Copy link
Author

qzq-123 commented May 8, 2024

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?

@qzq-123
Copy link
Author

qzq-123 commented Jul 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant