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
提供意見回饋