import configuration_data
Function
Usage Guidelines
- The command can be used to import the configuration file only from an FTP or SFTP server into a storage system.Prerequisites:
- The storage system can access the FTP or SFTP server.
- The FTP or SFTP service has been enabled on the server.
- The folder for storing the configuration file has been created and the configuration file to be imported exists.
- The file name expansion must be .dat, otherwise the file cannot be used to import the configuration file.
- During the process of transferring files with external systems, if the storage system only serves as the server end, only SFTP service is supported. If the storage system serves as the client end, both FTP and SFTP are supported.
- Run this command only when the configuration file has been exported using the export configuration_data command, the configuration file has not been modified, and the clear configuration_data command has not been used.
- This command provides an interactive mode for entering passwords. The password will be displayed behind asterisks.
- If the number of consecutively entered incorrect passwords reaches 3 within 5 minutes, the current session will be disconnected.
Example
Import the configuration file into a storage system, where the IP address of the FTP server is 10.90.96.88, the user name is admin, the password is 123, the configuration file is saved in the root directory, the file name is yyy.dat, SFTP is used, and port 26 is used.
developer:/>import configuration_data ip=10.90.96.88 user=admin password=*** db_file=/yyy.dat protocol=SFTP port=26 DANGER: You are about to import the backup configuration data (model-version-time). This operation causes the storage system to restart automatically. All running services on the storage system are interrupted. Suggestion: Before you perform this operation, implement the following steps: 1. Ensure that the current configuration data has been backed up in the past 30 minutes. Otherwise, the command fails to be executed. 2. Ensure that the model and export time of the configuration data to be imported are correct. 3. Stop all running services on the system. 4. This command restores only the database configuration data. If storage services are modified after exporting the database configuration data, you cannot use this command to import the original database configuration data. Otherwise, storage services may fail and the storage system may fail to be started up. Have you read danger alert message carefully?(y/n)y Are you sure you really want to perform the operation?(y/n)y Password:************** The system is going down for reboot now. Command executed successfully.