Network Management

Reply
New Contributor
Posts: 3
Registered: ‎01-14-2015

See which users are logged in on Airwave

Good day,

 

I was wondering if there is a command or report that you can generate in AIrwave to see which users have logged into Airwave at any given time?

 

Thanks

Moderator
Posts: 1,244
Registered: ‎10-16-2008

Re: See which users are logged in on Airwave

There's no current way from the UI, but if you're in the CLI, you can do the following:

 

For tracking of CLI user logins:

# last -10

(this shows the last 10 connections made to the server via CLI -> this is primarily the reason that I suggest to customers to not use root, but add new CLI users using "useradd" and then adding to sudoers list for better CLI tracking)

 

For tracking of AMP UI users:

You'll mainly be looking at the access_log in /var/log/httpd

and want to make sure that all users with access to the UI have their own login usernames

(if they don't, then you may want to add users into AMP Setup -> Users, and change the common 'admin' user's password or disable admin acct)

# tail -f /var/log/httpd/access_log | awk '{print $3}'

This yields the current users with currrnt activity on the UI

For a list of users in that existing log file:

# awk '{users[$3]++}END{for (a in users) print a|"sort -n"}' /var/log/httpd/access_log

Ex output:

# awk '{users[$3]++}END{for (a in users) print a|"sort -n"}' /var/log/httpd/access_log
-
admin

mac_test

pc_test

rgin
Sp7MsrrvWI

trex

(Where my actual user logins were admin, mac_test, pc_test, rgin, and trex.  The hash looking username is used by VisualRF.  And the '-' can be attributed to background apache processing, which includes login page prior to authentication.)


Rob Gin
Senior QA Engineer - Network Services
Aruba Networks, a Hewlett Packard Enterprise Company
New Contributor
Posts: 3
Registered: ‎01-14-2015

Re: See which users are logged in on Airwave

Great,

 

Thanks Rob

Search Airheads
Showing results for 
Search instead for 
Did you mean: