Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15172

Scripting • Rest API - Logout

$
0
0
I've made a few python scripts to gather monitoring data and also to manage some WireGuard tunnels.

Every time the scripts connect, it creates a "Active User" entry, and as the scripts run quite often I have a massive list of Active Users, which are not actually active any more. Is there a way I can do a log out after I've finished interacting with the REST API to clear down the "Active User" list, as if this runs for weeks, the list looks like it'll become a mile long, as it's not cleared any since it last rebooted. I've looked at the documentation and I see no mention of doing a logout, but surely there's a way to clear this list down 😅

Below are screenshots some of these connections in the list, and they've been there for over 24 hours now.
Example1.png
Example2.png

Statistics: Posted by FingerlessGloves — Fri Feb 02, 2024 1:49 am



Viewing all articles
Browse latest Browse all 15172

Trending Articles