java - 如何避免 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)
如何避免这个问题。
解决方案
推荐阅读
- javascript - 在 Express 中从 sendfile() 移动到 sendFile()
- c - 有没有一种简洁的方法(没有循环)在 C 中创建一个线性间隔的数组?
- android - Android ScrollView - 第一个视图填满整个屏幕
- .net - 执行 Web 的 Activity 以在 Azure Pipeline 中运行 WebJob
- vim - Vim 块粘贴行内或新行
- javascript - 如何提供指向 Angular 6 组件实例的“this”上下文?
- ios - 在两点旋转和缩放地图视图
- c# - Entity Framework Code First 迁移添加了我的模型中不存在的字段
- python-3.x - 这个 Python 程序有可能的解决方案吗?
- bash - Bash while do 和 if 使用 Telegram API