Small changes to the EDEX Monitor Users webpage:

-changed subheading from '#' to '##'
-added title header
-added '[]' around data optional
-added a little more descriptive text in the logging example and updated formatting
This commit is contained in:
Shay Carter 2020-07-23 14:35:42 -06:00
parent d68666c8d0
commit 2b212d1b79

View file

@ -1,5 +1,6 @@
# Monitor Users
To see a list of clients connecting to your EDEX server, use the `edex users [YYYYMMDD]` command, where `YYYYMMDD` is the optional date string.
To see a list of clients connecting to your EDEX server, use the `edex users [YYYYMMDD]` command, where `[YYYYMMDD]` is the optional date string.
edex users
@ -12,19 +13,22 @@ To see a list of clients connecting to your EDEX server, use the `edex users [YY
# Logging Daily EDEX Users
## Logging Daily EDEX Users
Create a short script to run once daily at 20 minutes after 00 UTC, appending each day's `edex users` list to a logfile `/home/awips/edex-users.log`.
To get a running log of who has accessed EDEX, you can create a short script.
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`:
1. `vi ~/edexUsers.sh`
1.
vi~/edexUsers.sh
#!/bin/bash
/awips2/edex/bin/edex users >> /home/awips/edex-users.log
2. `crontab -e`
2.
crontab -e
0 20 * * * /home/awips/edexUsers.sh 1>> /dev/null 2>&1