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
OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5 storage systems. It describes hardware installation of those storage systems for helping you easily and quickly finish the installation.

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 syslog

change notification syslog

Function

The change notification syslog command is used to set Syslog alarm notification.

Format

change notification syslog { enabled=? | level=? | { ip=? | address=? } | enable_alarm=? | enable_recovery_alarm=? | enable_event=? | enable_send_system_name=? | port=? | channel=? | function_test=? | enable_call_home=? | enable_security_log=? } *

Parameters

Parameter

Description

Value

enabled=? Whether to enable Syslog alarm notification.

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

  • "yes": enables Syslog alarm notification.
  • "no": disables Syslog alarm notification.
The default value is "no".
level=? Lowest alarm severity for a storage system to report alarms.

The value can be "warning", "major", "critical", or "informational".

ip=? IP address of the Syslog server.

A maximum of four Syslog servers can be configured. Separate the server IP addresses with commas (,).

enable_alarm=? Whether to enable Syslog alarm notification.

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

  • "yes": enables Syslog alarm notification.
  • "no": disables Syslog alarm notification.
The default value is "yes".
enable_recovery_alarm=? Whether to enable Syslog alarm clearing notification.

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

  • "yes": enables Syslog alarm clearing notification.
  • "no": disables Syslog alarm clearing notification.
The default value is "no".
enable_event=? Whether to enable Syslog event notification.

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

  • "yes": enables Syslog event notification.
  • "no": disables Syslog event notification.
The default value is "no".
port=? Receiving port of the Syslog server.

The value must be an integer from 1 to 65535. The default value is "514".

enable_send_system_name=? Whether the storage system name is included in Syslog.

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

  • "yes": The storage system name is included in Syslog.
  • "no": The storage system name is not included in Syslog.
The default value is "no".
channel=? Syslog sending channel.

The value can be "UDP" (default), "TCP", or "TLS", where:

  • "UDP": The UDP channel is used.
  • "TCP": The TCP channel is used.
  • "TLS": The TCP encryption channel is used.
address=? Syslog server address.

The value can be a domain name or an IPv4 or IPv6 address. The domain name is a case-insensitive string of 1 to 255 characters, including letters, digits and hyphens (-), and cannot start or end with a hyphen (-). Domain names at various levels are separated by periods (.).

function_test=? Whether to test the connectivity of the Syslog server.

The value can be "yes" or "no" (default), where:

  • "yes": The connectivity of the Syslog server is tested.
  • "no": The connectivity of the Syslog server is not tested.
enable_call_home=? Whether to enable Call Home service Syslog notification.

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

  • "yes": enables the Call Home service Syslog notification.
  • "no": disables the Call Home service Syslog notification.
The default value is "no".
enable_security_log=? Whether to enable security log Syslog notification.

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

  • "yes": enables security log Syslog notification.
  • "no": disables security log Syslog notification.
The default value is "no".

Level

Administrator

Usage Guidelines

When changing Syslog configurations for the first time, you need to set the IP address of the Syslog server and the severity of alarms for which Syslog notifications need to be sent.
  • After configuring Syslog alarm notification, the system will send alarms to the specified application server or maintenance terminal. The display format is as follows:

    Info Receive Time | Facility | Severity | Info

    2013/6/19 10:55:19 | User | Notice | : <186>2015-06-19 10:47:10 xxx.xxx.xxx.xxx Huawei.Storage 240788 0xF00A000C Major(1): Hard disk (Controller Enclosure CTE0, slot 2, serial-number XXXXXXXX) is in single-link state.

    2013/6/19 10:58:53 | User | Notice | : <188>2015-06-19 10:57:44 xxx.xxx.xxx.xxx 241093 0xF0C90001 Warning(1): The license feature (HyperCopy) is going to expire on 2015-08-14.

  • "Info Receive Time" is the time for receiving information, "Facility" is the information source, "Severity" is the information severity, and "Info" is the information content. The first three parameters are defined by the Syslog server. The fields vary with the parsing tool.
  • The value of parameter "Info" is fixed. The first part of parameter "Info" indicates the process that sends messages. It varies with the Syslog protocol version and can be left blank. The information in <> is the prefix of the Syslog protocol and indicates the severity and source of the message. It is defined by the Syslog protocol.
  • "Info" contains the following alarm information:
    • Time when the alarm is generated, for example, 2015-06-19 10:47:10.
    • IP address, IP address of the storage device about which the alarm is generated.
    • System name, system name of the storage device about which the alarm is generated.
    • Alarm SN, SN of the alarm in the storage device. The value ranges from 1 to 4,294,967,295, for example, 240788.
    • Alarm ID, a certain type of alarms, expressed in the hexadecimal format, for example, 0xF00A000C.
    • Alarm severity. Alarm severities include info, warning, major, and critical.
    • Alarm type. Alarm types include event (0), fault alarm (1), recovery alarm (2), operation log (3), and internal event (6). Currently, only event (0), fault alarm (1), and recovery alarm (2) support Syslog.
    • Alarm information, for example, "The license feature (HyperCopy) is going to expire on 2015-08-14."
  • The parameters IP and address are exclusive from each other. The parameter IP can be an IPv4 or IPv6 address. The parameter address can be a domain name or an IP address (IPv4 or IPv6).
  • If function_test is yes, the test is performed but the Syslog configuration is not modified after the command is executed.
  • If enable_call_home=yes, the system automatically sends file messages returned by the array to the cloud to the Syslog server.
  • If enable_security_log=yes, the system automatically sends security logs to the Syslog server.

Example

  • Set the Syslog server IP address to "192.168.8.211" and lowest alarm severity for a storage system to report alarms to "critical", enable Syslog alarm notification, and write the storage system name to Syslog.

    admin:/>change notification syslog enabled=yes ip=192.168.8.211 level=critical enable_alarm=yes enable_send_system_name=yes
    Command executed successfully.
  • Test the connectivity of the Syslog server. The IP address of the server is "192.168.8.211", the receiving port number is "514", and the sending channel is "UDP".

    admin:/>change notification syslog address=192.168.8.211 port=514 channel=UDP function_test=yes
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2020-03-19

Document ID: EDOC1000181601

Views: 406302

Downloads: 56

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next