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


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


OceanStor 2200 V3 and 2600 V3 Storage System V300R005 Command Reference 06

"Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese commands."
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


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.


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





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.


smtp_server_domain_name=? Domain name of the SMTP server.

The domain name consists of 2 to 255 case-insensitive letters, digits, and hyphens (-).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.
This parameter can be specified when "authentication" is set to "yes".

The value consists of 1 to 63 ASCII characters except single quotation marks('), double quotation marks (") and question mark (?).

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

The value consists of 1 to 63 ASCII characters except question mark (?).

receiver_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.

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.
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.



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



    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.


Enabling the email notification function. The outbox is "", the SMTP server is "", 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= auth_enabled=yes user=admin password=****** ssl_enabled=yes smtp_server_port=4232 function_test=no
Change configuration successfully.

System Response


Updated: 2019-07-22

Document ID: EDOC1000106139

Views: 317754

Downloads: 210

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