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).
add notification trap

add notification trap


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.


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





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.
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:
  • "original": Sends original alarms to a trap server(Trap OID:
  • "all": Sends parsed and original alarms to a trap server.

The default value is "all".

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



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, a USM user must be specified for the system. You can enter the USM user name by configuring the "usm_user_name" parameter. If the "usm_user_name" parameter is not configured, the system will use the default user name "Kaimse". Before running this command, you need to ensure that the USM user to be used exists. If the USM user does not exist, you can run the "add snmp usm" command to create the USM user.


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

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

System Response


Updated: 2019-07-22

Document ID: EDOC1000106139

Views: 369658

Downloads: 245

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next