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

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

Identifies an SNMP trap destination.

Value range: 1 to 4
portvalue Specifies the SNMP trap port number.

Value range: 1 to 65535

Default value: 162

Usage Guidelines

Switch modules do not support this command.

Example

# Set the port number for SNMP trap destination 1 to 1024.

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

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

Function

The trap -d community command is used to set the SNMP trap community name.

Format

ipmcset -t trap -d community

Parameters

Parameter Description Value
Community Specifies the SNMP trap community string.

Default value: TrapAdmin12#$

The value range varies depending on whether password complexity check is enabled.

  • If password complexity check is disabled, the value is a string of 1 to 18 characters consisting of letters, digits, and special characters (excluding spaces).
  • If password complexity check is enabled, the value must meet the following requirements:
    • Contain 8 to 18 characters
    • Contain at least two of the following: uppercase letters A to Z, lowercase letters a to z, digits 0 to 9
    • Contain at least one of the following special characters: `~!@#$%^&*()-_=+\|[{}];:'",<.>/?
    • Cannot contain spaces.

Usage Guidelines

Switch modules do not support this 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 SNMP Trap IP Address (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

Identifies an SNMP trap destination.

1 to 4
ipaddr Specifies the IP address for receiving SNMP trap messages. An IPv4 address in the dotted-decimal format xxx.xxx.xxx.xxx or an IPv6 address in the xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx format

Usage Guidelines

Switch modules do not support this command.

Example

# Set the IP address for receiving SNMP trap messages to 10.10.10.10.

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

Querying SNMP Trap Destination Information (trap -d trapiteminfo)

Function

The trap -d trapiteminfo command is used to query SNMP trap destination information, which includes the SNMP trap state, IP address, and port number.

Format

ipmcget -t trap -d trapiteminfo

Parameters

None

Usage Guidelines

Switch modules do not support this command.

Example

# Query SNMP trap destination information.

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 Indicates SNMPv1. -
V2C Indicates SNMPv2c. -
V3 Indicates SNMPv3. -

Usage Guidelines

Switch modules do not support this command.

The default value is V1. However, V3 is recommended. Exercise caution when using V1 and V2C, because they pose security risks.

Example

# Set the SNMP trap version to SNMPv2c.

iBMC:/->ipmcset -t trap -d version -v V2C
Set trap V2C success.

# Query the SNMP trap version.

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

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

Function

The trap -d severity command is used to query and set the severities of alarms to be sent through SNMP trap messages.

Format

ipmcget -t trap -d severity

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

Parameters

Parameter

Description

Value

level

Specifies the severities of alarms to be sent through SNMP trap messages.

  • none: No alarm is sent.
  • all: All alarms and events are sent.
  • normal: Only events are sent.
  • minor: Only minor alarms are sent.
  • major: Only major alarms are sent.
  • critical: Only critical alarms are sent.

Usage Guidelines

Switch modules do not support this command.

Multiple severities can be specified, for example, ipmcset -t trap -d severity -v normal minor.

Example

# Enable minor alarms to be sent through SNMP trap messages.

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

# Query the severity of the alarms sent through SNMP trap messages.

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

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

Function

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

Format

ipmcget -t trap -d user

ipmcset -t trap -d user -v <username>

Parameters

Parameter Description Value
username

Indicates the SNMPv3 trap user.

It must be a user name that has been defined already.

Usage Guidelines

Switch modules do not support this command.

The same user name and password must be configured on the SNMP network management station (NMS).

The default SNMPv3 user is root.

Example

# Set the SNMPv3 trap user to root.

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

# Query the SNMPv3 trap 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 SNMPv3 trap.

Format

ipmcget -t trap -d protocol

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

Parameters

Parameter Description Value
option Specifies the authentication and privacy protocols for SNMPv3 trap.
  • 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.

Default value: 4

Usage Guidelines

Switch modules do not support this command.

  • The same authentication and privacy protocols must be configured on the SNMP server.

  • The configured authentication and privacy protocols also apply to SNMPv3 at the same time.
  • Using MD5 and DES may pose security risks. You are advised to use SHA and AES.

Example

# Set the SNMPv3 trap authentication and privacy protocols.

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

# Query the SNMPv3 trap authentication and privacy protocols.

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: Event Code
  • 1: OID

Usage Guidelines

Switch modules do not support this command.

Alarms reported in OID mode contain more detailed information than those reported in the Event Code mode. For details, 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 SNMP trap mode.

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

Document ID: EDOC1000058833

Views: 218092

Downloads: 1936

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