How to export servers ?
How can we export servers?
Overview: This article describes exporting server details to a CSV file using an Ezeelogin script which subsequently can be imported back to the system.
To streamline server management, Ezeelogin provides a convenient script to export server details into a CSV file for easy import and retrieval. Here’s how you can export and subsequently import server configurations:
An export script is provided to export the list of all servers and server details into a plain text file appropriate to be imported into Ezeelogin.
- Run the following export script in your Ezeelogin gateway server.
~]# php /usr/local/ezlogin/ezxport.php <output file> [<delimiter>]
Specify an output file and a delimiter character. Followed by the Ezeelogin administrator password will be prompted.
Here's an example to refer to:
~]# php /usr/local/ezlogin/ezxport.php servers.csv
Enter the Ezeelogin administrator password: ******
50 servers exported
Ensure to enter the super admin's password. Superadmin would be the admin user created at the time of installation.
Retrieve the super-admin name by running the below command :
~]# cat /usr/local/etc/ezlogin/ez.conf | grep -i admin_user
Refer to the example CSV file:
name | ip_address | group | password | ssh_port | rdp_port | ssh_user | keep_password | enable_ssh |
production.ubuntu.server | 192.168.43.201 | production servers | AI17%%rFb2lCIxb& | 22 | 3389 | root | S | Y |
production.debian.server | 192.168.1.12 | production servers | jRw0dHd$yrG9cxAP | 22 | 3389 | root | N | Y |
production.windows.server | 192.168.43.7 | production servers | 37Nww$AD8qFN^BiO | 22 | 3389 | Administrator | S | Y |
Note: This script does not check the license. So you can use it to retrieve your server details even if your license expires.
How do you import the exported CSV file to Ezeelogin?