清除SNMP陷阱

时间:2015-12-11 08:41:50

标签: snmp snmp-trap

我正在编写SNMPv2代理并需要发送陷阱。

陷阱正在被罚款但是当条件恢复正常时需要清除陷阱。目前,SNMP接收器保持警报状态,直到手动清除。

我是否已发送另一个OID?我是SNMP的新手。

1 个答案:

答案 0 :(得分:2)

清除逻辑在陷阱接收器端实现。此处的代理任务是为此目的发送另一个SNMP陷阱。最常用的方案是 RFC1157 RFC1215 中定义的 linkDown / linkUp 陷阱:

 linkDown TRAP-TYPE
              ENTERPRISE  snmp
              VARIABLES   { ifIndex }
              DESCRIPTION
                          "A linkDown trap signifies that the sending
                          protocol entity recognizes a failure in one of
                          the communication links represented in the
                          agent's configuration."
              ::= 2

 linkUp TRAP-TYPE
              ENTERPRISE  snmp
              VARIABLES   { ifIndex }
              DESCRIPTION
                          "A linkUp trap signifies that the sending
                          protocol entity recognizes that one of the
                          communication links represented in the agent's
                          configuration has come up."
              ::= 3