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

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

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).
Multicast Network Management Commands

Multicast Network Management Commands

NOTE:

The CE6810LI does not support this feature.

display snmp-agent trap feature-name msdp all

Function

The display snmp-agent trap feature-name msdp all command displays the status of all MSDP traps.

Format

display snmp-agent trap feature-name msdp all

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can run the display snmp-agent trap feature-name msdp all command to view the status of all MSDP traps when you want to monitor the current status of MSDP protocol events but are not sure whether the MSDP trap function is enabled.

Example

# Display whether the trap function is enabled for the MSDP module.

<HUAWEI> display snmp-agent trap feature-name msdp all
------------------------------------------------------------------------------                                                      
Feature name: MSDP                                                                                                                  
Trap number : 2                                                                                                                     
------------------------------------------------------------------------------                                                      
Trap name                      Default switch status   Current switch status                                                        
backward                       off                     off                                                                          
establish                      off                     off                                                                             
Table 10-111  Description of the display snmp-agent trap feature-name msdp all command output

Item

Description

Feature name

Indicates the name of the module.

Trap number

Indicates the type number of a trap.

Trap name

Indicates the event type. The event types are as follows:
  • backward: indicates that an MSDP peer is removed.
  • establish: indicates that an MSDP peer is established.

Default switch status

Status of the default trap switch:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

Current switch status

Status of the current trap switch:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

display snmp-agent trap feature-name pim all

Function

The display snmp-agent trap feature-name pim all command displays the status of all PIM traps.

Format

display snmp-agent trap feature-name pim all

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

You can run the display snmp-agent trap feature-name pim all command to view the status of all PIM traps when you want to monitor the current status of PIM protocol events but are not sure whether the PIM trap function is enabled.

Example

# Display whether the trap function is enabled for the PIM module.

<HUAWEI> display snmp-agent trap feature-name pim all
------------------------------------------------------------------------------                                                      
Feature name: PIM                                                                                                                   
Trap number : 6                                                                                                                     
------------------------------------------------------------------------------                                                      
Trap name                      Default switch status   Current switch status                                                        
interface-election             off                     off                                                                          
invalid-join-prune             off                     off                                                                          
invalid-register               off                     off                                                                          
neighbor-loss                  off                     off                                                                          
new-neighbor                   off                     off                                                                          
rp-mapping-change              off                     off                                                                          
Table 10-112  Description of the display snmp-agent trap feature-name pim all command output

Item

Description

Feature name

Name of the module.

Trap number

Number of trap event types.

Trap name

Trap event type. The following types of trap events are defined:
  • interface-election: An interface is elected as the DR.
  • invalid-join-prune: An invalid Join/Prune message is received.
  • invalid-register: An invalid Register message is received.
  • neighbor-loss: A neighbor is lost.
  • new-neighbor: A new neighbor appears.
  • rp-mapping-change: The RP-mapping changes.

Default switch status

Default status of a trap function:
  • on: indicates that the trap function is enabled by default.
  • off: indicates that the trap function is disabled by default.

Current switch status

Current status of a trap function:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

display snmp-agent trap feature-name pim-std all

Function

The display snmp-agent trap feature-name pim-std all command displays the status of all PIM-STD traps.

Format

display snmp-agent trap feature-name pim-std all

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can run the display snmp-agent trap feature-name pim-std all command to view the status of all PIM-STD MIB traps when you want to monitor the current status of the public PIM protocol events but are not sure whether the PIM-STD MIB trap function is enabled.

Example

# View the status of all PIM-STD MIB traps.

<HUAWEI> display snmp-agent trap feature-name pim-std all
------------------------------------------------------------------------------                                                      
Feature name: PIM-STD                                                                                                               
Trap number : 5                                                                                                                     
------------------------------------------------------------------------------                                                      
Trap name                      Default switch status   Current switch status                                                        
pimNeighborLoss                off                     off                                                                          
piminterfaceelection           off                     off                                                                          
piminvalidjoinprune            off                     off                                                                          
piminvalidregister             off                     off                                                                          
pimrpmappingchange             off                     off                                                                          
Table 10-113  Description of the display snmp-agent trap feature-name pim-std all command output

Item

Description

Feature name

Feature name

Trap number

Number of trap message types

Trap name

Types of trap messages:
  • pimNeighborLoss: A neighbor relationship is lost.
  • pimInterfaceElection: The interface is elected as the DR.
  • pimInvalidJoinPrune: An invalid Join or Prune message is received.
  • pimInvalidRegister: An invalid Register message is received.
  • pimRPMappingChange: RP-Mapping changes.

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.

multicast mib

Function

The multicast mib command enables the multicast MIB and displays the multicast MIB view.

The undo multicast mib command deletes all configurations in the multicast MIB view.

By default, the multicast MIB is not enabled.

Format

multicast mib

undo multicast mib

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Run the undo multicast mib command to delete all configurations in the multicast MIB view.

When using the undo multicast mib command, you need to enter Y or N to confirm the action. This command will clear global multicast MIB configurations. So, use this command with caution.

Example

# Enable multicast MIB and enter the multicast MIB view.

<HUAWEI> system-view
[~HUAWEI] multicast mib
[*HUAWEI-mcast-mib]

pim mib-notification interval

Function

The pim mib-notification interval command sets the interval for PIM to send trap messages about various events.

The undo pim mib-notification interval command restores the default interval for PIM to send various trap messages.

By default, an alarm is generated only when a neighbor loss event or a neighbor addition event occurs. No alarm is generated when the other events occur.

Format

pim mib-notification interval { interface-election-dr election-value | invalid-join-prune jp-value | invalid-register register-value | neighbor-loss loss-value | new-neighbor new-value | rp-mapping-change change-value }

undo pim mib-notification interval { all | interface-election-dr | invalid-join-prune | invalid-register | neighbor-loss | new-neighbor | rp-mapping-change }

Parameters

Parameter Description Value
interface-election-dr election-value Specifies the minimum interval for sending trap messages about DR election. The value is an integer that ranges from 0 to 65535, in seconds. The default value is 65535 seconds.
invalid-join-prune jp-value Specifies the minimum interval for sending trap messages about invalid Join/Prune messages. The value is an integer that ranges from 10 to 65535, in seconds. The default value is 65535 seconds.
invalid-register register-value Specifies the minimum interval for sending trap messages about invalid Register messages. The value is an integer that ranges from 10 to 65535, in seconds. The default value is 65535 seconds.
neighbor-loss loss-value Specifies the minimum interval for sending trap messages about neighbor loss. The value is an integer that ranges from 0 to 65535, in seconds. The default value is 0 seconds.
new-neighbor new-value Specifies the minimum interval for sending trap messages about neighbor addition. The value is an integer that ranges from 0 to 65535, in seconds. The default value is 0 seconds.
rp-mapping-change change-value Specifies the minimum interval for sending trap messages about the RP-mapping change. The value is an integer that ranges from 0 to 65535, in seconds. The default value is 65535 seconds.
all Restore the default interval for PIM to send all trap messages. -

Views

Multicast MIB view

Default Level

2: Configuration level

Usage Guidelines

The pim mib-notification interval command sets the interval for sending trap messages. When an event occurs, if the period since the last time for sending the trap message is shorter than the configured interval, the system does not send any trap message.

  • If the default interval is 0, it indicates that a trap message is sent immediately after an event occurs.

  • If the default interval is 65535, it indicates that no trap message is sent after an event occurs. Then run this command to adjust the interval to a smaller value so that a trap message can be sent after an event occurs.

Example

# Set the interval for PIM to send trap messages about invalid Join/Prune messages.

<HUAWEI> system-view
[~HUAWEI] multicast mib
[*HUAWEI-mcast-mib] pim mib-notification interval invalid-join-prune 50

snmp-agent trap enable feature-name msdp

Function

The snmp-agent trap enable feature-name msdp command enables the traps function for the MSDP module.

The undo snmp-agent trap enable feature-name msdp command disables the traps function for the MSDP module.

By default, the trap function for MSDP events is disabled.

Format

snmp-agent trap enable feature-name msdp [ trap-name { establish | backward } ]

undo snmp-agent trap enable feature-name msdp [ trap-name { establish | backward } ]

Parameters

Parameter Description Value
trap-name Enables the traps of MSDP events of specified types. -
establish Enables the trap of the setup of the MSDP peer relationship. -
backward Enables the trap of the deletion of the MSDP peer relationship. -

Views

System view

Default Level

3: Management level

Usage Guidelines

To enable the traps of one or more events, you can specify trap-name.

Example

# Enable the trap of the setup of the MSDP peer relationship in the system view.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name msdp trap-name establish

# Disable the trap of the setup of the MSDP peer relationship in the system view.

<HUAWEI> system-view
[~HUAWEI] undo snmp-agent trap enable feature-name msdp trap-name establish

snmp-agent trap enable feature-name pim

Function

The snmp-agent trap enable feature-name pim command enables the trap function for PIM events.

The undo snmp-agent trap enable feature-name pim command disables the trap function for PIM events.

By default, the trap function for PIM events is disabled.

Format

snmp-agent trap enable feature-name pim [ trap-name { interface-election | invalid-join-prune | invalid-register | neighbor-loss | new-neighbor | rp-mapping-change } ]

undo snmp-agent trap enable feature-name pim [ trap-name { interface-election | invalid-join-prune | invalid-register | neighbor-loss | new-neighbor | rp-mapping-change } ]

Parameters

Parameter Description Value
trap-name Enables the trap for a specified type of PIM event. -
interface-election Enables the trap for the event indicating that a PIM interface is elected as the DR. -
invalid-join-prune Enables the trap for the event indicating that an invalid Join/Prune message is received. -
invalid-register Enables the trap for the event indicating that an invalid Register message is received. -
neighbor-loss Enables the trap for the PIM neighbor loss event. -
new-neighbor Enables the trap indicating that a new PIM neighbor appears. -
rp-mapping-change Enables the trap for the PIM RP-mapping change event. -

Views

System view

Default Level

3: Management level

Usage Guidelines

To enable the trap function for a specific type of event, specify trap-name. To enable the trap function for multiple types of events, run this command multiple times.

Example

# Enable the trap for the PIM neighbor loss event in the system view.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name pim trap-name neighbor-loss

# Disable the trap for the PIM neighbor loss event in the system view.

<HUAWEI> system-view
[~HUAWEI] undo snmp-agent trap enable feature-name pim trap-name neighbor-loss

snmp-agent trap enable feature-name pim-std

Function

The snmp-agent trap enable feature-name pim-std command enables PIM-STD traps.

The undo snmp-agent trap enable feature-name pim-std command disables related PIM-STD traps.

By default, the trap function for PIM-STD MIB events is disabled.

Format

snmp-agent trap enable feature-name pim-std [ trap-name { pimneighborloss | piminvalidregister | piminvalidjoinprune | pimrpmappingchange | piminterfaceelection } ]

undo snmp-agent trap enable feature-name pim-std [ trap-name { pimneighborloss | piminvalidregister | piminvalidjoinprune | pimrpmappingchange | piminterfaceelection } ]

Parameters

Parameter Description Value
trap-name Enables the trap function for specific events. -
pimneighborloss Enables the trap function for the PIM-STD MIB events of neighbor loss. -
piminvalidregister Enables the trap function for the PIM-STD MIB events of invalid Register messages. -
piminvalidjoinprune Enables the trap function for the PIM-STD MIB events of invalid Join/Prune messages. -
pimrpmappingchange Enables the trap function for the PIM-STD MIB events of RP-Mapping change. -
piminterfaceelection Enables the trap function for the PIM-STD MIB events of interface election. -

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

At present, the defined public PIM-STD MIB traps events include neighbor loss, invalid Join/Prune messages, RP-mapping change, interface election, and invalid Register messages. You can run the snmp-agent trap enable feature-name pim-std command to enable the trap function for PIM-STD MIB events when you need to monitor the current status of PIM protocol events.

Precautions

When using the snmp-agent trap enable feature-name pim-std, note the following points:

  • Run the snmp-agent trap enable feature-name pim-std command directly to enable the trap function for all PIM-STD MIB events.

  • Specify trap-name to enable the trap function for a specified type of PIM-STD MIB events.

Example

# Enable the trap function for the PIM-STD MIB events of neighbor loss.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name pim-std trap-name pimneighborloss

# Enable the trap function for all PIM-STD MIB events.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name pim-std

# Disable the trap function for the PIM-STD MIB events of neighbor loss.

<HUAWEI> system-view
[~HUAWEI] undo snmp-agent trap enable feature-name pim-std trap-name pimneighborloss
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 52496

Downloads: 339

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