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


To have a better experience, please upgrade your IE browser.


CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature supported by the device.

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).
Configuring Service Diagnosis

Configuring Service Diagnosis


Service diagnosis affects system performance. Therefore, enable service diagnosis only when fault locating is required. After locating faults, immediately run the undo trace enable command to disable service diagnosis.

When locating faults of DHCP, L2TP, AAA, or NAC service during user access, maintenance personnel can create diagnosis objects to diagnose services and locate the faults.

Users with different services have different attributes. Create diagnosis objects for different services based on different attributes.

  • DHCP service: based on the MAC address.
  • L2TP service: based on the calling number and tunnel ID.
  • AAA and NAC services: based on the MAC address, IP address, user name, user VLAN ID, access mode, or interface number.

The configurations of the trace enable and trace syslog source commands are not recorded in the configuration file. After the device restarts, run these commands again to make service diagnosis take effect.


  1. Run system-view

    The system view is displayed.

  2. Run trace enable [ brief ]

    Service diagnosis is enabled.

    By default, service diagnosis is disabled.

    • The trace enable brief command configures the device to output brief service diagnosis information.
    • The trace enable command configures the device to output detailed service diagnosis information.

  3. Run trace object { mac-address mac-address | ip-address ip-address [ vpn-instance vpn-instance-name ] | interface interface-type interface-number | user-vlan user-vlan-id [ qinq-vlan qinq-vlan-id ] | user-name user-name | access-mode { dot1x | mac-authen | portal | wlan } } * [ slot slot-id ] [ output { command-line | file file-name | syslog-server syslog-server-ip } ]

    A diagnosis object is created.

    By default, no diagnosis object is created. If you do not specify the direction at which information is exported, the default direction is the CLI.


    It is recommended that you export the diagnosis information to a specified file.

    The diagnosis output file cannot exceed 1 MB. The excessive diagnosis information is not recorded.

  4. (Optional) Run save trace information

    Diagnosis information in the device buffer is saved as a file.

    When you specify the device to export diagnosis information as a file, to view real-time diagnosis information, save diagnosis information in the buffer area as a file.

  5. (Optional) Run trace syslog source interface-type interface-number

    An interface is configured for exporting diagnosis information to a log server.

    By default, no interface is specified to export diagnosis information to a log server.

    When you specify the device to export diagnosis information to a log server, configure an interface for exporting diagnosis information to the log server.

Verifying the Configuration

  • Run the display trace information command to view information about service diagnosis.
  • Run the display trace instance [ instance-start-id [ instance-end-id ] | mac-address mac-address | ip-address ip-address [ vpn-instance vpn-instance-name ] | interface interface-type interface-number | cid cid ] [ slot slot-id ] command to view diagnosis instances on the device.

  • Run the display trace object [ service-object-id ] [ slot slot-id ] command to view the configuration about a diagnosis object.

Updated: 2019-03-06

Document ID: EDOC1100069336

Views: 42193

Downloads: 217

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next