snmp:仅给出表索引的一部分时的正确行为?

发布于 2024-09-14 17:16:15 字数 239 浏览 4 评论 0原文

假设 MIB 包含一个按 MAC 地址索引的表。当管理器请求 myTable.0.1 时,代理的正确行为是什么?这是一个不完整的索引。

我看到的一些可能性:

  1. 返回表中的第一行——将此部分索引视为位于第一行之前。
  2. 将其视为子树——返回表中与此 MAC 前缀匹配的行。
  3. 不返回任何行——将其视为在表中最后一行之后。
  4. 返回某种错误?

Assume a MIB contains a table indexed by MAC address. What's the correct behavior by the agent when a manager requests myTable.0.1? This is an incomplete index.

Some possibilities that I see:

  1. Return the first row in the table -- treat this partial index as coming before the first row.
  2. Treat this as a subtree -- return rows in the table that match this MAC prefix.
  3. Return no rows -- treat this as coming after the last row in the table.
  4. Return some kind of error?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

秋意浓 2024-09-21 17:16:15

取决于操作。

对不完整的 OID 执行 GET 将返回 noSuchName。

对不完整的 OID 执行 GETNEXT 将返回下一个完整的 OID。

请注意,许多制造商未能正确实施 SNMP 代理。您不能总是指望它们按预期返回下一个 OID。

Depends on the operation.

A GET on an incomplete OID will return noSuchName.

A GETNEXT on an incomplete OID will return the next complete OID.

Note that many manufacturers fail to implement SNMP agents correctly. You can't always count on them to return the next OID as expected.

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