Skip to Content

How to generate user reports as CSV files in Ezeelogin?

How to generate reports as CSV files for Ezeelogin user's to access remote servers?

1.Run the following script to generate reports for all users. 

  [email protected]:# php  /usr/local/ezlogin/eztool.php  -user_report -out filename.csv

 2. Run the following script to generate the report for a single user. 

  [email protected]:# php  /usr/local/ezlogin/eztool.php  -user_report username -out filename.csv

3. Run the following script to generate the report for multiple users. 

  [email protected]:# php  /usr/local/ezlogin/eztool.php  -user_report username1,username2 -out filename.csv

 
For example, the following script generates the report for all users in Ezeelogin to the "  allreport.csv  " file.  

[email protected]:#  php /usr/local/ezlogin/eztool.php -user_report -out allreport.csv

_ _
___ _______ ___| | ___ __ _(_)_ __
/ _ \_ / _ \/ _ \ |/ _ \ / _` | | '_ \
| __// / __/ __/ | (_) | (_| | | | | |
\___/___\___|\___|_|\___/ \__, |_|_| |_|
|___/


#########################
# Ezeelogin Tool #
#########################

Checking environment... The memory limit is less than 4 GB. If the script crashes abruptly without any errors, try increasing the PHP memory limit.
done (1736)
Checking license... done (1991)

Enter the Ezeelogin administrator password: Admin!2345

 
The content of the "  allreport.csv  " file is shown below. 

[email protected]:# cat allreport.csv
username,firstname,lastname,email,usergroup,status,last_login_at,last_login_from,user_created,user_expiry,servername,IP,
description,servergroup,ssh_user

admin,Administrator,,,Admins,Active,"2021-12-10 04:50:15",192.168.29.29,"2021-12-01 06:26:09",Never,gw.ezee.co,192.168.29.178,,linux-servers,tech
admin,Administrator,,,Admins,Active,"2021-12-10 04:50:15",192.168.29.29,"2021-12-01 06:26:09",Never,sub-jake-linu16,192.168.29.254,,linux-servers,root
admin,Administrator,,,Admins,Active,"2021-12-10 04:50:15",192.168.29.29,"2021-12-01 06:26:09",Never,Ad-wind-RDP,192.168.29.79,,RDP-machine,Administrator
monica,monica,,[email protected],Dummy,Active,"2021-12-01 07:29:04",127.0.0.1,"2021-12-01 07:27:47",Never,gw.ezee.co,192.168.29.178,,linux-servers,jake
monica,monica,,[email protected],Dummy,Active,"2021-12-01 07:29:04",127.0.0.1,"2021-12-01 07:27:47",Never,sub-jake-linu16,192.168.29.254,,linux-servers,jake
decker,decker,,[email protected],Dummy,Active,"2021-12-01 07:46:24",127.0.0.1,"2021-12-01 07:31:44",Never,sub-jake-linu16,192.168.29.254,,linux-servers,root