13-Network Management and Monitoring Configuration Guide

HomeSupportConfigure & DeployConfiguration GuidesH3C SecPath LB Configuration Guide(V7)(RXX60 E1160)-6W60013-Network Management and Monitoring Configuration Guide
17-Email alerting configuration
Title Size Download
17-Email alerting configuration 78.96 KB

Configuring email alerting

About email alerting

The email alerting feature enables sending alert emails to the specified email addresses (typically, the network administrator) when particular events occur. When an event occurs, the device generates log information. This feature collects the log information and sends it to the network administrator in an email.

The device supports sending alert emails for the following events:

·     Node failure—When a real server fails or recovers from a failure, an alert email is sent. For information about real servers, see server load balancing in Load Balancing Configuration Guide.

·     Link failure—When a link fails or recovers from a failure, an alert email is sent. For information about links, see outbound link load balancing in Load Balancing Configuration Guide.

·     Network attack—When a network attack is detected, an alert email is sent. This event type is not supported in the current software version. For information about network attack types, see attack detection and prevention configuration in Security Configuration Guide.

Restrictions: Hardware compatibility with email alerting

Series

Models

Email alerting compatibility

L5000 series

L5000-C, L5000-S, L5000-E, L5030, L5060, L5080, L5000-AK535

Yes

L1000 series

L1000-C, L1000-S, L1000-M, L1000-E, L1000-AK310, L1000-AK315, L1000-AK320, L1000-AK325, L1000-AK330, L1000-AK390, L1030, L1050, L1070, L1090

Yes

L100 series

L100-C

Yes

Modules

LSU1ADECEA0

Yes

LSWM1ADED0, LSQM1ADEDSC0

No

Configuring the email server

Restrictions and guidelines

Only the SMTP server is supported.

Procedure

1.     Enter system view.

system-view

2.     Create an email server and enter email server view.

email-server server-name

3.     Specify the IP address or domain name of the email server.

email-server host { domain domain-name | ip ip-address }

By default, the IP address or domain name of the email server is not specified.

If you specify a domain name, you must configure DNS to obtain the mapping between the domain name and IP address of the email server. For more information about DNS, see Layer 3—IP Services Configuration Guide.

4.     (Optional.) Specify the port number of the email server.

email-server port port

By default, the port number of the email server is 25.

5.     (Optional.) Enable client authentication.

email-server client-authentication enable

By default, client authentication is disabled.

For the email server to authenticate the device, enable client authentication.

6.     (Optional.) Configure the username and password used by the email server to authenticate the device.

email-server username username password { cipher | simple } password

By default, the username and password are not configured.

If you have enabled client authentication, you must configure the username and password.

Testing the email server

About this task

After configuring the email server, perform this task to test the availability of the email server.

Procedure

1.     Enter system view.

system-view

2.     Enter email server view.

email-server server-name

3.     Test the email server.

email-server test

Configuring email alerting settings

1.     Enter system view.

system-view

2.     Create and enter the email view of the warning type.

send-email type warning

3.     Specify an event type that triggers alerts.

event { link-failure | network-attack | node-failure }

By default, no event trigger is specified.

4.     Specify the SMTP server to send alert emails.

email-server server-name

By default, no SMTP server is specified.

5.     Configure the email subject.

email-subject subject-string

By default, the email subject is not configured.

6.     Configure the email addresses to receive alert emails.

email-recipients mail-address

By default, no recipients' email addresses are configured.

Use semicolons to separate multiple email addresses.

7.     Configure the email address to send alert emails.

email-sender mail-address

By default, no sender's email address is configured.

Only one sender's email address can be configured.

8.     Set the frequency at which alert emails are sent.

email-frequency interval

The default setting is 60 seconds.

9.     Enable email sending.

email-sending enable

By default, email sending is disabled.

Display and maintenance commands for email alerting

Execute display commands in any view.

 

Task

Command

Display the configuration of email servers.

display email-server [ name server-name ]

Display email sending settings.

display send-email [ type warning ]

 

Email alert configuration examples

Example: Configuring email alerting

Network configuration

As shown in Figure 1, configure server load balancing on the device to load balance FTP traffic on the three servers. Configure email alerting to send alert emails to the network administrator ([email protected]) when a server fails.

Figure 1 Network diagram

Procedure

1.     Assign IP addresses to interfaces and configure routes. Make sure the network connections are available. (Details not shown.)

2.     Configure server load balancing.

For more information, see server load balancing in Load Balancing Configuration Guide.

3.     Configure the email server:

# Create an email server and enter email server view.

<Device> system-view

[Device] email-server smtp-server1

# Specify the IPv4 address of the email server as 200.1.1.1.

[Device-email-server-smtp-server1] email-server host ip 200.1.1.1

4.     Test the email server:

# Send a test email to test the availability of the configured email server.

[Device-email-server-smtp-server1] email-server test

Email server is available.

# Return to system view.

[Device-email-server-smtp-server1] quit

5.     Configure email sending settings:

# Create and enter the email view of the warning type.

[Device] send-email type warning

# Configure the node failure event as a trigger for sending alert emails.

[Device-email-warning] event node-failure

# Specify smtp-server1 as the SMTP server for sending alert emails.

[Device-email-warning] email-server smtp-server1

# Configure the email subject as The state of real server.

[Device-email-warning] email-subject The state of real server

# Configure the recipient's email address as [email protected].

[Device-email-warning] email-recipients [email protected]

# Configure the sender's email address as [email protected].

[Device-email-warning] email-sender [email protected]

# Enable email sending.

[Device-email-warning] email-sending enable

[Device-email-warning] quit

Verifying the configuration

# Display the configuration of email server smtp-server1.

[Device] display email-server name smtp-server1

Server name: smtp-server1

  Domain name:

  IPv4 address: 200.1.1.1

  IPv6 address:

  Port number: 25

  Email server client-authentication: Enabled

  Email server username: admin

# Display email sending settings.

<Device> display send-email type warning

Email type: Warning

  Event: node-failure

  Email server: smtp-server1

  Email subject: The state of real server

  Email recipients: [email protected]

  Email sender: [email protected]

  Email sending frequency: 60 sec

  Email sending function state: Enabled

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网