Introduction

This tool is used to quickly collect MindX SDK problems and locate related information to prevent repeated log collection and confirm information. The information includes the processor information (version and logs), OS version, environment variables, network information, and MindX SDK information (version, configuration file, logs, and third-party library versions). This tool consists of the sdk_info_collector.sh and sdk_info_collector.py files. The sdk_info_collector.py file is called in the sdk_info_collector.sh file. In addition, you can add new functions to the tool as required.

The tool provides configurable parameters for collecting chip logs and MindX SDK logs. For details, see Table 1. Other information is collected by default.

Table 1 Parameter description

Parameter

Description

--help|-h|-H

Views the help information.

--version|-v|-V

Views the version.

-p

The log storage directory logs_path of the MindX SDK must be set.

  • -p logs_path: The value of logs_path must be an absolute path.

-x

Chip log collection parameter (configurable)

  • By default, chip information is not collected.
  • -x n: collects the logs of the specified processor n. n must be an integer.
  • -x n1,n2,n3: collects logs of the specified processors n1, n2, and n3. n1, n2, and n3 must be integers.
  • -x -1: collects logs of all processors.

-r

Number of days of MindX SDK logs to be collected (configurable)

  • By default, all logs are collected.
  • -r xd: collects logs within x days. x must be an integer.
  • -r full: collects logs of every day.

-t

Level of MindX SDK logs to be collected (configurable)

  • By default, all logs are collected.
  • -t d: collects debug (debug) logs and logs of higher levels.
  • -t i: collects information (info) logs and logs of higher levels.
  • -t w: collects warning (warn) logs and logs of higher levels.
  • -t e: collects error (error) logs and logs of higher levels.
  • -t f: collects fatal (fatal) logs.
  • -t full: collects logs of all levels.