06-告警功能命令
本章节下载: 06-告警功能命令 (151.14 KB)
目 录
1.3.1 alarm-email (CPU | memory | session) threshold <50-100> duration <1-600>
1.3.2 alarm-email traffic threshold
1.3.3 alarm-email ipsec-vpn disconnect
1.3.4 no alarm-email (IPsec-VPN | CPU | memory | session | traffic)
1.4.1 alarm-email receiver LONGSTRING
1.4.2 alarm-email title LONGSTRING
1.4.3 alarm-email send-interval <0-600>
alarm-email enable命令用来启用告警业务,是全局开关。
【命令】
alarm-email enable
【视图】
系统视图
【举例】
# 启用事件告警。
host# system-view
host(config)# alarm-email enable
【相关命令】
· display alarm-email
· display running-config alarm-email
alarm-email disable命令用来停用告警业务。
【命令】
alarm-email disable
【视图】
系统视图
【举例】
# 停用事件告警。
host# system-view
host(config)# alarm-email disable
【相关命令】
· display alarm-email
· display running-config alarm-email
alarm-email (CPU | memory | session) threshold <50-100> duration <1-600> 命令用来启用(CPU|内存|会话|)告警并且配置 (CPU|内存|会话|) 告警条件阈值。
【命令】
alarm-email cpu threshold 50 duration 1
alarm-email memory threshold 50 duration 1
alarm-email session threshold 50 duration 1
【视图】
系统视图
【参数】
CPU:CPU占用过高告警
memory:内存利用率过高告警
session:会话利用率过高告警
<50-100>:CPU、memory、session等告警条件阈值范围,单位为百分比
duration:持续时长关键字
<1-600>:持续时长时间
【举例】
# 配置CPU警告阈值为50%,持续时长1分钟
host# system-view
host(config)# alarm-email cpu threshold 50 duration 1
【相关命令】
· display alarm-email
· display running-config alarm-email
alarm-email traffic threshold <10-10000> duration <1-600> 命令用来开启整机流量告警并且配置整机流量告警条件阈值。
【命令】
alarm-email traffic threshold <10-100000> duration <1-600>
【视图】
系统视图
【参数】
traffic:整机转发流量告警,上行+下行。
<10-10000>:整机流量告警阈值,取值范围为10-10000Mbps。
duration:持续时长关键字。
<1-600>:持续时长时间,取值范围为1-600分钟。
【举例】
# 配置整机流量警告阈值为10Mbps,持续时长1分钟
host# system-view
host(config)# alarm-email traffic threshold 10 duration 1
【相关命令】
· display alarm-email
· display running-config alarm-email
alarm-email ipsec-vpn disconnect命令用来启用IPsec-VPN告警。
【命令】
alarm-email ipsec-vpn disconnect
【视图】
系统视图
【参数】
IPsec-VPN:IPsec-VPN功能的告警
disconnect:IPsec-VPN连接断开
【举例】
# 启用IPsec-VPN告警功能。
host# system-view
host(config)# alarm-email ipsec-vpn disconnect
【相关命令】
· display alarm-email
· display running-config alarm-email
no alarm-email (IPsec-VPN | CPU | memory | session | traffic) 命令用来停用(IPsec-VPN|CPU|内存|会话|整机流量)告警。
【命令】
no alarm-email ipsec-vpn
no alarm-email cpu
no alarm-email memory
no alarm-email session
no alarm-email traffic
【视图】
系统视图
【参数】
IPsec-VPN:IPsec-VPN功能的告警
CPU:CPU占用过高告警
memory:内存利用率过高告警
session:会话利用率过高告警
traffic:整机转发流量告警,上行+下行
disable:停用功能
【举例】
# 停用CPU告警功能。
host# system-view
host(config)# no alarm-email cpu
【相关命令】
· display alarm-email
· display running-config alarm-email
alarm-email receiver LONGSTRING命令用来配置邮箱服务器收件地址。
【命令】
alarm-email receiver LONGSTRING
【视图】
系统视图
【参数】
LONGSTRING:收件地址邮箱
【举例】
# 配置收件地址邮箱[email protected]
host# system-view
host(config)# alarm-email receiver [email protected]
【相关命令】
· display alarm-email
· display running-config alarm-email
alarm-email title LONGSTRING命令用来配置邮箱服务器收件标题。
【命令】
alarm-email title LONGSTRING
【视图】
系统视图
【参数】
LONGSTRING:收件标题
【举例】
# 配置收件标题告警
host# system-view
host(config)# alarm-email title 告警
【相关命令】
· display alarm-email
alarm-email send-interval <0-600>命令用来配置告警间隔。
【命令】
alarm-email send-interval <0-600>
【视图】
系统视图
【参数】
send-interval:告警间隔
【举例】
# 配置告警间隔
host# system-view
host(config)# alarm-email send-interval 1
【相关命令】
· display alarm-email
mail sender Email-addr server SERVER ssl { enable | disable } port PORT [ user user pwd passwd ] 命令用来配置邮箱服务器。
【命令】
mail sender Email-addr server SERVER ssl { enable | disable } port PORT [ user user pwd passwd]
【视图】
系统视图
【参数】
Email-addr:发件人地址,格式如:[email protected],范围为1-31字符。
SERVER:邮件服务器,格式如: smtp.example.com。
enable:启用SSL 邮件服务器。
disable:禁用SSL 邮件服务器。
PORT:邮件服务器端口,范围为1-65535。
user:发送地址。
passwd:发送地址邮箱密码。
【举例】
# 配置邮箱服务器smtp.163..com
host# system-view
host(config)# mail sender mailto:[email protected] server smtp.163.com ssl disable port 25 user [email protected] passwd 123456
【相关命令】
· display mail server
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!