如果在 snmp4j 中使用 TableUtils.getTable,如何添加 snmpv3 上下文名称
在 snmp4j version 2.0.2
中,我使用 TableUtils.getTable
获取 snmp 信息,
并使用 usm.adduser
来获取添加所有配置文件,
但我没有找到添加 v3profile 的上下文名称的方法。
我知道您可以设置 ScopePDU.setContextName ,但 TableUtils.getTable 不使用 PDU 对象,
除非我遗漏了什么,请帮忙......
谢谢, 朱莉
In snmp4j version 2.0.2
, I'm using TableUtils.getTable
to get the snmp info,
and I'm using usm.adduser
to add all the profiles,
but I don't see a way to add the context name of the v3profile.
I know you can set the ScopePDU.setContextName
, but TableUtils.getTable
don't use PDU
object,
unless I'm missing something, please help...
Thanks,
Julie
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 gmane.network.snmp4j.general 新闻组中得到了 Frank 的回复,基本上只需要创建 PDUFactory 的子类即可在那里指定上下文名称。
I got the response back from Frank in the gmane.network.snmp4j.general newsgroup, basically just need to create a subclass of PDUFactory in order to specify the context name there.