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
ezadmin,Admin,User,[email protected],Admins,Active,"2021-05-21 06:57:23",192.168.56.1,"2021-04-27 18:32:13",,centos.server,192.168.56.155,,"Linux Server"
ezadmin,Admin,User,[email protected],Admins,Active,"2021-05-21 06:57:23",192.168.56.1,"2021-04-27 18:32:13",,ubuntu.server,192.168.56.181,,"Linux Server"
nesvinkn,nesvinkn,,[email protected],Dummy,Active,"2021-05-06 05:41:28",NA,"2021-05-03 23:42:43",,centos.server,192.168.56.155,,"Linux Server"
alex,alex,,[email protected],Dummy,Active,"2021-05-21 06:53:10",192.168.56.1,"2021-05-21 06:51:09",,,,,
sam,sam,,[email protected],Dummy,Active,"2021-05-21 06:53:10",192.168.56.1,"2021-05-21 06:55:09",,,,,