80
Enabling MPLS trap
With the MPLS trap function enabled, trap packets of the notifications level are generated to report
critical MPLS events. Such trap packets are sent to the information center of the device. Whether and
where the packets are output depend on the configurations of the information center. For information on
how to configure the information center, see
Network Management and Monitoring Configuration
Guide
.
To enable the MPLS trap function:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable MPLS trap.
snmp-agent trap enable mpls
By default, MPLS trap is disabled.
For more information about the
command, see the
snmp-agent
trap enable
command in
Network
Management and Monitoring
Command Reference
.
Displaying and maintaining MPLS
Displaying MPLS operation
Task Command
Remarks
Display information about one or
all interfaces with MPLS enabled.
display mpls interface
[
interface-type
interface-number
] [
verbose
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display information about ILM
entries.
display mpls ilm
[
label
] [
verbose
] [
slot
slot-number
] [
include
text
| {
|
{
begin
|
exclude
|
include
}
regular-expression
} ]
Available in any view
Display information about
specified MPLS labels or all labels.
display mpls label
{
label-value1
[
to
label-value2
] |
all
} [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display information about LSPs.
display mpls lsp
[
incoming-interface
interface-type interface-number
]
[
outgoing-interface
interface-type
interface-number
] [
in-label
in-label-value
]
[
out-label
out-label-value
] [
asbr
|
[
vpn-instance
vpn-instance-name
] [
protocol
{
bgp
|
bgp-ipv6
|
crldp
|
ldp
|
rsvp-te
|
static
|
static-cr
} ] ] [
egress
|
ingress
|
transit
] [ {
exclude
|
include
}
dest-addr
mask-length
] [
verbose
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display LSP statistics.
display mpls lsp statistics
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view