No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference 10

OceanStor 5300 V3, 5500 V3, 5600 V3, 5800 V3, and 6800 V3 Storage System V300R003

"Based on the CLI, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions."
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
change notification email

change notification email

Function

The change notification email command is used to enable the email notification function and set notification mailboxes. Use this command when you want to enable the storage system to automatically send alarm notifications to a specified mailbox.

Format

change notification email enabled=? { smtp_server_ip=? | smtp_server_domain_name=? } sender=? auth_enabled=? user=? password=? reciver_email_list=? ssl_enabled=? smtp_server_port=? [ function_test=? ]

Parameters

Parameter

Description

Value

enabled=? Whether to enable the email notification function.

The value can be "yes" or "no", where

  • "yes": enables the email alarm notification function.
  • "no": disables the email-based alarm notification function.
The default value is "no".
smtp_server_ip=? IP address of the SMTP server.

IPV4 or IPV6 address.

smtp_server_domain_name=? Domain name of the SMTP server.

The domain name contains 1 to 255 case-insensitive letters, digits, and hyphens (-). Each level of the domain name contains a maximum of 63 characters. Domain names at various levels are separated by periods (.) and cannot start or end with a hyphen (-). The top-level domain name cannot contain digits only.

sender=? Outbox of alarm notification emails.

The value consists of 5 to 255 ASCII characters.

auth_enabled=? Whether the SMTP server must be verified by a user.

The value can be "yes" or "no", where

  • "yes": Verification is required.
  • "no": Verification is not required.
user=? User that logs in to the SMTP server.
NOTE:
This parameter can be specified when "authentication" is set to "yes".

The value consists of 1 to 63 ASCII characters except single quotation marks(').

password=? Password of the user that logs in to the SMTP server.
NOTE:
This parameter can be specified when "authentication" is set to "yes".

The value consists of 1 to 63 ASCII characters.

reciver_email_list=? Inbox of alarm notification emails.

Multiple email addresses can be specified. Separate email addresses for alarms of different severities with commas (,) and put the email addresses in the order of critical, major, and warning. Separate the email addresses for alarms of the same severity with colons (;). Each email address is 5 to 255 characters in length. A maximum of 64 email addresses can be configured for alarms of the same severity.

ssl_enabled=? Whether to enable SSL on the SMTP server.

The value can be "yes" or "no", where

  • "yes": To enable SSL.
  • "no": To disable SSL.
NOTE:
To ensure secure data transmission, you are advised to use Secure Sockets Layer(SSL) encryption.
smtp_server_port=? Port number of the SMTP server.

The value is an integer between 1 and 65535.

function_test=? Whether to send a test email after the command is executed.

The value can be "yes" or "no", where

  • "yes": To send the test email.
  • "no": Not to send the test email.

Level

Administrator

Usage Guidelines

The command is used to configure only one mail server. The "add smtp_server general", "remove smtp_server general", "change smtp_server config", and "show smtp_server general" commands are used to configure two mail servers. You are advised to use the preceding four commands to configure mail servers for alarm notification.

  • Before running this command, configure an SMTP server and a valid SMTP account.
  • A maximum of 64 email addresses can be configured for alarms of the same severity.
  • After alarm notification by email is configured, the system sends alarms to specified mailboxes by email. The email format is as follows:

    Dear OceanStor S5600T users:

    System Name: Huawei.Storage

    Location: China

    Customer Info: ClientName

    ESN: XXXXXXXXXXXXXXXXXXXX

    ID: 0x1FFFFFFFFFFFFFFB

    Level: Informational

    Occurred At: 2015-06-23 15:58:53

    Details: This is a test message.

    Suggestions: N/A

  • Each part of the email content is defined as follows:
    • Manufacturer and product type, for example, OceanStor S5600T.
    • Device name, for example, Huawei.Storage.
    • Client of the storage system, for example, ClientName.
    • Device SN, for example, XXXXXXXXXXXXXXXXXXXX.
    • Alarm ID, which indicates a certain type of alarm, expressed in the hexadecimal format, for example, 0x1FFFFFFFFFFFFFFB.
    • Alarm severity. Alarm severities include info, warning, major, and critical.
    • Time when an alarm occurs, for example, 2015-06-23 15:03:36.
    • Alarm description, for example, "This Is A Test Message.".
    • Alarm clearance suggestion, for example, N/A.

Example

Enabling the email notification function. The outbox is "a@b.com", the SMTP server address is "192.168.3.3", the port is "4232", "SSL" is used, and the server that sends email notifications must be verified by user "admin" with the password of "123456".

admin:/>change notification email enabled=yes smtp_server_ip=192.168.3.3 sender=a@b.com auth_enabled=yes user=admin password=****** reciver_email_list=c@d.com ssl_enabled=yes smtp_server_port=4232 function_test=no
Change configuration successfully.

System Response

None

Translation
Download
Updated: 2019-04-04

Document ID: EDOC1000084195

Views: 299486

Downloads: 1561

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next