H3C S3500-EA NQA SNMP测试的典型配置
一、 组网需求:
使用SNMP查询测试从Device A发出一个SNMP协议查询报文到收到SNMP agent(Device B)响应报文所用的时间。
二、 组网图:
三、 配置步骤:
(1) 在SNMP agent上进行配置
# 启动SNMP agent服务,设置SNMP版本为all、只读团体名为public、读写团体名为private。
<DeviceB> system-view
[DeviceB] snmp-agent sys-info version all
[DeviceB] snmp-agent community read public
[DeviceB] snmp-agent community write private
(2) 在Device A上进行配置
# 创建SNMP查询类型的测试组并配置相关测试参数。
<DeviceA> system-view
[DeviceA] nqa entry admin test
[DeviceA-nqa-admin-test] type snmp
[DeviceA-nqa-admin-test-snmp] destination ip 10.2.2.2
[DeviceA-nqa-admin-test-snmp] quit
# 启动测试操作。
[DeviceA] nqa schedule admin test start-time now lifetime forever
# 测试执行一段时间后,停止SNMP测试操作。
[DeviceA] undo nqa schedule admin test
# 显示SNMP测试中最后一次测试的结果。
[DeviceA] display nqa result admin test
NQA entry(admin admin, tag test) test results:
Destination IP address: 10.2.2.2
Send operation times: 1 Receive response times: 1
Min/Max/Average round trip time: 50/50/50
Square-Sum of round trip time: 2500
Last succeeded probe time: 2007-11-22 10:24:41.1
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
# 显示SNMP测试的历史记录。
[DeviceA] display nqa history admin test
NQA entry(admin admin, tag test) history record(s):
Index Response Status Time
1 50 Timeout 2007-11-22 10:24:41.1
四、 配置关键点:
无.
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作