• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

04-系统管理命令参考

目录

06-告警功能命令

本章节下载 06-告警功能命令  (151.14 KB)

docurl=/cn/Service/Document_Software/Document_Center/Home/Security/00-Public/Command/Command_Manual/ACG1000_CR(R6612_E6453)/04/202104/1406772_30005_0.htm

06-告警功能命令


1 Alarm-email

1.1  enable

alarm-email enable命令用来启用告警业务,是全局开关。

【命令】

alarm-email enable

【视图】

系统视图

【举例】

# 启用事件告警。

host# system-view

host(config)# alarm-email enable

【相关命令】

·     display alarm-email

·     display running-config alarm-email

1.2  disable

alarm-email disable命令用来停用告警业务。

【命令】

alarm-email disable

【视图】

系统视图

【举例】

# 停用事件告警。

host# system-view

host(config)# alarm-email disable

【相关命令】

·     display alarm-email

·     display running-config alarm-email

1.3  alarm-email

1.3.1  alarm-email (CPU | memory | session) threshold <50-100> duration <1-600>

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

【视图】

系统视图

【参数】

CPUCPU占用过高告警

memory内存利用率过高告警

session会话利用率过高告警

<50-100>CPUmemorysession等告警条件阈值范围,单位为百分比

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

1.3.2  alarm-email traffic threshold

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

1.3.3  alarm-email ipsec-vpn disconnect

alarm-email ipsec-vpn disconnect命令用来启用IPsec-VPN告警。

【命令】

alarm-email ipsec-vpn disconnect

【视图】

系统视图

【参数】

IPsec-VPNIPsec-VPN功能的告警

disconnectIPsec-VPN连接断开

【举例】

# 启用IPsec-VPN告警功能。

host# system-view

host(config)# alarm-email ipsec-vpn disconnect

【相关命令】

·     display alarm-email

·     display running-config alarm-email

1.3.4  no alarm-email (IPsec-VPN | CPU | memory | session | traffic)

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-VPNIPsec-VPN功能的告警

CPUCPU占用过高告警

memory内存利用率过高告警

session会话利用率过高告警

traffic整机转发流量告警,上行+下行

disable停用功能

【举例】

# 停用CPU告警功能。

host# system-view

host(config)# no alarm-email cpu

【相关命令】

·     display alarm-email

·     display running-config alarm-email

1.4  email

1.4.1  alarm-email receiver LONGSTRING

alarm-email receiver LONGSTRING命令用来配置邮箱服务器收件地址。

【命令】

alarm-email receiver LONGSTRING

【视图】

系统视图

【参数】

LONGSTRING收件地址邮箱

【举例】

# 配置收件地址邮箱example@example.com

host# system-view

host(config)# alarm-email receiver example@example.com

【相关命令】

·     display alarm-email

·     display running-config alarm-email

1.4.2  alarm-email title LONGSTRING

alarm-email title LONGSTRING命令用来配置邮箱服务器收件标题。

【命令】

alarm-email title LONGSTRING

【视图】

系统视图

【参数】

LONGSTRING收件标题

【举例】

# 配置收件标题告警

host# system-view

host(config)# alarm-email title 告警

【相关命令】

·     display alarm-email

1.4.3  alarm-email send-interval <0-600>

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

1.5  mail sender

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:发件人地址,格式如:user@example.com,范围为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:test@163.com server smtp.163.com ssl disable port 25 user example@163.com passwd 123456

【相关命令】

·     display mail server

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们