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 2800 V3 V300R006

This document is applicable to OceanStor 2800 V3. Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese 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 logfile

export logfile

Function

The export logfile command is used to export log files of disks.

Format

export logfile [ export_all_data=? | disk_serial_number=? | enclosure_id=? slot_id=? ]

Parameters

Parameter

Description

Value

export_all_data=?

Exports log files of all disks.

The value is "all".

disk_serial_number=?

Disk SN. Log files of the disk corresponding to the SN can be exported.

To obtain the value, run "show disk general disk_id=xxx".

enclosure_id=?

ID of the disk enclosure where a disk resides. If you use this parameter with parameter slot_id=?, you can export log files of a specified disk in a specified disk enclosure.

You can run the restricted command "sddebug show disk" in the diagnosis view to query the physical ID (SDID) of the disk. Then, run the restricted command "sddebug show device sdid=SDID" to query the enclosure ID (Frame ID) of the disk.

slot_id=?

ID of the slot in which a disk resides. If you use this parameter with parameter enclosure_id=?, you can export log files of a specified disk in a specified disk enclosure.

You can run the restricted command "sddebug show disk" in the diagnosis view to query the physical ID (SDID) of the disk. Then, run the restricted command "sddebug show device sdid=SDID" to query the slot ID (Slot ID) of the disk.

Level

Administrator

Usage Guidelines

  • Run export logfileto export log files of disks corresponding to SNs in the "diskfault.cfg" file.
  • Run export logfile export_all_data=all to export collected data of all disks.
  • Run export logfile disk_serial_number=? to export log files of a disk with a specified SN.
  • Run export logfile enclosure_id=? slot_id=? to export log files of a specified disk in a specified disk enclosure.

Example

  • Export Log files of a disk with a specified SN.
    developer:/>export logfile disk_serial_number=HS000000000000586291 
    Success: Start asynchronous exporting, please get the collect package from /home/permitdir/dha/download after 5 minutes.
  • Export log files of disks corresponding to SNs in the "diskfault.cfg" file.
    developer:/>export logfile 
    Success: Start asynchronous exporting, please get the collect package from /home/permitdir/dha/download after 5 minutes.
  • Export collected data of all disks.
    developer:/>export logfile export_all_data=all 
    Success: Start asynchronous exporting, please get the collect package from /home/permitdir/dha/download after 5 minutes.
  • Export log files of a specified disk in a specified disk enclosure.
    developer:/>export logfile enclosure_id=1 slot_id=1 
    Success: Start asynchronous exporting, please get the collect package from /home/permitdir/dha/download after 5 minutes.

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138382

Views: 311880

Downloads: 38

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