Tool Usage

  1. Go to the directory where the information collection tool is located.
    cd ${MX_SDK_HOME}/bin

    MX_SDK_HOME is the MindX SDK installation directory. Ensure that MX_SDK_HOME is a valid environment variable.

  2. Run the sdk_info_collector.sh script.

    The following describes three one-click information collection methods. You can use them as required.

    • The default parameter is used to collect information about all MindX SDK logs. By default, processor logs are not collected.
      bash sdk_info_collector.sh -p logs_path
      Table 1 Description of the default parameter

      Parameter

      Description

      -p logs_path

      Collects MindX SDK logs stored in the logs_path directory.

    • Collect specified parameters for log collection. For details, see Table 2.
      bash sdk_info_collector.sh -p logs_path -r 3d -t w -x 6
      Table 2 Description of specified parameters

      Parameter

      Description

      -p logs_path

      Collects MindX SDK logs stored in the logs_path directory.

      -r 3d

      Collects MindX SDK logs generated in the last three days.

      -t w

      Collects MindX SDK logs at the warning level or higher.

      -r 3d -t w

      Collects MindX SDK logs of the warning level and higher levels in the last three days.

      -x 6

      Collects the logs of processor 6.

      -x 0,2,5

      Collects logs of processors 0, 2, and 5.

      Example:

      bash sdk_info_collector.sh -p logs_path -r 3d -t w -x 0,2,5
    • Full collection
      bash sdk_info_collector.sh -p logs_path -r full -t full -x -1
      Table 3 Command parameter description

      Parameter

      Description

      -p logs_path

      Collects MindX SDK logs stored in the logs_path directory.

      -r full

      Collects MindX SDK logs of all days.

      -t full

      Collects MindX SDK logs of all levels.

      -r full -t full

      Collects all MindX SDK logs.

      -x -1

      Collects all processor logs.

  3. Obtain the result.

    The result of running the tool is stored in the mindx_sdk_info_year+month+day_hour+minute+second.tar.gz file in the ${MX_SDK_HOME}/bin directory.