> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lwops.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 11.3 华三NOA配置及链路监控

# 1. 说明及配置

## **1.1 简介**

本章介绍了与NQA相关的典型配置举例。

## **测试典型配置指导**

### **1.2.1 适用产品和版本**

表1 适用产品和版本

|                            |
| :------------------------- |
| 产品                         |
| S10500系列以太网交换机             |
| S5800\&S5820X系列以太网交换机      |
| S5830系列以太网交换机              |
| S5500-EI\&S5500-SI系列以太网交换机 |

### **1.2.2 组网需求**

当前网络如[/图1/](http://192.168.1.202:8181/docs/object-manage2/doc-162#_Ref358301346)所示，现要求使用ICMP-echo测试功能测试Switch A发送的报文经过Switch B是否可以到达Switch C，以及报文的往返时间。

<img src="https://lwweb.oss-cn-shenzhen.aliyuncs.com/docs/images/yuque/h3c-noa-link/image-01.png" alt="11.3 华三NOA配置及链路监控 操作截图 1" /> 图1 ICMP-echo测试组网图

### **1.2.3 配置注意事项**

· 进行NQA测试之前，请确保各设备之间路由可达。 · 测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改，测试结束后才可以进入该测试组视图和测试类型视图。

### **1.2.4 配置步骤**

创建ICMP-echo类型的NQA测试组并配置测试操作的目的地址。

```plain theme={null}
 system-view
[SwitchA] nqa entry admin test
[SwitchA-nqa-admin-test] type icmp-echo
[SwitchA-nqa-admin-test-icmp-echo] destination ip 10.3.3.3
```

配置NQA测试报文的下一跳IP地址。

```plain theme={null}
[SwitchA-nqa-admin-test-icmp-echo] next-hop 10.1.1.2
```

配置测试组每次测试之间的时间间隔为5000毫秒（如果到达**frequency**指定的时间间隔时，上次测试尚未完成，则不启动新一轮测试）。

```plain theme={null}
[SwitchA-nqa-admin-test-icmp-echo] frequency 5000
```

配置一次NQA测试中进行探测的次数为10次。

```plain theme={null}
[SwitchA-nqa-admin-test-icmp-echo] probe count 10
```

配置一个测试组中能够保存的最大历史记录个数为10。

```plain theme={null}
[SwitchA-nqa-admin-test-icmp-echo] history-record enable
[SwitchA-nqa-admin-test-icmp-echo] history-record number 10
```

启动ICMP-echo测试操作。

```plain theme={null}
[SwitchA-nqa-admin-test-icmp-echo] quit
[SwitchA] nqa schedule admin test start-time now lifetime forever
```

测试执行一段时间后，停止ICMP-echo测试操作。

```plain theme={null}
[SwitchA] undo nqa schedule admin test
```

### **1.2.5 验证配置**

以上配置完成后，显示ICMP-echo测试中最后一次测试的结果。

```plain theme={null}
[SwitchA] display nqa result admin test
NQA entry(admin admin, tag test) test results:
Destination IP address: 10.3.3.3
Send operation times: 10             Receive response times: 10
Min/Max/Average round trip time: 0/16/1
Square-Sum of round trip time: 256
Last succeeded probe time: 2012-08-23 15:00:01.2
Extend results:
Packet lost in test: 0%
Failures due to timeout: 0
Failures due to disconnect: 0
Failures due to no connection: 0
Failures due to sequence error: 0
Failures due to internal error: 0
Failures due to other errors: 0
Packet(s) arrived late: 0
```

显示ICMP-echo测试的历史记录。

```plain theme={null}
[SwitchA] display nqa history admin test
NQA entry(admin admin, tag test) history record(s):
Index      Response     Status           Time
370        10           Succeeded        2012-08-23 15:00:01.2
369        10           Succeeded        2012-08-23 15:00:01.2
368        10           Succeeded        2012-08-23 15:00:01.2
367        10           Succeeded        2012-08-23 15:00:01.2
366        4            Succeeded        2012-08-23 15:00:01.2
365        10           Succeeded        2012-08-23 15:00:01.2
364        10           Succeeded        2012-08-23 15:00:01.1
363        10           Succeeded        2012-08-23 15:00:01.1
362        10           Succeeded        2012-08-23 15:00:01.1
361        4            Succeeded        2012-08-23 15:00:01.1
```

### **1.2.6 配置文件**

`nqa entry admin test type icmp-echo destination ip 10.3.3.3 frequency 5000 history-record enable history-record number 10 next-hop 10.1.1.2 probe count 10 nqa schedule admin test start-time now lifetime forever`

注意第三行中的 destination 容易错配成 description

# 2.监控

## 2.1. 获取监控索引号（SNMP OID）

备注：华三专线链路索引获取需通过进入设备所在的代理采集服务器执行snmpwalk命令，参数说明，-v为指定snmp协议的版本，-c执行snmp的团体名，172.24.16.46为本端设备的ip地址，”18.122.104.117.97.110.120.105.97.110.95.106.105.97.110.107.111.110.103”为专线目的IP的OID。 （snmpwalk -v 2c -c gbia2018 172.24.16.46 SNMPv2-SMI::mib-2.80.1.3.1.3）

## 2.2. 页面填写信息（重点：OID索引)

监控添加链路时，填写索引应为`SNMPv2-SMI::mib-2.80.1.3.1.3`往后部分的OID
