Log Collection

Table 1 Collecting log information

File

Description

Content and Path

system-report.log.gz

Operating environment information.

  • Operating system information, which is obtained by reading the /etc/lsb-release and /etc/os-release files.
  • PCIe device information, which can be obtained by running the lspci command.
  • System software package information, which can be obtained by running the apt list/rpm -qa command.
  • Python package information, which can be obtained by running the pip list/pip3 list command.
  • Firmware version and system version

    Firmware version:

    /usr/local/Ascend/driver/tools/upgrade-tool --device_index -1 --component -1 --version

    System version:

    /usr/local/Ascend/driver/tools/upgrade-tool --device_index -1 --system_version

    In the preceding command, /usr/local/Ascend indicates the driver installation path, which can be obtained from the /etc/ascend_install.info file.

  • Environment variable information, which can be obtained by running the env command.
  • Permission on the startup file, which can be obtained by running the ls -l /boot command.
  • Memory status, which can be obtained by running the cat /proc/meminfo command.
  • CPU status, which can be obtained by running the cat /proc/cpuinfo command.
  • Interruption report file, which can be obtained by running the cat /proc/interrupts command.
  • Slot information, which can be obtained by running the dmidecode -t slot command.
  • Last startup time of the system, which can be obtained by running the last reboot command.

ascend-report.log.gz

Ascend NPU health information.

  • Ascend software and hardware version information and Ascend software installation information.
  • Data such as Ascend DMI version information and device health status, which can be obtained by running the ascend-dmi command. For details, see Ascend DMI Instructions.
  • Chip information, which can be obtained by running the npu-smi command.
  • System-level logs of the host
    • Host driver logs:

      Logs whose names contain ascend in the /var/log/syslog* directory.

    • Host kernel mode logs:

      Logs whose names contain ascend in the /var/log/messages* directory.

      Logs whose names contain ascend in the /var/log/kern.log* directory.

      Logs whose names contain ascend in the /var/log/kernel.log* directory.

      Logs whose names contain ascend in the /var/log/dmesg* directory.

npu_log_collect_YYYYMMDDhhmmss.tar.gz

Ascend NPU logs.

  • collect_scripts_running_log: run logs.
  • mcu_log: MCU logs.
  • npu_info_log: NPU status information.
  • nputools_log: run logs of the npu-smi tool.
  • ascend_log_YYYYMMDDhhmmss.tar.gz: run logs of the Ascend AI Processors.
    • host_info: host environment information.
    • host_log: host log information.
    • device_log: full device logs.
    • driver_info: driver running information.
    • install_info: driver installation information.
    • script_running.log: tool run logs.

ascend_user_log.tar.gz

Ascend software logs, mainly CANN App logs generated on the host and device.

  • Logs generated by applications on the host are stored in the ${HOME}/ascend/log/plog directory.
  • Logs generated by applications on the device are stored in the ${HOME}/ascend/log/device-<id> directory.

ascend_user_install_log.tar.gz

CANN installation logs.

The installation logs of the root user are stored in /var/log/ascend_seclog, and the installation logs of non-root users are stored in ${HOME}/var/log/ascend_seclog.

device_log.tar.gz

Collected Ascend software and hardware logs.

The involved directory is /var/log/npu.

YYYY-MM-DD-HH-MM-SS

Folder for storing system-level logs of the device. The device logs are packed into the log package in the current directory of the host.

-

alog.tar.gz

Logs of edge device middleware (such as MindEdge).

-

plog.tar.gz

O&M logs of edge devices.

-

mindx_sdk_info_*.tar.gz

Collected SDK information, including:

Processor information (version and logs), OS version, environment variables, network information, and MindSDK and MindIE information (version, configuration file, logs, and third-party library versions).

-