首页 > 解决方案 > 如何避免 usmStatsNotInTimeWindows (1.3.6.1.6.3.15.1.1.2.0)

问题描述

我的应用程序使用带有 AuthPriv 设置的 SNMPv3 从设备获取数据。

很多时候沟通失败。

使用wireshirk检查时,多次报错如下

报告 1.3.6.1.6.3.15.1.1.2.0

SNMP 请求有设置

用户目标.setRetries = 2

用户目标.setTimeout = 5000

我发现的错误含义如下

This is set when the engineTime specified is not within the timeWindow of agent. The engineTime is considered not within the timeWindow if any of the following is true.

1. If the agent's snmpEngineBoots value is equal to 2147483647.
2. If the request's snmpEngineBoots value differs from that of the agent.
3. If the difference between the SNMP request's snmpEngineTime and that of the agent is greater than 150.

This error is reported by the agent with its first varbind containing the OID ".1.3.6.1.6.3.15.1.1.2.0" and the value is a Counter giving the number of packets that have been dropped because of this error. (Example screenshot below)

如何避免这个问题。

标签: javasnmp

解决方案


推荐阅读