Tool Introduction

The one-click information collection tool is used to quickly collect Vision SDK problems and locate related information, preventing you from repeatedly collecting and confirming logs. The information includes chip information (version and logs), OS version, environment variables, network information, and Vision SDK information (version, configuration file, logs, and third-party library versions).

The one-click information collection tool, consisting of the sdk_info_collector.sh and sdk_info_collector.py files, provides configurable parameters for collecting chip logs and Vision 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|-P

Sets the directory for storing Vision SDK logs. The number of log files in this directory cannot exceed 1,500.

-p logs_path | -P logs_path: logs_path must be an absolute path.

-x|-X

Chip log collection parameter (configurable):

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

-r|-R

Number of days for collecting Vision SDK logs (configurable):

  • By default, all logs are collected.
  • -r xd | -R xd: collects log information generated within x days. x must be an integer with a maximum of three digits. The value range is [1, 365].
  • -r full | -R full: collects logs of every day.

-t|-T

Level of Vision SDK logs to be collected (configurable):

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