Exporting a Data Package to Be Uploaded
If eService becomes unavailable, you can manually export data packages to be uploaded to Huawei technical support center.
Context
- If eService becomes unavailable, the eService client saves data uploaded in the last 24 hours. After eService recovers, the eService client continues receiving data. Before eService recovers, you can manually export data packages to be uploaded.
- Exported data packages include performance, running, and alarm data.
Procedure
- Log in to the CLI as an administrator or a super administrator.
- Run the export event event_type=call_home ip=? user=? password=? path=? command to export data packages to be exported.Table 5-12 Parameters
Parameter
Description
Value
ip=?
IP address of a File Transfer Protocol (FTP) or Secure File Transfer Protocol (SFTP) server.
NOTE:To export log files, an FTP or SFTP server must be available and accessible to the storage system.
-
user=?
Name of a user for logging in to an FTP or SFTP server.
The value contains 1 to 64 characters without colons (:).
password=?
Password for logging in to an FTP or SFTP server.
The value contains 1 to 64 characters.
path=?
Path and file for saving events or logs on an FTP or SFTP server.
The path must start with /. The file is a package.
- /test/ indicates that events or logs are saved in the test folder on the FTP/SFTP server. The file name is automatically generated.
- /test indicates that events or logs are saved in the test file.
- If you specify the file name, we recommend you add the file name extension .tgz. If you do not specify the file name extension, the CLI will add it automatically.
port=?
ID of the port used on an FTP or SFTP server.
The value is an integer between 1 and 65535.
- If protocol is set to FTP, the default value is 21.
- If protocol is set to SFTP, the default value is 22.
Example
Export certain eService data to an FTP server, where the IP address of the FTP server is 192.168.8.211, the user name for logging in to the FTP server is admin, the password is admin, the exported eService data will be stored in the root directory of the FTP server, and the exported eService data will be saved with the default file name.
admin:/>export event event_type=call_home ip=192.168.8.211 user=admin password=***** path=/ protocol=FTP
WARNING: It will take several minutes to collect and export the information.
Have you read warning message carefully?(y/n)y
Are you sure you really want to perform the operation?(y/n)y
Controller ID: 0A
Package Path: /collector_chs_file_0A.tgz
Controller ID: 0B
Package Path: /collector_chs_file_0B.tgz
Command executed successfully.