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 storage systems. It describes hardware installation of those storage systems for helping you easily and quickly finish the installation.

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, diagnostic files, disk enclosure logs, or disk data erasure logs generated by the storage system.

Format

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

Parameters

Parameter

Description

Value

event_type=? Type of information that you want to export.

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

  • "event": indicates events.
  • "log": indicates recent logs.
  • "disk_log": indicates disk logs.
  • "all_log": indicates all system logs.
  • "hssd_log": indicates all HSSD logs.
  • "antivirus_log": indicates antivirus logs.
  • "call_home": indicates Call Home data.
  • "diagnostic_file": indicates the diagnostic file.
  • "enclosure_log": indicates all logs of disk enclosures.
  • "disk_data_erasure_log": indicates logs of disk data erasure.
  • "pool_critical_log": indicates the key logs of the pool.
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 characters.

path=? File name of 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", "diagnostic_file", "enclosure_log", or "disk_data_erasure_log". 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.

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

enclosure_id_list=? ID list of disk enclosures.

ID list of disk enclosures. To obtain the value, run "show expansion_module". This parameter can be specified only when "event_type" is set to "enclosure_log". Disk enclosure IDs are separated by commas (,).

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.
    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 the logs, disk logs, all logs, Call Home data, antivirus logs, diagnostic file, disk enclosure logs, or disk data erasure logs.

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 with the default file name.

    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.
  • Export disk enclosure 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 as the "enclosure_log_DAE[030.A].tgz" and "enclosure_log_DAE[030.B].tgz" files.

    admin:/>export event event_type=enclosure_log ip=192.168.8.211 user=admin password=****** path=/ protocol=FTP port=21 enclosure_id_list=DAE030.A,DAE030.B
    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: /enclosure_log_DAE[030.B].tgz
    Controller ID: 0B
    Package Path: /enclosure_log_DAE[030.A].tgz
    Command executed successfully.
  • Export logs of disk data erasure 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", and the exported logs will be stored in the root directory of the FTP server with a default file name.

    admin:/>export event event_type=disk_data_erasure_log ip=192.168.8.211 user=admin password=****** path=/ protocol=FTP
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2020-01-17

Document ID: EDOC1000181601

Views: 379877

Downloads: 54

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next