Oracle® Switch ES2-72 和 Oracle Switch ES2-64 配置指南

退出打印视图

更新时间: 2015 年 4 月
 
 

启用或禁用在接口上生成陷阱

以下任务介绍了如何启用或禁用在物理接口或端口通道接口上生成陷阱。


注 -  有关针对陷阱生成配置 SNMP 管理器的更多信息,请参阅《Oracle ILOM 3.0 日常管理-CLI 过程指南》。
  1. 连接到 SEFOS。

    请参见Connect to SEFOS

  2. 在接口 xl-ethernet 0/1 上禁用 SNMP 陷阱。
    1. 进入全局配置模式。
      SEFOS-1# configure terminal
      
    2. 进入 xl-ethernet 0/1 的接口配置模式。
      SEFOS-1(config)# interface xl-ethernet 0/1
      
    3. 键入以下命令之一:
      SEFOS-1(config-if)# snmp trap link-status
      
      SEFOS-1(config-if)# no snmp trap link-status
      
    4. 退出接口配置模式。
      SEFOS-1(config-if)# end
      
  3. 查看接口 xl-ethernet 0/1 的陷阱状态。
    SEFOS-1# show interface xl-ethernet 0/1
    ...
    Link Up/Down Trap is enabled
    ...
    

    或者,

    SEFOS-1# show interface xl-ethernet 0/1
    ...
    Link Up/Down Trap is disabled
    ...
    

    如果启用了陷阱,则交换机会在发生特定事件(如链路打开、链路关闭等)时向 SNMP 管理器发送陷阱消息。

相关信息