Forum Discussion
Check active admin user sessions
- Feb 07, 2023
Irre_Levant I believe the only option here is to correlate the data from multiple sources rather than one command that provides everything. The following should allow you to pull the audit logs but I don't believe a command exists to look at the output of netstat.
Hi Pablo.
You could use netstat -na | grep 192.168.0.11 | grep ESTABLISHED
This will show you the active sessions regardless of the user currently logged in. You could also get more info from the /var/log/audit logs. Below is an example of what you would tipically see when a user logs in:
AUDIT - user admin - RAW: httpd(mod_auth_pam): user=admin(admin) partition=[All] level=Administrator tty=/sbin/nologin host=192.168.0.11 attempts=1 start="Mon Oct 30 14:22:13 2017" end="Mon Oct 30 14:47:58 2017"
Having these two pieces, you could cross match the IP address.
Hope this helps.
Recent Discussions
Related Content
* 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