D
Obtaining Device Logs by Using an
Open-Source Tool
This topic describes how to obtain device logs by using the open-source tool nvme-cli.
Function
You can use the python script
hiolog.py
to obtain device logs without using hioadm. The
hiolog.py
script can be obtained from the driver installation package.
Format
python hiolog.py -d
devicename
Parameters
Parameter
Description
Value
devicename
Name of a device
Examples: nvme0 and nvme1
Usage Guidelines
The generated log files are in the current directory. The directory structure is as follows:
.
├── es3000v3_log
│ └── 20160709
│ ├── nvme0_coredump_050254.log
│ ├── nvme0_fw_050254.log
│ ├── nvme0_fw_050254.tmp
│ ├── nvme0_key_050254.log
│ └── nvme0_key_050254.tmp
└── hiolog.py
The .tmp files contain original log data. The .log files are exported logs.
Example
# Obtain the key logs of the
nvme0
SSD.
[root@localhost ~]#
python hiolog.py -d nvme0
Reading log fw(2059)
ES3000 V3 NVMe PCIe SSD
User Guide
D Obtaining Device Logs by Using an Open-Source Tool
Issue 20 (2019-02-27)
Copyright © Huawei Technologies Co., Ltd.
181