Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SNMP:链路状态变为打开后是否会通知链路关闭陷阱?_Snmp_Net Snmp - Fatal编程技术网

SNMP:链路状态变为打开后是否会通知链路关闭陷阱?

SNMP:链路状态变为打开后是否会通知链路关闭陷阱?,snmp,net-snmp,Snmp,Net Snmp,linkDown陷阱描述说明如下: “linkDown陷阱表示以代理角色行事的SNMPv2实体已检测到其一条通信链路的IfOperaStatus对象离开了down状态并转换为其他状态(但未转换为notPresent状态)。 另一种状态由ifOperStatus的包含值表示。“ 这是否意味着链接关闭警报将在它们启动后得到通知?不是在他们陷入低谷的时候吗 该措辞与最新版本的IF-MIB中的措辞不匹配,后者是最佳来源: DESCRIPTION "A linkDown trap signifies

linkDown陷阱描述说明如下: “linkDown陷阱表示以代理角色行事的SNMPv2实体已检测到其一条通信链路的IfOperaStatus对象离开了down状态并转换为其他状态(但未转换为notPresent状态)。 另一种状态由ifOperStatus的包含值表示。“


这是否意味着链接关闭警报将在它们启动后得到通知?不是在他们陷入低谷的时候吗

该措辞与最新版本的IF-MIB中的措辞不匹配,后者是最佳来源:

DESCRIPTION   "A linkDown trap signifies that the SNMP entity, acting in
        an agent role, has detected that the ifOperStatus object for
        one of its communication links is about to enter the down
        state from some other state (but not from the notPresent
        state).  This other state is indicated by the included value
        of ifOperStatus."
注意,在上面的例子中,它说代理应该在链接即将断开时发送它

然而,我想你会发现大多数代理并不一定很好地支持它。通知可能只有在它停止后才会被发送。从理论上讲,考虑到上面的方法是可行的,但想象一下,由于有人拉了电缆,链接会断开。内核是否将其设置为“关闭”并不重要。它仍然无法通过它传递消息,而且在功能上它已经关闭了

但是,如果接收管理站通过另一个链接连接,它仍然会收到通知