Oracle® Server Management Agent for Oracle Solaris 11.2 用户指南

退出打印视图

更新时间: 2015 年 6 月
 
 

如何配置 SNMP 陷阱

  1. 打开 snmpd.conf 文件进行编辑。
  2. 根据要发送的 SNMP 陷阱版本:
    • 要能够从 Hardware Management Agent 发送 SNMP 版本 1 陷阱,请将以下行添加到 snmpd.conf

      trapsink host communitystring trapport

    • 要能够从 Hardware Management Agent 发送 SNMP 版本 2 陷阱,请将以下行添加到 snmpd.conf

      trap2sink host communitystring trapport

示例 1  设置 SNMP 版本 2 陷阱

下面的示例显示了向 snmpd.conf 文件添加行来使用 SNMP 版本 2 配置 SNMP 陷阱:

trap2sink 10.18.141.22 public 162