交换机到SNMP服务器可达,但出现了snmp不响应请求的问题,怀疑是触发限速了,这个有什么方法可以判断下么
(0)
最佳答案
使用NQA的SNMP测试功能,测试从Device A发出SNMP协议查询报文到收到SNMP Agent(Device B)响应报文所用的时间。
图1-9 SNMP配置测试组网图
(1) 配置各接口的IP地址。(配置过程略)
(2) 配置静态路由或动态路由协议,确保各设备之间路由可达。(配置过程略)
(3) 配置SNMP Agent(Device B)
# 启动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
(4) 配置Device A
# 创建SNMP类型的测试组(管理员为admin,操作标签为test1),并配置测试操作的探测报文的目的地址为SNMP Agent的IP地址10.2.2.2。
<DeviceA> system-view
[DeviceA] nqa entry admin test1
[DeviceA-nqa-admin-test1] type snmp
[DeviceA-nqa-admin-test1-snmp] destination ip 10.2.2.2
# 开启NQA测试组的历史记录保存功能。
[DeviceA-nqa-admin-test1-snmp] history-record enable
[DeviceA-nqa-admin-test1-snmp] quit
# 启动测试操作,并一直进行测试。
[DeviceA] nqa schedule admin test1 start-time now lifetime forever
# 测试执行一段时间后,停止SNMP测试操作。
[DeviceA] undo nqa schedule admin test1
# 显示SNMP测试中最后一次测试的当前结果。
[DeviceA] display nqa result admin test1
NQA entry (admin admin, tag test1) test results:
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: 2011-11-22 10:24:41.1
Extended results:
Packet loss ratio: 0%
Failures due to timeout: 0
Failures due to internal error: 0
Failures due to other errors: 0
# 显示SNMP测试的历史记录。
[DeviceA] display nqa history admin test1
NQA entry (admin admin, tag test1) history records:
Index Response Status Time
1 50 Succeeded 2011-11-22 10:24:41.1
以上显示信息表示,Device A可以和SNMP Agent(Device B)建立连接,从Device A发出一个SNMP协议查询报文到收到SNMP Agent响应报文所用的时间为50毫秒。
(0)
具体展开说说
您好,以下是一些方法可以帮助判断交换机到 SNMP 服务器不响应请求的问题是否由触发限速引起:
ping 命令检查交换机和 SNMP 服务器之间的网络连通性。如果可以 ping 通,说明网络基本连通,但不一定是 SNMP 报文的连通性。
traceroute 命令检查网络路径,确保没有中间设备阻止 SNMP 报文。
undo snmp-agent 和 snmp-agent 重启 SNMP 服务。
display logbuffer 查看交换机上的 SNMP 异常日志,确认是否有 SNMP 认证失败或其他异常信息。
snmp-agent trap log 开启 SNMP 告警日志功能,查看设备上是否生成了 Trap 日志。
undo snmp-agent protocol source-status all-interface 配置,确保 SNMP 协议使用所有接口响应网管请求。
snmp-agent target-host 检查目标主机配置,确保 SNMP 服务器的 IP 地址和端口号配置正确。
debugging snmp agent 开启 SNMP 调试信息开关,再次执行 SNMP 操作,查看调试信息以定位问题。
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
具体展开说说