跳到主要内容

alertentries 命令

使用此命令可管理警报接收方。

  • 不带任何选项的 alertentries 可显示所有警报条目设置。
  • alertentries -number -test 针对给定的接收方索引号生成测试警报。
  • alertentries -number(其中数字为 0 - 12)显示指定接收方索引号的警报条目设置,或支持修改该接收方的警报设置。
语法:
alertentries [-options]
表 1. alertentries 命令
选项描述
-[number]要显示、添加、修改或删除的警报接收方索引号1 到 12
-type警报类型email, syslog
-status警报接收方状态on, off
-log在警报电子邮件中提供事件日志on, off
-n [name]警报接收方名称字符串
-e [email_address]警报接收方电子邮件地址有效的电子邮件地址
-del删除指定的接收方索引号 
-test向指定的接收方索引号生成测试警报 
-ip [ipaddr|hostName]Syslog IP 地址或主机名有效的 IP 地址或主机名
-pn [port_number]Syslog 端口号有效端口号
-crt设置发送警报的紧急事件all, none, custom:te|vo|po|di|fa|cp|me|in|re|pc|ot

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

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

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

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

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

  • lo:远程登录成功
  • tio:操作系统超时
  • ot:所有其他参考事件和系统事件
  • po:系统电源开启/关闭
  • bf:操作系统引导失败
  • til:操作系统装入程序看守程序超时
  • pf:预测故障(PFA)
  • ne:网络更改
  • au:所有其他审核事件
  • nl:主机 NIC 链路中断/连接
  • dh:硬盘热插拔
示例:
system> alertentries
1. email
2. syslog
3. <not used>
4. <not used>
5. <not used>
6. <not used>
7. <not used>
8. <not used>
9. <not used>
10. <not used>
11. <not used>
12. <not used>

system> alertentries -2
-type: syslog
-status: on
-log: off
-n: syslog
-e:
-ip: 12.12.1.2
-pn: 514
-crt: all
-wrn: custom:rp|te|vo|po|fa|cp|me|pc
-sys: all