---
title: 环境配置
description: "获取或恢复指定配置。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/troubleshooting/troubleshooting_0514.html
sourcePath: /source/zh/canncommercial/900/maintenref/troubleshooting/troubleshooting_0514.html
indexId: 8efb2456a6fdcc7776ce2ff87602071fd757b0728bef06164f78a532d1cce37382
---
# 环境配置

#### 功能说明

获取或恢复指定配置。


#### 产品支持情况

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


#### 注意事项

环境配置相关命令必须在物理机且root用户下执行。


#### 命令格式

```
# 查询压测相关配置
asys config -d=
deviceId
-
-get --stress_detect
# 恢复压测相关配置
asys config -d=
deviceId
--restore --stress_detect
```


#### 参数说明

- d：可选参数，指定待操作的deviceId，不设置该参数，默认获取或恢复device 0的配置。
- get：获取指定配置。
- restore：恢复指定配置。
- stress_detect：表示压测相关配置。get和stress_detect配合使用，用于获取压测相关配置；restore和stress_detect配合使用，用于恢复压测相关配置。


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

各产品型号的输出信息有所不同，请以实际输出信息为准。
```
# 获取压测配置
asys config -d=0 --get --stress_detect
+--------------------------------+---------------------------------+
| Device ID: 0                   | CURRENT CONFIGURATION           |
+================================+=================================+
| AI Core Voltage (MV)           | 850                             |
| Bus Voltage (MV)               | 850                             |
+--------------------------------+---------------------------------+
# 恢复压测配置
asys config -d=0 --restore --stress_detect
[ASYS] [INFO]: Configuration successfully restore, on device 0.
```
