No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI provided by DeviceManager, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
export event

export event

Function

The export event command is used to export the logs, Call Home data, events or diagnostic file generated by the storage system. Use this command when you want to export logs, Call Home data, events or diagnostic file and use them to find out the alarm causes or check device running status.

Format

export event event_type=? ip=? user=? password=? path=? [ port=? ] [ protocol=? ] [ clean_device_file=? ] [ controller_id=? ]

Parameters

Parameter

Description

Value

event_type=?

Type of an event that you want to export.

The value can be "event", "log", "disk_log", "all_log", "hssd_log", "antivirus_log", "call_home" or "diagnostic_file", where:

  • "event": indicates events.
  • "log": indicates recent logs.
  • "disk_log": indicates logs of disks.
  • "all_log": indicates all logs of the system.
  • "hssd_log": indicates logs of all HSSDs.
  • "antivirus_log": indicates logs of antivirus.
  • "call_home": indicates Call Home data.
  • "diagnostic_file": indicates the diagnostic file.

ip=?

IP address of a File Transfer Protocol (FTP) server or a Secure File Transfer Protocol (SFTP) server.

NOTE:

To export log files, an FTP server or a Secure File Transfer Protocol (SFTP) server must be available and is accessible to the storage system.

-

user=?

Name of a user for logging in to an FTP server or an SFTP server.

The value contains 1 to 64 characters without colons (:).

password=?

Password for logging in to an FTP server or an SFTP server.

The value consists of 1 to 64 ASCII characters.

path=?

File name and path to an exported log file.

The path must start with "/". Path for saving events or logs on the FTP/SFTP server. The file name must be supported by the FTP and SFTP server.

  • "/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, it is recommended that you add the file suffix. Add suffix ".tgz" when "event_type" is set to "event", "log", "disk_log", "all_log", "call_home", "hssd_log" or "diagnostic_file". If you do not specify the suffix, CLI will add it automatically.

port=?

Port number of the 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".

protocol=?

Protocol type.

The value can be "FTP" or "SFTP". The default value is "SFTP".

To ensure the security of data transfer, you are advised to use SFTP.

clean_device_file=?

Whether to delete the event file that resides in the storage system memory after the event file is exported to an FTP server or an SFTP server. This parameter is valid only when event_type=? is set to "event".

The value can be "yes" or "no", where:

  • "yes": The event file that resides in the storage system memory will be deleted after the event file is exported to an FTP server or an SFTP server.
  • "no": The event file that resides in the storage system memory will not be deleted after the event file is exported to an FTP server or an SFTP server.

The default value is "yes".

controller_id=?

Controller ID.

Controller ID separated by comma, the value is in the format of "XA","XB","XC","XD", where the "X" is an integer ranging from 0 to 3, for example: "0A","1C". This parameter can be specified only when "event_type" is set to "log", "disk_log", "hssd_log", "call_home","antivirus_log" or "all_log".

Level

Administrator

Usage Guidelines

  • When this command is executed to export the logs, the logs of all controllers will be exported at the same time.
  • This command can export log files only to an FTP server or an SFTP server connected to the storage system.
NOTE:

Prerequisites for using this command:

  • The FTP server or SFTP server is accessible to the storage system.
  • The FTP service or SFTP service has been started on the server.
  • If the storage system serves as a server in the file transfer with external systems, it supports the SFTP service only. If the storage system serves as a client, it supports both the FTP and SFTP services.
  • It will take several minutes to collect and export logs, disk logs, all logs, call_home, antivirus_logs or diagnostic_file.

Example

  • Export certain events to an FTP server. 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 "123456", the exported events will be stored in the root directory of the FTP server, and the exported events will be saved as the "event.tgz" file.
    admin:/>export event event_type=event ip=192.168.8.211 user=admin password=****** path=/event.tgz protocol=FTP 
    Command executed successfully.
  • Export certain logs to an FTP server. 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 logs will be stored in the root directory of the FTP server, and the exported logs will be saved with the default file name.
    admin:/>export event event_type=log 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: /log_controller_0A_MAIN.tgz 
    Controller ID: 0B 
    Package Path: /log_controller_0B.tgz 
    Command executed successfully.
  • Export a certain diagnostic file to an FTP server. 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 "123456", the exported diagnostic file will be stored in the root directory of the FTP server, and the exported diagnostic file will be saved as the "DiagnoseInfo.tgz" file.
    admin:/>export event event_type=diagnostic_file ip=192.168.8.211 user=admin password=***** path=/ protocol=FTP 
    WARNING: It will take minutes to collect and export the data. The longest time required is 10 minutes. 
    Have you read warning message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully. 
     
  • Export logs of disks to an FTP server. 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 logs will be stored in the root directory of the FTP server, and the exported logs will be saved with the default file name.
    admin:/>export event event_type=disk_log 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: /dha_ctrl0A.tgz 
    Controller ID: 0B 
    Package Path: /dha_ctrl0B.tgz 
    Command executed successfully.
  • Export all logs of the system to an FTP server. 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 logs will be stored in the root directory of the FTP server, and the exported logs will be saved with the default file name.
    admin:/>export event event_type=all_log 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: /log_controller_0A_MAIN.tgz 
    Controller ID: 0B 
    Package Path: /log_controller_0B.tgz 
    Command executed successfully.
  • Export logs of HSSDs to an FTP server. 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 logs will be stored in the root directory of the FTP server, and the exported logs will be saved with the default file name.
    admin:/>export event event_type=hssd_log 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: /hssd_log_0A.tgz 
    Controller ID: 0B 
    Package Path: /hssd_log_0B.tgz 
    Command executed successfully.
  • Export logs of antivirus to an FTP server. 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 logs will be stored in the root directory of the FTP server, and the exported logs will be saved with the default file name.
    admin:/>export event event_type=antivirus_log 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: /antivirus_log_0A.tgz 
    Controller ID: 0B 
    Package Path: /antivirus_log_0B.tgz 
    Command executed successfully.
  • Export certain Call Home 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 Call Home data will be stored in the root directory of the FTP server, and the exported Call Home 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.

System Response

None

Translation
Download
Updated: 2019-09-02

Document ID: EDOC1000181601

Views: 333384

Downloads: 41

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next