NPU One-Click Log Collection Tool
- This section applies only to NPU 21.0.3.
- The NPU one-click log collection tool cannot be used in container scenarios.
- You are advised to use this tool to collect logs as the root user in case some logs cannot be collected.
Procedure
- Obtain the required software packages. For details, see Obtaining Software Packages.
- Install the NPU one-click log collection tool.
- Log in to the host server. For details, see Logging In to the CLI Using PuTTY over a Network Port.
- Install the driver. For details, see Installing the Driver.
- Obtain the NPU one-click log collection tool.
During the driver package installation, the NPU one-click log collection tool (log_collect.sh) is installed by default.
After NPU 21.0.3 is installed, the default installation paths of log_collect.sh are /usr/local/bin/ and /usr/local/sbin/.
- Run the following command to collect logs:
log_collect.sh
The NPU one-click log collection tool collects the following information.Log Directory
Description
collect_all_log/device_log/
Device logs.
collect_all_log/npu_log/
NPU logs.
collect_all_log/os_log/
OS logs.
collect_all_log/mcu_log/
MCU logs.
collect_all_log/collect_result.log
Log collection result recording.
collect_all_log/var_log/
Some files restored in the /var/log directory.
- Go to either of the following paths to obtain the log package:
- For the root user: /root/collect_all_log.tar.gz.
- For the non-root user: /home/user name/collect_all_log.tar.gz.
- In VM scenarios, some logs cannot be collected. For details about the log information, see the collect_result.log file in the collect_all_log.tar.gz package.
- Go to either of the following paths to obtain the log package: