01-Oct-2021 09:31
I question's come up regarding the ability to delete any active VPN sessions for a particular user name as part of off-boarding (for example, an employee quits, is fired, etc). I see how to display the list of sessions in TMSH, but not how to display by user name. The idea is to do the session purging via a script, which is fine provided one knows which session(s) to delete.
Thanks!
Solved! Go to Solution.
01-Oct-2021
10:32
- last edited on
04-Jun-2023
19:17
by
JimmyPackets
Better:
[root@bigip01:Active:Standalone] config # sessiondump --allkeys | grep 'session\.logon\.last\.username' | grep john.doe | awk -F'.' '{print $1}'
b24a3ae7
-F'.' will set the delimeter to .
{print $1} will only show the first block until the delimeter of the returned output
01-Oct-2021
10:10
- last edited on
04-Jun-2023
19:17
by
JimmyPackets
Hi ,
are you lookig for this command:
[root@bigip01:Active:Standalone] config # sessiondump --allkeys | grep 'session\.logon\.last\.username' | grep john.doe
b24a3ae7.session.logon.last.username 6 john.doe
First 8 characters are the session ID you are looking for.
KR
Daniel
01-Oct-2021
10:32
- last edited on
04-Jun-2023
19:17
by
JimmyPackets
Better:
[root@bigip01:Active:Standalone] config # sessiondump --allkeys | grep 'session\.logon\.last\.username' | grep john.doe | awk -F'.' '{print $1}'
b24a3ae7
-F'.' will set the delimeter to .
{print $1} will only show the first block until the delimeter of the returned output
01-Oct-2021 10:59
Yes, that works - thanks!