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

FusionServer Pro E9000 Server iBMC (Earlier Than V250) User Guide 31

This document describes the underlying management software Intelligent Baseboard Management Controller (iBMC) of the servers.
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).
Trap Commands

Trap Commands

This topic describes the trap commands.

Querying and Setting the SNMP Trap State (trap -d state)

Function

The trap -d state command is used to query and set the SNMP trap state.

Format

ipmcget -t trap -d state [-v destination]

ipmcset -t trap -d state -v [destination] <disabled | enabled>

Parameters

Parameter Description Value

destination

Identifies an SNMP trap destination.

  • Value range: 1 to 4

  • If this parameter is not specified, the command is used to set the trap function.

disabled

Disables SNMP trap.

-

enabled

Enables SNMP trap.

-

Usage Guidelines

Switch modules do not support this command.

  • To set trap for a specific channel, specify destination. The value range of destination is 1 to 4.

  • To enable or disable the trap function, leave destination unspecified.

Example

# Disable SNMP trap destination 1.

iBMC:/->ipmcset -t trap -d state -v 1 disabled 
Set trap dest1 disabled successfully. 

# Query the state of SNMP trap destination 1.

iBMC:/->ipmcget -t trap -d state -v 1 
trap dest1 state : disabled 

Setting the SNMP Trap Port Number (trap -d port)

Function

The trap -d port command is used to set the SNMP trap port number of the iBMC.

Format

ipmcset -t trap -d port -v <destN> <portvalue>

Parameters

Parameter Description Value
destN Indicates the item number of the SNMP trap. 1 to 4
portvalue Indicates the SNMP trap port number. The default SNMP trap port number is 162. The port number range is 1 to 65535.

Usage Guidelines

The switch module does not support the command.

Example

# Set the SNMP trap item 1 port number to 1024.

iBMC:/->ipmcset -t trap -d port -v 1 1024
Set trap dest1 port successfully.

Setting the Community Name of SNMP Trap (trap -d community)

Function

The trap -d community command is used to set the Simple Network Management Protocol (SNMP) trap community name of the iBMC.

Format

ipmcset -t trap -d community

Parameters

Parameter Description Value
Community Specifies the SNMP trap community name.

Default value: TrapAdmin12#$

If the password complexity check function is disabled, the community name is a string of 1 to 18 characters, including digits, letters, and special characters except spaces.

When the password complexity check function is enabled, the community name must meet the following requirements:
  • Must contain 8 to 18 characters.
  • Must contain at least one of the following special characters:

    `~!@#$%^&*()-_=+\|[{}];:'",<.>/?

  • Must contain at least two types of the following characters:
    • Uppercase letters: A to Z
    • Lowercase letters: a to z
    • Digits: 0 to 9
  • Must not contain spaces.

Usage Guidelines

The switch module does not support the command.

Example

# Set the SNMP trap community name to mytrap.

iBMC:/->ipmcset -t trap -d community
New Community:
Confirm Community:
Set SNMP trap community successfully.

Setting the IP Address of SNMP Trap (trap -d address)

Function

The trap -d address command is used to set the SNMP trap IP address.

Format

ipmcset -t trap -d address -v destN ipaddr

Parameters

Parameter Description Value
destN Indicates the item number of the SNMP trap. 1 to 4
ipaddr Indicates the IP address for receiving SNMP trap. The value is of IPv4 or IPv6 type and in the format of xxx.xxx.xxx.xxx or xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx.

Usage Guidelines

The switch module does not support the command.

Example

# Set the IP address for receiving SNMP trap, that is, 10.10.10.10.

iBMC:/->ipmcset -t trap -d address -v 1 10.10.10.10
Set trap dest1 address successfully.

Querying Information About SNMP Trap Receiving (trap -d trapiteminfo)

Function

The trap -d trapiteminfo command is used to query information about SNMP trap receiving, including the IP address, port, and status (enabled or disabled).

Format

ipmcget -t trap -d trapiteminfo

Parameters

None

Usage Guidelines

The switch module does not support the command.

Example

# Query information about SNMP trap receiving.

iBMC:/->ipmcget -t trap -d trapiteminfo

TrapItem Num    | state      | port       | alert address
1               | enabled    | 1024       | 10.10.10.10
2               | disabled   | 162        |
3               | disabled   | 162        |
4               | disabled   | 162        |

Querying and Setting the SNMP Trap Version (trap -d version)

Function

The trap -d version command is used to query and set the SNMP trap version.

Format

ipmcget -t trap -d version

ipmcset -t trap -d version -v <V1 | V2C | V3>

Parameters

Parameter Description Value
V1 The SNMP trap version is V1. -
V2C The SNMP trap version is V2C. -
V3 The SNMP trap version is V3. -

Usage Guidelines

The switch module does not support the command.

The default value is V1.

Example

# Set the SNMP trap version to V2C.

iBMC:/->ipmcset -t trap -d version -v V2C
Set trap V2C success.
NOTE:
SNMPv1 and SNMPv2c may cause security risks due to their own mechanisms. Avoid using them when possible. SNMPv3 trap is recommended.

# Query the current SNMP trap version.

iBMC:/->ipmcget -t trap -d version
Trap version : V2C

Querying and Setting the SNMP Trap Alarm Severity (trap -d severity)

Function

The trap -d severity command is used to query and set the SNMP trap alarm severity.

Format

ipmcget -t trap -d severity

ipmcset -t trap -d severity -v <level>

Parameters

Parameter

Description

Value

severityvalue

Indicates the SNMP trap alarm severity.

  • none: no alarm to be sent.
  • all: all alarms and events to be sent.
  • normal: events to be sent.
  • minor: minor alarms to be sent.
  • major: major alarms to be sent.
  • critical: critical alarms to be sent.

Usage Guidelines

The switch module does not support the command.

You can set more than one level at the same time, just as ipmcset -t trap -d severity -v normal minor.

Example

# Set the SNMP trap alarm severity to minor.

iBMC:/->ipmcset -t trap -d severity -v minor
Set trap severity successfully.

# Query the current SNMP trap alarm severity.

iBMC:/->ipmcget -t trap -d severity
Trap severity :  minor

Querying and Setting the SNMP Trap V3 User (trap -d user)

Function

The trap -d user command is used to query and set the SNMP trap V3 user.

Format

ipmcget -t trap -d user

ipmcset -t trap -d user -v username

Parameters

Parameter Description Value
username

Indicates the SNMP trap V3 user.

Existing user.

Usage Guidelines

The switch module does not support the command.

You need to configure the same username and password in the management workstation.

By default, the SNMP trap V3 user is root.

Example

# Set the SNMP trap V3 user.

iBMC:/->ipmcset -t trap -d user -v root
Set trap user root successfully.

# Query the current SNMP trap V3 user.

iBMC:/->ipmcget -t trap -d user
Trap user : root

Querying and Setting the SNMP Trap V3 Authentication and Privacy Protocols (trap -d protocol)

Function

The trap -d protocol command is used to query and set the authentication and privacy protocols for SNMP trap V3.

Format

ipmcget -t trap -d protocol

ipmcset -t trap -d protocol -v <option>

Parameters

Parameter Description Value
option Indicates the authentication and privacy protocols for SNMP trap V3.
  • 1: the authentication protocol is MD5, and the privacy protocol is DES.
  • 2: the authentication protocol is MD5, and the privacy protocol is AES.
  • 3: the authentication protocol is SHA, and the privacy protocol is DES.
  • 4: the authentication protocol is SHA, and the privacy protocol is AES.

Usage Guidelines

The switch module does not support the command.

  • You need to configure the same protocol in the management workstation.

  • The setting is take effect for SNMP V3 at the same time.
  • MD5 and DES have security risks. You are advised to use SHA and AES.

Example

# Set the SNMP trap V3 authentication and privacy protocol.

iBMC:/->ipmcset -t trap -d protocol -v 4
Set SNMP trap authentication and privacy protocol successfully.

# Query the current SNMP trap V3 authentication and privacy protocol.

iBMC:/->ipmcget -t trap -d protocol
Trap protocol      :
   Authentication  : SHA
   Privacy         : AES

Querying and Setting the SNMP Trap Mode (trap -d mode)

Function

The trap -d mode command enables you to query and set the SNMP trap mode.

Format

ipmcget -t trap -d mode

ipmcset -t trap -d mode -v option

Parameters

Parameter

Description

Value

option

Indicates the SNMP trap mode.

  • 0 indicates the SNMP trap mode is Event Code.
  • 1 indicates the SNMP trap mode is OID.

Usage Guidelines

The switch module does not support the command.

Alarms reported in OID mode contain more detailed parameters than the Event Code mode. For details about the OIDs, see Huawei Server iBMC Intelligent Management System SNMP API Description.

Example

# Set the SNMP trap mode to Event Code.

iBMC:/->ipmcset -t trap -d mode -v 0
Set trap mode Event Code success.

# Query the current SNMP trap mode.

iBMC:/->ipmcget -t trap -d mode
Trap mode: Event Code
Translation
Download
Updated: 2019-08-01

Document ID: EDOC1000058833

Views: 206116

Downloads: 1935

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