---
title: 组件检测
description: "组件检测，当前只支持AI Vector组件检测，不支持并行执行 。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/troubleshooting/troubleshooting_0506.html
sourcePath: /source/zh/canncommercial/900/maintenref/troubleshooting/troubleshooting_0506.html
indexId: 9812247a41a3fd7a0d85e3c94d21cf7cec90afe69feecd0aa05a8c847dd5a30482
---
# 组件检测

#### 功能说明

组件检测，当前只支持AI Vector组件检测，不支持并行执行 。


#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |


#### 命令格式

```
asys diagnose -r=
component
-d=
deviceId
--output=
path
```


#### 参数说明

- r：必选参数，检测模式，此处设置为component，表示组件检测。
显示检测结果时：

  - 不指定device但device只有一个时，仅显示这个device的状态。
  - 显示所有device的检测结果时，若所有device的状态都为Pass、Fail，则直接显示Pass - All、Fail - All。
  - 若一个或多个device状态不一致时，则依次显示每个device的状态，例如4个device时，显示Pass, Pass, Fail, Fail。
  - 若检测结果为Fail，可查看debug_info.txt日志定位问题。
- d：可选参数，指定待检测的deviceId。不设置该参数，默认显示所有device的检测结果。Pass表示正常，Warn表示异常。
- output：可选参数，其值作为检测结果文件diagnose_result_{time_stamp}.txt的保存目录。命令行中不带output参数时，输出结果不落盘仅在终端屏幕显示；若output指定值为空、无效字符串、或指定路径目录无写权限、或创建目录失败，则asys工具退出执行并报错。


#### 使用示例和输出说明

- 不指定device，所有device正常，此处以四卡为例：

```
asys diagnose -r=component
+------------------------+------------------------+
| Group of 4 Device      | Diagnostic Result      |
+========================+========================+
+--- Component ----------+------------------------+
| AI Vector              | Pass - All             |
+------------------------+------------------------+
```


- 不指定device，部分device正常，此处以四卡为例：

```
asys diagnose -r=component
+------------------------+------------------------+
| Group of 4 Device      | Diagnostic Result      |
+========================+========================+
+--- Component ----------+------------------------+
| AI Vector              | Pass, Fail, Pass, Fail |
+------------------------+------------------------+
```


- 指定device，此处以device 0为例：

```
asys diagnose -d=0 -r=component
+------------------------+------------------------+
| Device ID: 0           | Diagnostic Result      |
+========================+========================+
+--- Component ----------+------------------------+
| AI Vector              | Pass                   |
+------------------------+------------------------+
```
