【发布时间】:2013-05-05 23:01:59
【问题描述】:
我正在使用最新版本的 pysnmp 4.2.4 并测试了 SNMPV1/2C 命令响应程序示例 (http://pysnmp.sourceforge.net/examples/current/v1arch/agent/cmdrsp.html),该示例返回正常运行时间值以响应 OID 1、3、6、1、2、1, 1,3,0
我使用了 V3 响应器示例 (http://pysnmp.sourceforge.net/examples/current/v3arch/agent/cmdrsp/v3-multiple-users.html),并让它返回 1、3、6、1、2、1、1、3、0 的系统值(无)。
如何向 V3 版本添加回调,使其调用类似于 V1 版本的 Uptime 类(并返回本地值)?
TIA 史蒂夫
【问题讨论】:
标签: callback command agent pysnmp