跳到主要内容

snmpalerts 命令

使用此命令可管理通过 SNMP 发送的警报。

运行不带任何选项的 snmpalerts 将显示所有 SNMP 警报设置。下表显示选项的参数。

表 1. snmpalerts 命令.

下表是一个多行三列表格,包含选项、选项描述和选项关联值的信息。

选项描述
-statusSNMP 警报状态on 和 off
-crt设置发送警报的紧急事件all、none、custom:te|vo|po|di|fa|cp|me|in|re|ot

定制紧急警报设置使用竖线分隔的值列表指定,格式为 snmpalerts -crt custom:te|vo,其中 custom 值为:

  • te:超过临界温度阈值
  • vo:超过临界电压阈值
  • po:紧急电源故障
  • di:硬盘故障
  • fa:风扇故障
  • cp:微处理器故障
  • me:内存故障
  • in:硬件不兼容
  • re:电源冗余故障
  • ot:所有其他紧急事件
-crten发送紧急事件警报enabled、disabled
-wrn设置发送警报的警告事件all、none、custom:rp|te|vo|po|fa|cp|me|ot

定制警告警报设置使用竖线分隔的值列表指定,格式为 snmpalerts -wrn custom:rp|te,其中 custom 值为:

  • rp:电源冗余警告
  • te:超过警告温度阈值
  • vo:超过警告电压阈值
  • po:超过警告功率阈值
  • fa:非紧急风扇事件
  • cp:微处理器处于降级状态
  • me:内存警告
  • ot:所有其他警告事件
-wrnen发送警告事件警报enabled、disabled
-sys设置发送警报的常规事件all、none、custom:lo|tio|ot|po|bf|til|pf|el|ne

定制常规警报设置使用竖线分隔的值列表指定,格式为 snmpalerts -sys custom:lo|tio,其中 custom 值为:

  • lo:成功的远程登录
  • tio:操作系统超时
  • ot:所有其他参考和系统事件
  • po:系统打开/关闭电源
  • bf:操作系统引导失败
  • til:操作系统装入程序看守程序超时
  • pf:预测故障(PFA)
  • el:事件日志 75% 已满
  • ne:网络更改
-sysen发送常规事件警报enabled、disabled
语法:
snmpalerts [<em className="ph i">options</em>]
options:
-status <em className="ph i">status</em>
-crt <em className="ph i">event_type</em>
-crten <em className="ph i">state</em>
-wrn <em className="ph i">event_type</em>
-wrnen <em className="ph i">state</em>
-sys <em className="ph i">event_type</em>
-sysen <em className="ph i">state</em>