我要评分
获取效率
正确性
完整性
易理解

Checking the 64-Bit Running Mode Using Command Lines

Command Function

Uses the terminal tool to check the running mode.

Syntax

devkit advisor mode-check {-i INPUT_PATH | --input INPUT_PATH} [-o OUTPUT_PATH | --output OUTPUT_PATH] [-l {0,1,2,3} | --log-level {0,1,2,3}] [-r {all,json,html,csv} | --report-type {all,json,html,csv}] [--set-timeout TIMEOUT]

Parameter Description

Table 1 Parameter description

Argument

Parameter

Description

-i/--input

path-to-package

Path of the source code folder to be scanned.

This parameter is mandatory.

Example: /home/test1

-o/--output

path-to-output

Path for storing the report.

This parameter is optional.

By default, the report is saved in the current execution path and is named in the format of Feature name_Timestamp.

--set-timeout

time

Task timeout period.

This parameter is optional.

By default, there is no timeout interval. The task will be executed until it is complete.

-l/--log-level

0,1,2,3

Log level. The options are 0 (DEBUG), 1 (INFO), 2 (WARNING) and 3 (ERROR). The default value is 1 (INFO).

-r/--report-type

all,json,html,csv

Format of the scan report.

This parameter is optional.

The default value is all, indicating that JSON, HTML, and CSV reports are generated.

Example

Replace the path in the following example command with the actual path of the source code to be scanned.

devkit advisor mode-check -i /opt/DevKit/workspace/devadmin/affinity/precheck/test005 -o /opt/DevKit -l 0
The following information is displayed and a report is generated:
64-bit Run Mode Check task has been executed.
Environment cleared successfully.

Scanned time: 20240327163253
Scan status: Succeed. Some items are recommended to be modified.

Configuration:
     Source code file path: /opt/DevKit/workspace/devadmin/affinity/precheck/test005
     Log level: debug
     Report type: all
     Timeout interval setting: The timeout period is not set.

Summary:
      5 source files to be modified have been scanned. There are 8 recommended modifications, 8 lines of code need to be modified.

For the detailed information, please check:
    /opt/DevKit/mode_check_20240327163253_826a.json
    /opt/DevKit/mode_check_20240327163253_826a.html
    /opt/DevKit/mode_check_20240327163253_826a.csv

Output Description

Table 2 Output report parameters

Parameter

Description

Configuration

Displays the path of the software source file.

Source File to Be Modified

Displays information such as the path of the source file to be modified.