alertentries 命令
使用此命令可管理警报接收方。
注
- 不带任何选项的 alertentries 可显示所有警报条目设置。
- alertentries -number -test 针对给定的接收方索引号生成测试警报。
- alertentries -number(其中数字为 0 - 12)显示指定接收方索引号的警报条目设置,或支持修改该接收方的警报设置。
语法:
alertentries [-options]
选项 | 描述 | 值 |
---|---|---|
-[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,其中自定义值为:
|
-wrn | 设置发送警报的警告事件 | all, none, custom:rp|te|vo|po|fa|cp|me|pc|ot 自定义警告警报设置使用以竖线分隔的值列表来指定,格式为 alertentries -wrn custom:rp|te,其中自定义值为:
|
-sys | 设置发送警报的常规事件 | all, none, custom:lo|tio|ot|po|bf|til|pf|ne|au|nl|dh 自定义常规警报设置使用以竖线分隔的值列表来指定,格式为 alertentries -sys custom:lo|tio,其中自定义值为:
|
示例:
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
提供反馈