SNMP陷阱中的属性顺序重要吗 [英] Does the order of attributes in SNMP Traps matter

查看:153
本文介绍了SNMP陷阱中的属性顺序重要吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一些SNMP陷阱来监视应用程序.现在,我被告知,如果陷阱中的属性顺序与MIB中定义的顺序不同,则某些监视系统可能会出现问题.由于OID的复杂性很容易被用来重新排序属性,对此我感到惊讶,因此我试图找到RFC的相关部分,但是我找不到任何允许任何排序的内容或任何说很重要.在其他有关SNMP的辅助文档中,我也找不到任何有用的东西.

I am using some SNMP traps for monitoring of applications. Now I was told that some monitoring systems might have problems if the order of the attributes within the the traps was not the same as defined in the MIB. From the Complexity of the OIDs that could easily be used to re-order the attributes I was surprised by this, so I tried to find the relevant section of the RFC, but I could neither find something that said any ordering is allowed nor anything that said it is important. In other secondary documentation about SNMP I was not able to find anything usefull either.

因此,这更多是一个好奇心问题,但是,这也可能有助于使用SNMP的其他项目.就此问题而言,谁能指出我正确的文档资料.还是某个软件可能会处理这种事情,而其他软件可能不会处理这个问题,我应该检查该软件的实际文档?

So this is more a curiosity question, that could however also help in further projects using SNMP. Could anyone point me to the correct documentation as far as this problem is concerned. Or is this something that one software might handle while other software might not handle this and I should check the actual documentation for that software?

推荐答案

我找到了第3.1.2节指定:

The VARIABLES clause, which need not be present, defines the
ordered sequence of MIB objects which are contained within
every instance of the trap type.  Each variable is placed, in
order, inside the variable-bindings field of the SNMP Trap-
PDU.  Note that at the option of the agent, additional
variables may follow in the variable-bindings field.

感谢向我指出这一点的人.

Thanks to the person who pointed this out to me.

这篇关于SNMP陷阱中的属性顺序重要吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆