report
Command Function
Displays historical reports or analyzes the differences between reports.
Syntax
1
|
./kspect report [-h] [-r REPORT] [-d DIFF [-t THRESHOLD]] [--diff_x86 DIFF_X86 [-t THRESHOLD]] |
Parameter Description
Example
- Display historical reports.
1./kspect -l 0 report -h
The -h option displays the latest 10 reports. You can run the ./kspect report -r Report_SN command to view the report with the specified serial number.
Figure 1 Report records
- Compare the system report with the full report.
./kspect report -d 1,2
For the system report, run the ./kspect system -o command to collect information, which includes only host information. If a -- is not displayed in red in the report, the related data is either unavailable or cannot be collected.
Figure 2 Comparison between the system report and the full report
Table 2 Report description Item
Sub-item
Description
Note
Describes the [before] and [after] reports and the comparison rules. The comparison result shows the System module data that exists in both reports.
System
Host
Compares host information. A -- in red in the diff column indicates that the two data records are different.
Product
Compares product information. The [before] report (system report) does not contain product information. Therefore, no diff data exists.
Baseboard
Compares mainboard information. The [before] report (system report) does not contain mainboard information. Therefore, no diff data exists.
JSON File
The generated report is saved in the Tool_installation_path/output/kspect-diff-system-all-YYYYMMDD-HHMMSS directory and the file name is kspect-diff-system-all-YYYYMMDD-HHMMSS.json.
- Compare the latest historical report with the x86 report.
1./kspect report --diff_x86 1,/home/kspect/perfspect/localhost.localdomain3.0.1.json -t 60
- In the comparison report, [common] indicates that the configuration item exists in both reports, and [same] indicates the identical data.
- In the comparison report, [arm] indicates data exclusive to Arm, and [x86] indicates data exclusive to x86.
Figure 3 Storage comparison report
Table 3 Storage report description Item
Sub-item
Description
Note
Describes the [arm] and [x86] reports and the comparison rules. Only information that exists in both the Arm and x86 architectures is compared. Data exclusive to either Arm or x86 is not compared.
Storage
Disk Table
Compares drive information. Entries with values in square brackets whose differences exceed 60% are displayed in red. A red [--] indicates that the threshold cannot be calculated, but the values differ. A -- indicates that the information does not exist or is missing.
- Compare the latest historical report with the baseline report.
1./kspect report --diff_base 1,/home/base.xlsx
- In the comparison report, [current] indicates that the collected report data. If its value is --, the data is not collected.
- [base] indicates the baseline report content. Differences between the collected and baseline content are marked in the Diff column, and the impact and suggested modifications are displayed.
Table 4 Part of report description Item
Sub-item
Description
Note
Path to the [current] and [base] reports.
UB
UBSE Info
The name column indicates the customized collection name in the baseline report. The current column indicates the data collected in the current report. -- indicates that the data is not collected. The base column indicates the baseline value in the baseline report. The diff column indicates the comparison result between the collected value and the baseline value. The impact column indicates the customized impact content in the baseline report, and if no value is entered, -- is displayed.