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 18500 V3 and 18800 V3 Mission Critical 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).
add notification trap

add notification trap

Function

The add notification trap command is used to add a trap server. Run this command if you want to add a trap server for receiving alarms.

Format

add notification trap trap_version=? server_ip=? server_port=? [ trap_type=? ] [ usm_user_name=? ]

Parameters

Parameter

Description

Value

trap_version=? Version of the trap server.

The value can be "v1", "v2c", or "v3", where:

  • "v1": indicates SNMPv1.
  • "v2c": indicates SNMPv2c.
  • "v3": indicates SNMPv3.
NOTE:
To ensure compatibility, the system still supprts SNMPv1 and SNMP v2c. To ensure data security, it is strongly recommended to use SNMPv3.
server_ip=? IP address of the trap server.

-

server_port=? Port ID of the trap server.

The value can be an integer between 1 and 65535.

trap_type=? Type of the trap server.

The value can be "parsed", "original" or "all", where:

  • "parsed": Sends parsed alarms to a trap server(Trap OID:1.3.6.1.4.1.2011.2.91.10.2.1.0.1).
  • "original": Sends original alarms to a trap server(Trap OID:1.3.6.1.4.1.34774.4.1.4.2).
  • "all": Sends parsed and original alarms to a trap server.

The default value is "all".

NOTE:
Parsed and original are two forms of one alarm. An alarm in the original form carries only original alarm parameters, whereas an alarm in the parsed form is readable and processed based on the original form.
usm_user_name=? USM user name of the trap server.

To obtain the value, press "Ctrl+A" or run "show snmp usm" without parameters. The default value is "Kaimse".

Level

Administrator

Usage Guidelines

  • After a trap server is added, the storage system sends alarm information to the specified application sever or maintenance terminal.
  • When "trap_version" is v3, usm_user_name must enter the USM user name obtained by running the "show snmp usm" command. After that, the system will use the configured USM user name to send the SNMPv3 Trap.

Example

Add a trap server and set its version, IP address, port ID, type, and USM user name to "v3", "192.168.9.65", "162", "parsed", and "Kaimse", respectively.

admin:/>add notification trap trap_version=v3 server_ip=192.168.9.65 server_port=162 trap_type=parsed usm_user_name=Kaimse
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-22

Document ID: EDOC1000084078

Views: 303656

Downloads: 253

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