如果在 snmp4j 中使用 TableUtils.getTable,如何添加 snmpv3 上下文名称

发布于 2024-12-14 16:06:47 字数 299 浏览 3 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黒涩兲箜 2024-12-21 16:06:48

我在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文