Collecting Logs
Function
The npu-smi set -t collect-log -i id command is used to collect MCU logs. The collected logs are stored in the /run directory.
Syntax
npu-smi set -t collect-log -i id
Parameters
Parameter |
Description |
---|---|
id |
Device ID. The NPU ID obtained by running the npu-smi info -l command is the device ID. |
Restrictions
This command must be run as the root user on a physical machine. If it is run as a non-root user on the physical machine, in a container, or on a VM, an error is reported.
Example
#Collect MCU logs of device 2.
npu-smi set -t collect-log -i 2
type(0): file_len(202752)--offset(202752) [100].
Collect log success,(0).
type(1): file_len(4322)--offset(4322) [100].
Collect log success,(1).
type(2): file_len(508)--offset(508) [100].
Collect log success,(2).