2020-07-23 14:35:42 -06:00
# Monitor Users
2017-04-21 18:33:55 -06:00
2020-07-23 14:35:42 -06:00
To see a list of clients connecting to your EDEX server, use the `edex users [YYYYMMDD]` command, where `[YYYYMMDD]` is the optional date string.
2017-04-21 18:33:55 -06:00
edex users
-- EDEX Users 20160826 --
user@101 .253.20.225
user@192 .168.1.67
awips@0 .0.0.0
awips@sdsmt .edu
...
2020-07-23 14:35:42 -06:00
## Logging Daily EDEX Users
2017-04-21 18:33:55 -06:00
2020-07-23 14:35:42 -06:00
To get a running log of who has accessed EDEX, you can create a short script.
2017-04-21 18:33:55 -06:00
2020-07-23 14:35:42 -06:00
The example below is a script that runs once daily at 20 minutes after 00 UTC, appending each day's `edex users` list to a logfile `/home/awips/edex-users.log` :
2017-04-21 18:33:55 -06:00
2020-07-23 14:35:42 -06:00
1.
vi~/edexUsers.sh
2017-04-21 18:33:55 -06:00
#!/bin/bash
2017-11-13 15:33:08 -07:00
/awips2/edex/bin/edex users >> /home/awips/edex-users.log
2017-04-21 18:33:55 -06:00
2020-07-23 14:35:42 -06:00
2.
crontab -e
2017-04-21 18:33:55 -06:00
0 20 * * * /home/awips/edexUsers.sh 1>> /dev/null 2>& 1