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

S12700 V200R013C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related 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).
Fault Management Commands

Fault Management Commands

Command Support

Commands provided in this section and all the parameters in the commands are supported by all switch models by default, unless otherwise specified. For details, see specific commands.

alarm (system view)

Function

Using the alarm command, you can enter the alarm view.

Format

alarm

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

After running the alarm command to enter the alarm view, you can configuration alarm management functions.

Example

# Enter the alarm view.

<HUAWEI> system-view
[HUAWEI] alarm
[HUAWEI-alarm]

alarm-name severity

Function

The alarm-name severity command sets the severity for an alarm.

The undo alarm-name severity command restores the default setting.

By default, each alarm has a default severity.

Format

alarm-name alarm-name severity severity

undo alarm-name alarm-name severity

Parameters

Parameter Description Value
alarm-name Specifies the registered alarm name.

The value is a string and varies according to the registered device type. To view registered alarm information, run the display alarm information command.

severity severity Specifies the alarm severity.
The value is of enumerated type. Alarms are classified into the following severities:
  • critical: indicates that a fault affecting services has occurred and it must be rectified immediately.
  • major: indicates that services are being affected and related measures need to be taken urgently.
  • minor: indicates that a fault occurs but does not affect services. To avoid more serious faults that affect services, related measures must be taken.
  • warning: indicates that a potential or impending service-affecting fault is detected before any significant effect has been felt. Take corrective actions to diagnose and rectify the fault.
  • indeterminate: indicates that the alarm severity cannot be determined.
  • cleared: indicates one or more previous alarm conditions have been cleared.

Views

Alarm view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can run the alarm-name severity command to raise or lower the level of an alarm based on the severity and emergency of the alarm. However, the level of a clear alarm cannot be changed unless during the configuration restoration period. You can configure filtering conditions to allow the NMS to receive only alarms of specified alarm severity.

Precautions

The default severity of each alarm is different. To view the default severity of an alarm, run the undo alarm-name severity and display alarm information commands in sequence.

Example

# Set the severity of the hwSysSlaveHDError alarm to warning.

<HUAWEI> system-view
[HUAWEI] alarm
[HUAWEI-alarm] alarm-name hwSysSlaveHDError severity warning

clear alarm active

Function

The clear alarm active command clears active alarms.

Format

clear alarm active { all | sequence-number sequence-number }

Parameters

Parameter Description Value
all Clears all active alarms. -
sequence-number sequence-number Specifies the sequence number of an active alarm.

The value is an integer ranging from 1 to 2147483647.

Views

Alarm view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Before collecting statistics on alarms generated on the device again, run the clear alarm active to clear active alarms.

Precautions

After the clear alarm active command is used, all active alarms on the device are deleted and cannot be restored.

Example

# Clear all active alarms on the device.

<HUAWEI> system-view
[HUAWEI] alarm
[HUAWEI-alarm] clear alarm active all

clear alarm manual-clear

Function

The clear alarm manual-clear command clears the active alarms that are not reported repeatedly so that these active alarms can be reported again.

Format

clear alarm manual-clear { all | sequence-number sequence-number }

Parameters

Parameter Description Value
all Specifies all the active alarms that are not reported repeatedly. -
sequence-number sequence-number Specifies the sequence number of the active alarm that is not reported repeatedly.

You can run display alarm manual-clear get the sequence number of the active alarm.

The value is an integer that ranges from 1 to 2147483647.

Views

Alarm management view

Default Level

3: Management level

Usage Guidelines

After the mask manual-clear alarm command is executed to prevent manually cleared active alarms from being reported repeatedly and then the clear alarm active command or MIB table hwAlarmActiveTable is used to manually clear active alarms, active alarms will not be reported repeatedly. To view the active alarms that are not reported repeatedly, run the clear alarm manual-clear command.

To ensure that the active alarms that are not reported repeatedly can be reported again, run the clear alarm manual-clear command. After the clear alarm manual-clear command is executed, running the display alarm manual-clear command does not display corresponding alarm information.

Example

# Clear the active alarms that are not reported repeatedly.

<HUAWEI> system-view
[HUAWEI] alarm
[HUAWEI-alarm] clear alarm manual-clear all

clear event all

Function

The clear event all command clears events on the device.

Format

clear event all

Parameters

None

Views

Event view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Before collecting statistics on events generated on the device again, run the clear event all to clear events.

Precautions

The clear event all command clears events on the device and cleared events cannot be restored.

Example

# Clear events on the device.

<HUAWEI> system-view
[HUAWEI] event
[HUAWEI-event] clear event all
Related Topics

delay-suppression enable

Function

The delay-suppression enable command enables delayed alarm or event reporting.

The undo delay-suppression enable command disables delayed alarm or event reporting.

By default, delayed reporting is enabled.

Format

delay-suppression enable

undo delay-suppression enable

Parameters

None

Views

Alarm view or event view

Default Level

3: Management level

Usage Guidelines

In the event that an alarm or an event is repeatedly generated, you can enable delayed reporting to prevent a large number of repeated alarms or events from being reported to the NMS. You can choose to enable or disable delayed reporting:

  • Run the delay-suppression enable command to enable delayed reporting.

  • Run the undo delay-suppression enable command to disable delayed reporting.

Run the delay-suppression enable command in the alarm view to enable delayed alarm reporting. Run the delay-suppression enable command in the event view to enable delayed event reporting.

Example

# Enable delayed alarm reporting.

<HUAWEI> system-view
[HUAWEI] alarm
[HUAWEI-alarm] delay-suppression enable

display alarm

Function

The display alarm command displays alarm information about all the boards or the board in the specified slot.

Format

display alarm { all | slot slot-id }

Parameters

Parameter Description Value
all

Displays alarm information about all the boards.

-

slot slot-id

Displays alarm information about the board in the specified slot.

The value must be set according to the device configuration.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use the command to view the alarm information, such as fan swap, plugging in and out of power supply, temperature exception, abnormal clock, and abnormal chip.

Example

# Display alarm information about the device.

<HUAWEI> display alarm all
----------------------------------------------------------------------------
Level          Date        Time                Info

Warning      2008-12-11  10:12:19    The "1.2V" voltage sensor of LPU board[9
                                     ](entity) exceed lower minor limit.
Warning      2008-12-11  10:12:19    The "12V" voltage sensor of LPU board[9]
                                     (entity) exceed lower minor limit.
Warning      2008-12-11  10:12:19    The "2.5V" voltage sensor of LPU board[9
                                     ](entity) exceed lower minor limit.
Warning      2008-12-11  10:12:19    The "1.8V" voltage sensor of LPU board[9
                                     ](entity) exceed lower minor limit.
Warning      2008-12-11  10:12:19    The "1.25V" voltage sensor of LPU board[
                                     9](entity) exceed lower minor limit.
Warning      2008-12-11  10:12:19    The "1.05V" voltage sensor of LPU board[
                                     9](entity) exceed lower minor limit.
Warning      2008-12-11  10:12:19    The "3.3V" voltage sensor of LPU board[9
                                     ](entity) exceed lower minor limit.
----------------------------------------------------------------------------
Table 3-181  Description of the display alarm command output

Item

Description

Level

Alarm severity.

Date

Date when alarms are generated.

Time

Time when alarms are generated.

Info

Alarm description.

display alarm active

Function

The display alarm active command displays active alarms on the device.

Format

display alarm active

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display alarm active command to view active alarms on the device to locate faults.

Example

# Display active alarms on the device.

<HUAWEI> display alarm active
A/B/C/D/E/F/G/H/I/J                                                             
A=Sequence, B=RootKindFlag(Independent|RootCause|nonRootCause)                  
C=Generating time, D=Clearing time                                              
E=ID, F=Name, G=Level, H=State                                                  
I=Description information for locating(Para info, Reason info)                  
J=RootCause alarm sequence(Only for nonRootCause alarm)                         
                                                                                
  1/Independent/2015-09-01 09:18:25-05:13/-/0x40c12004/hwEntityInvalid/Critical/
Start/OID 1.3.6.1.4.1.2011.5.25.129.2.1.9 Power is abnormal. (EntityPhysicalInde
x=67108873, BaseTrapSeverity=3, BaseTrapProbableCause=67966, BaseTrapEventType=5
, EntPhysicalContainedIn=5, EntPhysicalName=MPU Board 0, RelativeResource=PWR2 P
OWER, ReasonDescription=PWR2 POWER is abnormal)
Table 3-182  Description of the display alarm active command output

Item

Description

A/B/C/D/E/F/G/H/I/J

Alarm display format

A=Sequence

Sequence number

B=RootKindFlag(Independent|RootCause|nonRootCause)

Flag indicating a root-cause alarm or a non-root-cause alarm:

  • Independent: indicates an alarm for which alarm correlation analysis is not performed.
  • RootCause: indicates a root-cause alarm.
  • nonRootCause: indicates a non-root-cause alarm.

C=Generating time

Time when an alarm is generated

D=Clearing time

Time when an alarm is cleared

E=ID

Alarm ID

F=Name

Alarm name

G=Level

Alarm severity level

You can run the alarm-name severity command to set this parameter.

H=State

Alarm status:

  • Start
  • End

I=Description information for locating(Para info, Reason info)

Alarm description including alarm parameters and causes for triggering alarms

J=RootCause alarm sequence(Only for nonRootCause alarm)

Sequence number of the root-cause alarm (for non-root-cause alarms only)

display alarm history

Function

The display alarm history command displays historical alarms on the device.

Format

display alarm history

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display alarm history command to view the alarms that are cleared or generated on the device. The display alarm history command displays a maximum of 1024 alarm history records.

Example

# Display historical alarms on the device.

<HUAWEI> display alarm history
A/B/C/D/E/F/G/H/I/J
A=Sequence, B=RootKindFlag(Independent|RootCause|nonRootCause)
C=Generating time, D=Clearing time
E=ID, F=Name, G=Level, H=State
I=Description information for locating(Para info, Reason info)
J=RootCause alarm sequence(Only for nonRootCause alarm)

  3/Independent/2010-07-14 09:40:20-08:00/2010-07-14 09:40:23-08:00/0x502001/linkDown/
Critical/End/OID 1.3.6.1.6.3.1.1.5.3 Interface 5 turned into DOWN state.
Table 3-183  Description of the display alarm history command output

Item

Description

A/B/C/D/E/F/G/H/I/J

Alarm display format

A=Sequence

Sequence number

B=RootKindFlag(Independent|RootCause|nonRootCause)

Flag indicating a root-cause alarm or a non-root-cause alarm:

  • Independent: indicates an alarm for which alarm correlation analysis is not performed.
  • RootCause: indicates a root-cause alarm.
  • nonRootCause: indicates a non-root-cause alarm.

C=Generating time

Time when an alarm is generated

D=Clearing time

Time when an alarm is cleared

E=ID

E=ID

F=Name

Alarm ID

G=Level

Alarm severity level

You can run the alarm-name severity command to set this parameter.

H=State

Alarm status:

  • Start
  • End

I=Description information for locating(Para info, Reason info)

Alarm description including alarm parameters and causes for triggering alarms

J=RootCause alarm sequence(Only for nonRootCause alarm)

Sequence number of the root-cause alarm

display alarm information

Function

The display alarm information command displays alarm configurations.

Format

display alarm information [ name alarm-name ]

Parameters

Parameter Description Value
name alarm-name

Displays the configuration of a specified alarm. If this parameter is not set, configurations of all alarms are displayed.

The value is a string and varies according to the registered device type.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view alarm configurations on the device, run the display alarm information command.

If no alarm name is specified, information about all alarms in the system will be displayed.

In addition, to change the severity level of an alarm, you can run the alarm-name alarm-name severity severity command.

Example

# Display the configuration of the alarm named linkUp.
<HUAWEI> display alarm information name linkUp
**********************************                                              
  AlarmName: linkUp                                                             
  AlarmType: Resume Alarm                                                       
  AlarmLevel: Cleared                                                           
  Suppress Period: NA                                                           
  CauseAlarmName: linkDown                                                      
  Match VB Name: ifIndex                                                        
**********************************                                              
Table 3-184  Description of the display alarm information command output

Item

Description

AlarmName

Name of an alarm.

AlarmType

Alarm type:
  • Alarm: indicates a fault occurs.

  • Resume Alarm: indicates a fault is rectified.

AlarmLevel

Alarm severity.

To set this parameter, run the alarm-name severity command.

Suppress Period

Alarm reporting delay. To set this parameter, run the suppression alarm-name command.

If this field displays NA, this alarm does not support the delayed alarm reporting function.

CauseAlarmName

Name of the root-cause alarm.

Name of the root-cause alarm, namely, paired alarm name.

Match VB Name

Matching content of paired alarms.

display alarm manual-clear

Function

The display alarm manual-clear command displays the alarms that are not reported repeatedly after being cleared.

Format

display alarm manual-clear

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After the mask manual-clear alarm command is executed to prevent manually cleared active alarms from being reported repeatedly and then the clear alarm active command or MIB table hwAlarmActiveTable is used to manually clear active alarms, you can run the display alarm manual-clear command to view the active alarms that are not reported repeatedly after being cleared.

Example

# Display the alarms that are not reported repeatedly after being cleared.

<HUAWEI> display alarm manual-clear
A/B/C/D/E/F/G/H/I/J
A=Sequence, B=RootKindFlag(Independent|RootCause|nonRootCause)
C=Generating time, D=Clearing time
E=ID, F=Name, G=Level, H=State
I=Description information for locating(Para info, Reason info)
J=RootCause alarm sequence(Only for nonRootCause alarm)

  2/Independent/2016-05-04 10:38:46-08:00/-/0xff14280c/hwEntityOffline/Major/Start/ OID 1
.3.6.1.4.1.2011.5.25.129.2.1.13 Physical entity changed to the offline state. (E
ntityPhysicalIndex=16842752, BaseTrapSeverity=5, BaseTrapProbableCause=69120, Ba
seTrapEventType=5, EntPhysicalContainedIn=16777216, EntPhysicalName="LPU slot 1"
, RelativeResource="", ReasonDescription="Because of get offline message, the en
tity of SLOT1 changed to offline state")
Table 3-185  Description of the display alarm manual-clear command output

Item

Description

A/B/C/D/E/F/G/H/I/J

Alarm display format

A=Sequence

Alarm sequence number.

B=RootKindFlag(Independent|RootCause|nonRootCause)

Flag indicating a root-cause alarm or a non-root-cause alarm:

  • Independent: indicates an alarm for which alarm correlation analysis is not performed.
  • RootCause: indicates a root-cause alarm.
  • nonRootCause: indicates a non-root-cause alarm.

C=Generating time

Time when an alarm is generated.

D=Clearing time

Time when an alarm is cleared.

E=ID

Alarm ID.

F=Name

Alarm name.

G=Level

Alarm severity.

To set this parameter, run the alarm-name severity command.

H=State

Alarm status:

  • Start
  • End

I=Description information for locating(Para info, Reason info)

Alarm description.

J=RootCause alarm sequence(Only for nonRootCause alarm)

Sequence number of a root-cause alarm (for non-root-cause alarms only)

display event

Function

The display event command displays events on the device.

Format

display event

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To obtain the contents of events in the system, you can run the display event command.

Example

# Display events on the device.

<HUAWEI> display event
A/B/C/D/E/F/G/H/I/J                                                             
A=Sequence, B=RootKindFlag(Independent|RootCause|nonRootCause)                  
C=Generating time, D=Clearing time                                              
E=ID, F=Name, G=Level, H=State                                                  
I=Description information for locating(Para info, Reason info)                  
J=RootCause alarm sequence(Only for nonRootCause alarm)                         
                                                                                
  1/Independent/2008-10-12 22:42:28-08:00/-/0x40812000/warmStart/Warning/Start/O
ID 1.3.6.1.6.3.1.1.5.2 warmStart                                                
  2/Independent/2008-10-12 22:42:28-08:00/-/0x41132002/hgmpMemberStatusChange/Wa
rning/Start/OID:1.3.6.1.4.1.2011.6.7.1.0.3, DeviceID:0018-8201-0987, Role:17.   
  3/Independent/2008-10-16 17:50:32-08:00/-/0x41b82000/hwCfgChgNotify/Warning/St
art/OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The curr
ent change number is 2, the change loop count is 0, and the maximum number of re
cords is 4095.                                                                  
Table 3-186  Description of the display event command output

Item

Description

A/B/C/D/E/F/G/H/I/J

Event display format

A=Sequence

Sequence number of an event

B=RootKindFlag(Independent|RootCause|nonRootCause)

Flag indicating a root-cause alarm or a non-root-cause alarm (The value of this field is Independent for any event.)

C=Generating time

Time when the event is generated

D=Clearing time

Time when the event is cleared (for non-root-cause alarms only)

E=ID

Event ID

F=Name

Event name

G=Level

Event level

H=State

Event status:

  • Start
  • End

I=Description information for locating(Para info, Reason info)

Description of an event, including parameters of the event and the reason why the event was triggered.

J=RootCause alarm sequence(Only for nonRootCause alarm)

This parameter is valid only for alarms.

display event information

Function

The display event information command displays event configurations.

Format

display event information [ name event-name ]

Parameters

Parameter Description Value
name event-name Displays the configuration of a specified event. If this parameter is not set, configurations of all events are displayed.

The value is a string and varies according to the registered device type.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view event configurations on the device, run the display event information command.

If no event name is specified, information about all events in the system will be displayed.

Example

# Display registration information about the hwCfgManEventlog event.

<HUAWEI> display event information name hwCfgManEventlog
**********************************
  EventName: hwCfgManEventlog
  EventType: Critical Event
  EventLevel: Warning
  Suppress Period: NA
  Match VB Name: hwCfgLogSrcCmd hwCfgLogSrcData hwCfgLogDesData
**********************************
Table 3-187  Description of the display event information command output

Item

Description

EventName

Event name.

EventType

Event type.

EventLevel

Event level, which cannot be configured.

Suppress Period

Event report delay period. To set this parameter, run the suppression event-name command.

If this field displays NA, this event does not support the delayed event reporting function.

Match VB Name

Matching content of repeated events.

display mtp statistics

Function

Using the display mtp statistics command, you can view the statistics about information that is obtained and recorded in logs by the Maintain-Probe (MTP) module.

Format

display mtp statistics

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The interruption of the neighbor relationship between service modules on the network is hard to be replicated. Therefore, once occurring, the problem is recorded in logs on the MTP module for fault location in the future.

If the maintainable information has been collected and recorded in logs on the MTP module, you can run the display mtp statistics command to view the maintainable information. Before the protocol running on each service module times out, the service module performs one or several operations and then sends information to the MTP module. The display mtp statistics command output, however, displays information about only the last five operations regardless of the specific operation and the protocol type.

Operations that trigger the MTP module to generate a log are as follows:
  • When the neighbor relationship established between service modules (for example, LDP modules) is interrupted because the IGP route is unreachable, a Ping operation is started on the MTP module to detect the reachability of the IGP route. LDP needs to deliver the Ping operation to the MTP module before it times out.
  • Packet statistics on the CPCAR: When packets are discarded on the NP at the lower layer, causing the LDP neighbor relationship to be interrupted and thus the protocol to time out, the number of packets discarded and forwarded on the CPCAR is counted.
NOTE:
The MTP module records many logs, but only displays some of them. By default, the MTP module displays the last five logs.

Example

# Display information about the Ping operation on the MTP module.
<HUAWEI> display mtp statistics
                           MTP     Ping    Result
                           ----------------------

Time    : 15:31:24.290/15:31:24.300  Protocol : LDP   VrfIndex   : 0
Dest    : 9.9.9.9                    Reachable: 0     Unreachable: 10
Table 3-188  Description of the display mtp statistics command output

Item

Description

Time

Indicates the time when the MTP module starts to perform the Ping operation.

Protocol

Indicates the protocol that triggers the MTP module to perform the Ping operation.

VrfIndex

Indicates index of the private network where the neighbor relationship between service modules is established.

Dest

Indicates the destination address of the Ping operation.

Reachable

Indicates the number of Ping packets that reach the destination (that is, the number of packets returned from the destination).

Unreachable

Indicates the number of Ping packets that do not reach the destination.

display snmp-agent trap feature-name fm all

Function

The display snmp-agent trap feature-name fm all command displays the status of all traps of the fault management module.

Format

display snmp-agent trap feature-name fm all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The Simple Network Management Protocol (SNMP) is a standard network management protocol widely used on TCP/IP networks. It uses a central computer (a network management station) that runs network management software to manage network elements. The management agent on the network element automatically reports traps to the network management station. After that, the network administrator immediately takes measures to resolve the problem.

The display snmp-agent trap feature-name fm all command displays whether all trap functions of the FM module are enabled.

Example

# Display all trap messages of the fault management module.

<HUAWEI>display snmp-agent trap feature-name fm all
------------------------------------------------------------------------------                                                      
Feature name: FM                                                                                                                    
Trap number : 2                                                                                                                     
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwAlarmTargetHostDel            on                      on                                                                          
hwAlarmStorm                    on                      on                                                                          
Table 3-189  Description of the display snmp-agent trap feature-name fm all command output

Item

Description

Feature name

Name of the module to which a trap message belongs

Trap number

Number of trap messages

Trap name

Names of the trap messages of the fault management module, including:

  • hwAlarmTargetHostDel: generated when the configuration of a target host is deleted

  • hwAlarmStorm: generated when an alarm storm occurs

Default switch status

Default status of the trap function:

  • on: the trap function is enabled.
  • off: the trap function is disabled.

Current switch status

Current status of the trap function:

  • on: the trap function is enabled.
  • off: the trap function is disabled.

event

Function

Using the event command, you can enter the event view.

Format

event

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

After running the event command to enter the event view, you can configure event management functions.

Example

# Enter the event view.

<HUAWEI> system-view
[HUAWEI] event
[HUAWEI-event]

mask manual-clear alarm

Function

The mask manual-clear alarm command prevents manually cleared active alarms from being reported repeatedly.

The undo mask manual-clear alarm command restores the default configuration.

By default, active alarms are reported repeatedly after being manually cleared.

Format

mask manual-clear alarm

undo mask manual-clear alarm

Parameters

None

Views

Alarm management view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

By default, after the clear alarm active command or MIB table hwAlarmActiveTable is used to manually clear active alarms, active alarms are reported repeatedly when being generated again. To prevent manually cleared active alarms from being reported repeatedly, run the mask manual-clear alarm command.

After the mask manual-clear alarm command is executed and then the clear alarm active command or MIB table hwAlarmActiveTable is used, cleared active alarms will not be reported repeatedly before clear alarms of active alarms are reported. To view all the active alarms that are not reported repeatedly, run the display alarm manual-clear command.

Precautions

Before the mask manual-clear alarm command is executed, the active alarms manually cleared using the clear alarm active command or MIB table hwAlarmActiveTable will be reported repeatedly.

Example

# Prevent manually cleared active alarms from being reported repeatedly.

<HUAWEI> system-view
[HUAWEI] alarm
[HUAWEI-alarm] mask manual-clear alarm

mtp disable

Function

The mtp disable command disables Maintain-Probe (MTP) functions.

The undo mtp disable command enables MTP functions.

By default, MTP functions are enabled.

Format

mtp disable

undo mtp disable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the neighbor relationships between modules are interrupted on the network, you can enable MTP functions to resolve the problem. Take the LDP module as an example. If the neighbor relationship between the LDP module and a service module on the peer device is interrupted because that the IGP route between two devices is unreachable, the MTP module will ping the peer device from the local device to check the IGP reachability. The LDP module only needs to construct the MTP module to perform the ping operation before the IGP negotiation times out. After this, the MTP module performs the ping operation to complete the check.

If the neighbor relationship between the LDP module and a service module on the peer device is interrupted because the NP drops packets, the MTP module will perform the CP CAR operation and count the number of the packets sent to the CPU and the discarded packets.

After MTP functions are disabled, the MTP neither performs the ping or CP CAR operation nor logs the ping or CP CAR result.

Follow-up Procedure

Run the display mtp statistics command to check the statistics about the MTP module.

Example

# Disable MTP functions.
<HUAWEI> system view
[HUAWEI] mtp disable

set alarm resend interval

Function

The set alarm resend interval command set the alarm reporting interval.

The undo set alarm resend interval command restores the default alarm reporting interval.

By default, the alarm interval is 10 minutes.

Format

set alarm resend interval interval-value

undo set alarm resend interval

Parameters

Parameter Description Value
interval-value Specifies the alarm interval. The value is an integer that ranges from 0 to 65535, in minutes.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The set alarm resend interval command sets the interval at which alarms are generated. If the periodic alarm reporting function is not required, set the interval to 0.

Precautions

If the alarm reporting interval is set to 0, the system does not report alarms periodically.

Example

# Set the alarm reporting interval to 4 minutes.

<HUAWEI> system-view
[HUAWEI] set alarm resend interval 4

snmp-agent trap enable feature-name fm

Function

The snmp-agent trap enable feature-name fm command enables the trap function of the fault management module.

The undo snmp-agent trap enable feature-name fm command disables the trap function of the fault management module.

By default, the trap function is enabled for the fault management module.

Format

snmp-agent trap enable feature-name fm [ trap-name { hwalarmtargethostdel | hwalarmstorm } ]

undo snmp-agent trap enable feature-name fm [ trap-name { hwalarmtargethostdel | hwalarmstorm } ]

Parameters

Parameter Description Value
trap-name Enables the trap of a specified event. If this parameter is not specified, all traps of the fault management module are enabled. -
hwalarmtargethostdel Indicates that the configuration of a target host is deleted. -
hwalarmstorm Indicates that a trap alarm occurs. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The traps of the fault management module generated in the running process of a device are reported to the NMS only when the trap function is enabled. To enable the trap function for one or more specific events, configure trap-name in the command.

Example

# Enable all traps of the fault management module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name fm

suppression alarm-name

Function

The suppression alarm-name command modifies a delay period after which a generated alarm is reported.

The undo suppression alarm-name command restores the configured delay period after which a generated alarm is reported.

By default, the system defines a delay period after which a generated alarm is reported. To view this default delay period, run the undo suppression alarm-name command and then the display alarm information command. If the Suppress Period field displays NA for an alarm, this alarm does not support the delayed alarm reporting function.

Format

suppression alarm-name alarm-name { cause-period cause-seconds | clear-period clear-seconds }

undo suppression alarm-name alarm-name { cause-period | clear-period }

Parameters

Parameter Description Value
alarm-name Specifies the name of an alarm for which the delay period is set. The value cannot be the alarm name of which the Suppress Period field in the display alarm information command output displays NA.
cause-period cause-seconds Specifies the period after which a generated alarm is reported. The value is an integer ranging from 0 to 600, in seconds. If the value is set to 0s, the alarm management module sends the alarm to the NMS without any delay.
clear-period clear-seconds Specifies the period after which a generated clear alarm is reported. The value is an integer ranging from 0 to 600, in seconds. If the value is set to 0s, the alarm management module sends the alarm to the NMS without any delay.

Views

Alarm view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If a certain alarm is repeatedly generated, you can enable delayed alarm reporting and set a period after which the alarm is reported to prevent the alarm from being reported during this period.

After the period is set for a certain alarm:

  • If no clear alarm is generated during the period, the alarm is not reported to the NMS until the period expires.
  • If a clear alarm is generated during this period, the alarm and its clear alarm are both deleted from the alarm queue and will not be reported to the NMS.

If the delay period is too short, alarm reporting is not efficiently delayed. If the delay period is too long, alarm reporting is postponed and the time when the fault occurs cannot be correctly obtained. For most alarms, the default delay period is recommended. For common alarms, such as alarms about hardware and environment, delayed alarm reporting is not recommended.

The value of cause-period cause-seconds is irrelevant to the value of clear-period clear-seconds. The delay in reporting an alarm and the delay in reporting a clear alarm can be configured separately.

Prerequisites

Before running the suppression alarm-name command, ensure that delayed alarm reporting has been enabled using the delay-suppression enable command.

Precautions

  • If the delay period is changed when an alarm is being sent, the changed delay period takes effect on the next alarm to be sent.

  • If alarm-name specifies an alarm, you can configure only cause-period cause-seconds. If it specifies a clear alarm, you can configured only clear-period clear-seconds.

Example

# Set the hwsysmasterhderror alarm to be reported 5s after it is generated.

<HUAWEI> system-view
[HUAWEI] alarm
[HUAWEI-alarm] delay-suppression enable
[HUAWEI-alarm] suppression alarm-name hwsysmasterhderror cause-period 5

suppression event-name

Function

The suppression event-name command modifies a delay period after which a generated event is reported.

The undo suppression event-name command restores the configured delay period after which a generated event is reported.

By default, the system defines a delay period after which a generated event is reported. To view this default delay period, run the undo suppression event-name command and then the display event information command. If the Suppress Period field displays NA for an alarm, this alarm does not support the delayed alarm reporting function.

Format

suppression event-name event-name period seconds

undo suppression event-name event-name period

Parameters

Parameter Description Value
event-name Specifies the name of an event for which the delay period is set. The value cannot be the event name of which the Suppress Period field in the display event information command output displays NA.
period seconds Specifies the period after which a generated event is reported. The value is an integer ranging from 0 to 600, in seconds. If the value is set to 0s, the alarm management module sends the event to the NMS without any delay.

Views

Event view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

In the case where a certain event is repeatedly generated, you can enable delayed event reporting and set a period after which a generated event is reported.

After the delay period is set for a certain event, if an event is generated several times during the delay period, the system reports only the first one to the NMS when the delay period expires and discards the following ones.

Prerequisites

Before running the suppression event-name command, ensure that delayed alarm reporting has been enabled using the delay-suppression enable command.

Precautions

If the delay period is changed when an event is being sent, the changed delay period takes effect on the next event to be sent.

Example

# Set the delay period to 5s after which a generated hwFlhSyncFailNotification event is reported.

<HUAWEI> system-view
[HUAWEI] event
[HUAWEI-event] delay-suppression enable
[HUAWEI-event] suppression event-name hwFlhSyncFailNotification period 5
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 126543

Downloads: 88

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