debugging efm

Function

The debugging efm command enables all debugging EFM functions and outputs debugging information.

The undo debugging efm command disables all EFM debugging functions.

By default, all efm debugging functions are disabled.

Format

debugging efm { error | info | debug | warning | message | packet { all | receive | send } | state }

debugging efm { error | info | debug | warning | message | packet { all | receive | send } | state } interface { interfaceName | ifType ifNum }

undo debugging efm { error | info | debug | warning | message | packet { all | receive | send } | state }

undo debugging efm { error | info | debug | warning | message | packet { all | receive | send } | state } interface { interfaceName | ifType ifNum }

Parameters

Parameter Description Value
error

Enables debugging of error packets or error messages.

-

info

Enables information debugging switch.

-

debug

Enables debug debugging switch.

-

warning

Enables warning debugging switch.

-

message

Enables debugging of message exchanged between components.

-

packet

Enables debugging of packets sent and received by the EFM.

-

all

Enables all debugging functions.

-

receive

Enables debugging of packets received by the EFM.

-

send

Enables debugging of packets sent by the EFM.

-

state

Enables debugging of the EFM state.

-

interface ifType ifNum

Specifies the type and number of an interface.

-

interfaceName

Specifies an interface name.

The value is a string of 1-47 characters.

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
efm debug

Usage Guidelines

Usage Scenario

  • When an EFM session fails to be negotiated, the debugging efm packet command displays the sent and received packets and checks whether packet sending and receiving are normal and whether the packet format is correct.
  • When the EFM fails to interwork with other components, the debugging efm message command displays the messages exchanged between the EFM and other components and checks whether message sending and receiving of the components are normal.
  • When an EFM session fails to be negotiated, the debugging efm state command displays changes of the state machine and checks whether stateful switchover is normal.
  • When the EFM component becomes abnormal, the debugging efm error command checks whether an error occurs in packet or message processing.

Example

# Enable EFM debugging of packets.
<HUAWEI> system-view
[~HUAWEI] efm enable
[*HUAWEI] interface gigabitethernet0/1/0
[*HUAWEI-GigabitEthernet0/1/0] efm enable
[*HUAWEI-GigabitEthernet0/1/0] commit
[~HUAWEI-GigabitEthernet0/1/0] quit
[~HUAWEI] quit
<HUAWEI> debugging efm packet all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >