Hi all,
Is it possible to get all sessions of a specific user using a script without having to iterate the whole sessions list?
For example using the following script, I get the number of all sessions of the user with username "tempuser", BUT it takes somewhat 30 seconds because there are around 25000 sessions stored in the database!
-------
:local count [:len [/tool user-manager session find user=tempuser]]
:log info "$count"
-------
However, using the userman web interface, searching for user "tempuser" at advanced search, clicking on the user and clicking on "show sessions", then his sessions appear in less than a second! Is it possible to be done using the cli?
Regards,
Thanos