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

OceanStor 9000 V5 7.0 Command Reference 03

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 log reporting by syslog.

Format

change notification syslog <enabled=?>[address=?][level=?][enable_alarm=?][enable_recovery_alarm=?] [enable_oplog =?]

Parameters

Parameter

Description

Value

enabled Whether log reporting by syslog is enabled.

The value can be enable or disable. The meanings of the values are as follows:

1. enable: to enable log reporting by syslog.

2. disable: to disable log reporting by syslog.

address syslog server address.

The value contains the protocol supported by syslog, the IPv4 or IPv6 address or domain name of the server, and the receiving port of the server. The format is protocol type,IP address or domain name,port number;protocol type,IP address or domain name,port number. The protocol supported by syslog can be UDP, TCP or TLS. The domain name contains 1 to 255 characters chosen from letters (case insensitive), digits, and hyphens (-). Domain names at different levels are separated by periods (.). The domain name cannot start or end with a hyphen (-). The value of the server receiving port ranges from 0 to 65535.

Note: Four addresses can be set at most. When log reporting by syslog is enabled, setting parameters for the first time without delivering addresses will cause CLI commands to fail to be executed. And note that TCP and TLS cannot be set at the same time.

level Minimum severity set for reporting alarms.

The value can be:

1. critical.

2. major.

3. minor.

4. warning.

5. informational.

enable_alarm Whether alarm reporting by syslog is enabled.

The value can be enable or disable. The meanings of the values are as follows:

1. enable: to enable alarm reporting by syslog

2. disable: to disable alarm reporting by syslog

The default value is enable.

enable_recovery_alarm Whether recovery alarm reporting by syslog is enabled.

The value can be enable or disable. The meanings of the values are as follows:

1. enable: to enable recovery alarm reporting by syslog.

2. disable: to disable recovery alarm reporting by syslog.

The default value is enable.

enable_oplog Whether operation log reporting by syslog is enabled.

The value can be enable or disable. The meanings of the values are as follows:

1. enable: to enable operation log reporting by syslog.

2. disable: to disable syslog operation log reporting by syslog.

The default value is enable.

Level

Administrator

Usage Guidelines

NOTE:
If a command is delivered indicating starting the syslog service, you need to set the syslog server address.

After log reporting by syslog is configured, logs will be reported to a specified application server or maintenance terminal. The log format is as follows:

Info Receive Time | Facility | Severity | Info

  • Info Receive Time indicates when the syslog server receives information, Facility indicates the information source, Severity indicates the information severity, and Info indicates the information content. Info Receive Time is defined by the syslog server and may vary depending on parsing tools.
  • The content of Info is in a fixed format, including alarm information about storage arrays, as follows:
    • Time when an alarm occurs, for example, 2018-01-15 02:44:12.
    • Device name, indicating the name of the storage device where the alarm occurs.
    • Alarm SN.
    • Alarm ID, indicating a certain type of alarm, in the hexadecimal format.
    • Alarm severity, including informational, warning, minor, major, and critical
    • Alarm type, including alarm (0), recovery (2), and operation log (3).
    • Alarm content.

Example

  • Enable the reporting of logs of all types and levels by syslog. syslog server 1 (address: 192.168.0.1) receives logs through port UDP 514, and syslog server 2 (address: www.huawei.com) receives logs through port TCP 524.

    admin:/>change notification syslog enable address=UDP,192.168.0.1,514;TCP,www.huawei.com,524 level=informational enable_alarm=enable enable_recovery_alarm=enable enable_oplog=enable
    Command executed successfully.
  • The original addresses of the syslog server are UDP,192.168.0.1,514 and TCP,192.168.0.2,524. You need to change the port of server 192.168.0.2 to port 514.

    admin:/>change notification syslog address=UDP,192.168.0.1,514;TCP,192.168.0.2,514
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-05-07

Document ID: EDOC1100067955

Views: 24484

Downloads: 7

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