Collecting Other Information
- Collecting Configuration Issues
- Collecting Statistics on Forwarded Packets
- Collecting TS Channel Information
- Collecting Information About the Packet Forwarding Process (Applicable to Both the AC and AP)
- Collecting the Count of Discarded Packets (Applicable to Both the AC and AP)
- Collecting Forwarding Support Information (Applicable to both the AP and AC)
- Collecting System Support Information
Collecting Configuration Issues
(Mandatory) Checking Current Configuration on the AC
- Web system
- Choose Diagnosis > Diagnosis Tool > One-click Information Collection to access the One-click Information Collection page.
- Click One-click Collection. In the displayed dialog box, click OK.
- After the collection is complete, the system displays a dialog box. Click OK in the dialog box.
- The system displays the current collection file name and collection time.
- Click the export button to export the current collection file web_diaginfo.txt.
- CLI
<AC> display current-configuration all //Check current configuration. <AC> display version //Check version information. <AC> display patch-information //Check patch information. <AC> compare configuration // Compare the current configuration with the saved configuration to check whether they are the same.
In V200R019C10 and later versions, the command lines are changed as follows:
- display umac wcfg history record-number //Check historical configurations of an AP.
- display umac wcfg global-cfg //Check the configuration of global variables on the WCFG module.
- display umac wcfg radio-cfg radio-id //Check the configuration of a radio with a specified ID.
- display umac wcfg vap-cfg radio radio-id vap vap-id //Check the configuration of a VAP with a specified ID.
Checking Historical Records of the Control Plane Configuration and Current Configuration on the AP
If the configuration delivered by the AC does not take effect or the actual values are not consistent with the configured values, collect the following information.
[AP-diagnose] display wsrv wcfg history record-number //Check historical records of the AP configuration. [AP-diagnose] display wsrv wcfg global-cfg //Check the configuration of global variables of the WCFG module. [AP-diagnose] display wsrv wcfg radio-cfg radio-id //Check the configuration of a specified radio. [AP-diagnose] display wsrv wcfg vap-cfg vap-id //Check the configuration of a specified VAP.
Checking the Actual Configuration on the Wi-Fi Driver
In V200R019C00 and earlier version:
[AP-diagnose] iwconfig radio radio-id vap vap-id
- radio-id: 0-1. 0 indicates the 2.4 GHz radio, and 1 indicates the 5 GHz radio.
- vap-id: 0-15. Check the WLAN ID of the VAP profile bound to an AP radio on the AC, and determine the VAP ID through the formula: VAP ID = WLAN ID - 1
If multiple VAPs are configured, check VAP IDs one by one.
For example, if the WLAN ID of the VAP profile bound to the 2.4 GHz radio is 1, run the following command to check the VAP ID.
[AP-diagnose] iwconfig radio 0 vap 0 IEEE 802.11bgn ESSID:"A-5F-03" Mode:Master Frequency=2.462 GHz Access Point: E4:68:A3:52:11:A0 Bit Rate:130 Mb/s Tx-Power=20 dBm RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=94/94 Signal level=-49 dBm Noise level=-95 dBm Rx invalid nwid:9077372 Rx invalid crypt:0 Rx invalid frag:-- Tx excessive retries:-- Invalid misc:-- Missed beacon:--
In V200R019C10:
[AP-diagnose] display umac vap-config radio 1 vap 0 Radio type :802.11ax SSID :HUAWEI-WLAN Status :run Mode :host Channel :52 Bandwidth :20Mhz Access point :60d7-55b5-3c10 Security mode :restricted
If the ESSID is displayed, the VAP is successfully created on the AP.
Collecting Statistics on Forwarded Packets
Collect statistics on error packets (for example, on an AP).
- Enable debugging before collecting information.
<AP> terminal debugging <AP> terminal monitor <AP> debugging timeout 0 [AP-diagnose] debugging cap error statistics
- Collect statistics on error packets.
[AP-diagnose] display cap all error statistics
- After collecting information, disable debugging to avoid impact on the system performance.
[AP-diagnose] undo debugging cap error statistics <AP> undo terminal debugging <AP> undo terminal monitor
Collect statistics on forwarding events (for example, on an AP).
- Enable debugging before collecting information.
<AP> terminal debugging <AP> terminal monitor <AP> debugging timeout 0 [AP-diagnose] debugging cap event statistics
- Collect statistics on forwarding events.
[AP-diagnose] display cap all event statistics
- After collecting information, disable debugging to avoid impact on the system performance.
[AP-diagnose] undo debugging cap event statistics <AP> undo terminal debugging <AP> undo terminal monitor
Collecting TS Channel Information
The TS channel is the only channel used for communication between the forwarding plane and control plane. Collect TS channel information to obtain information about receiving and sending of ARP/DHCP/ICMP/TELENT packets, as well as messages exchanged between the control plane and forwarding plane. The TS channel information is collected all the time.
- Check the receiving and sending of packets over the TS channel.
[AC-diagnose] display cap-fpi stat ts all
- Check receiving and sending of messages on the control plane.
[AC-diagnose] display cap-fpi stat comm all
Collecting Information About the Packet Forwarding Process (Applicable to Both the AC and AP)
If a ping operation fails, an IP address cannot be obtained through the Dynamic Host Configuration Protocol (DHCP), or a packet is discarded due to unknown reasons, you can trace and print the packet forwarding process to check the entries that are queried on the forwarding module after the packet is received from the driver, services that are implemented, and the port to which the packet is sent, or the reason why the packet is discarded.
- Enable debugging before collecting information.
<AP> terminal debugging <AP> terminal monitor <AP> debugging timeout 0
- Set filter conditions.
You can set multiple filter conditions and the logical relationship between conditions is AND. For example, you can set filter conditions to match both the source MAC address and source IP address contained in a packet.
[AP-diagnose] debugging cap print condition src-mac 8c70-5a47-4034 [AP-diagnose] debugging cap print condition src-ip 10.1.1.253
Run the following command to reset filter conditions for printed packets.
[AP-diagnose] debugging cap print condition clear
- Set the length of printed packets.
For example, run the following command to set the length of a printed packet containing the header and data to 128 bytes.
[AP-diagnose] debugging cap print print-length 128
- Set the number of printed packets.
If the forwarding process of one packet is traced, print one packet. If the number of printed packets is set too large, the displayed information is repeatedly refreshed and the forwarding performance is affected.
[AP-diagnose] debugging cap print on print-num 1
- Disable the debugging function after collecting information.
[AP-diagnose] debugging cap print off <AP> undo terminal monitor <AP> undo terminal debugging
Collecting the Count of Discarded Packets (Applicable to Both the AC and AP)
- Check or clear the number of packets discarded because of CPCAR exceeding on the wired side.
<AP> display cpu-defend statistics wired <AP> reset cpu-defend statistics wired
- Check or clear the number of packets discarded because of CPCAR exceeding on the wireless side.
<AP> display cpu-defend statistics wireless <AP> reset cpu-defend statistics wireless
Collecting Forwarding Support Information (Applicable to both the AP and AC)
Collect information about the forwarding memory leakage.
- Enable debugging before collecting information.
<AC> terminal debugging <AC> terminal monitor
- Run forwarding debugging commands.
<AC> system-view [AC] diagnose [AC-diagnose] set cap cap-cmd 7 //Check the count of packets received and sent by the driver. [AC-diagnose] set cap cap-cmd 8 //Check the count of packets received and sent by the port hardware. [AC-diagnose] set cap cap-cmd 9 //Check memory information about the FPA module. [AC-diagnose] set cap cap-cmd 10 //Check information about the forwarding memory pool. [AC-diagnose] set cap cap-cmd 11 //Check information about memory leakage in the forwarding memory pool. [AC-diagnose] set cap cap-cmd 12 //Check the count of error packets and messages transmitted through the IIC channel.
- Check error information about the forwarding core.
[AC-diagnose] display cap high-memory offset 0 length 65535
Collecting System Support Information
Collecting Black Box Information
AC
[AC-diagnose] display inspect black-box record all process all
AP
[AP-diagnose] display inspect black-box record all
Collecting Memory Leak Information
Check which memory partition occupies a large size of memory, where a memory leak may occur. You can also periodically check whether the memory usage keeps increasing. If so, a memory leak may occur.
[AC-diagnose] display memory-usage [AC-diagnose] display memory-linux [AC-diagnose] display inspect mem-debug-info 1 0 0 0 [AC-diagnose] display inspect mem-debug-info 26 1 0xffffffff 0 [AC-diagnose] display inspect mem-debug-info 13 1 0 0
Collecting Restart Reason Information (Applicable to Both APs and ACs)
<AP> display reset-reason <AP> system-view [AP] diagnose [AP-diagnose] display kernel-logbuf level 1 [AP-diagnose] display kernel-logbuf level 2 [AP-diagnose] display kernel-logbuf level 3 [AP-diagnose] display lastwords all
Collect the mon-file.txt file.
<AP> dir Directory of flash:/ Idx Attr Size(Byte) Date Time(LMT) FileName 0 drw- - Jan 01 1970 05:50:51 log 1 drw- - Jan 01 1970 00:00:42 sys 2 drw- - Jan 01 1970 00:00:49 dhcp 3 drw- - Jan 01 1970 00:00:11 corefile 4 -rw- 540 Jan 01 1970 00:00:51 rsa_server_key.efs 5 drw- - Jan 01 1970 00:02:16 security 6 -rw- 479,232 Aug 20 2005 11:04:35 mon_file.txt 7 -rw- 6 Jan 01 1970 00:00:04 current_username
- Collecting Configuration Issues
- Collecting Statistics on Forwarded Packets
- Collecting TS Channel Information
- Collecting Information About the Packet Forwarding Process (Applicable to Both the AC and AP)
- Collecting the Count of Discarded Packets (Applicable to Both the AC and AP)
- Collecting Forwarding Support Information (Applicable to both the AP and AC)
- Collecting System Support Information