Fault Diagnosis

API Prototype

ascend-fd diag -i Diagnosis_input_directory -o Diagnosis_result_output_directory

Description

This API starts a fault diagnosis task. After log cleaning is complete, this API is used to diagnose fault events based on the log cleaning result.

Parameters

Table 1 Parameter description

Parameter

Abbreviation

Required (Yes/No)

Value Type

Description

--input_path

-i

Yes

String

Input path of cleaned data

--output_path

-o

Yes

String

Output path of diagnosis results

--performance

-p

No

Bool

If this parameter is specified, the fault diagnosis function of all modules is executed.

If this parameter is not specified, only the fault diagnosis function of the root cause node and fault event module is executed.

--help

-h

No

-

Displays the meanings and usage instructions of level-2 commands and parameters.

--scene

-s

No

String

Diagnosis scenario. The value can be host (default) or super_pod.

  • host: Diagnoses only host logs.
  • super_pod: Diagnoses SuperPoD logs, including host, BMC, and LCNE logs.

Return Value

Execution status of a fault diagnosis task:

The diag job starts. Please wait. Job id: [****], run log file is [****].
Diagnosis content
The diag job is complete.