Forum Discussion
Fallout1984
Oct 01, 2021Cirrocumulus
Is it possible to display the session IDs associated with a particular user name via TMSH?
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 t...
- Oct 01, 2021
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
Daniel_Wolf
Oct 01, 2021MVP
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
- Daniel_WolfOct 01, 2021MVP
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
- Fallout1984Oct 01, 2021Cirrocumulus
Yes, that works - thanks!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects