- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
10-Advanced WLAN Commands | 85.85 KB |
WLAN sniffer configuration commands
Wireless location configuration commands
display wlan rfid-tracking radio
wlan rfid-tracking vendor-port
display wlan capture
Syntax
display wlan capture [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display wlan capture to display information about the WLAN sniffer enabled APs.
Examples
# Display information about the WLAN sniffer enabled APs.
<Sysname> display wlan capture
WLAN Capture
--------------------------------------------------------------------------------
AP Name : ap1
Radio : 1
Radio Mode : 802.11n(2.4GHz)
Channel : 1
Capture Limit : 10000
File Name : CaptureRecord.dmp
Status : Capturing
--------------------------------------------------------------------------------
Table 1 Command output
Field |
Description |
AP Name |
AP name. |
Radio |
Radio ID. |
Radio Mode |
Radio mode, which depends on the device model. |
Channel |
Channel where the radio operates to capture packets. |
Capture Limit |
Maximum number of packets that can be captured. |
File Name |
Name of the file to save the captured packets. |
Status |
WLAN sniffer status: · Capturing. · Writing capture file. |
wlan capture packet-limit
Syntax
wlan capture packet-limit packet-limit
undo wlan capture packet-limit
View
System view
Default level
2: System level
Parameters
packet-limit packet-limit: Specifies the maximum number of packets that can be captured by an AP, in the range of 1 to 10000.
Description
Use wlan capture packet-limit to configure the maximum number of packets that can be captured by an AP.
Use undo wlan capture packet-limit to restore the default.
By default, the maximum number of packets that can be captured by an AP is 10000.
You are not allowed to change the maximum number of packets that can be captured by an AP during the WLAN sniffer process.
WLAN sniffer stops when the maximum number is reached.
Examples
# Configure the maximum number of packets that can be configured by an AP as 5000.
<Sysname> system-view
[Sysname] wlan capture packet-limit 5000
wlan capture file-name
Syntax
wlan capture file-name file-name
undo wlan capture file-name
View
System view
Default level
2: System level
Parameters
file-name file-name: Specifies the name of the CAP file (without an extension) to which the captured packets are saved.
Description
Use wlan capture file-name to specify the name of the CAP file to which the captured packets are saved.
Use undo wlan capture file-name to restore the default.
By default, the name of the CAP file to which the captured packets are saved is CaptureRecord.
The file has a fixed extension .dmp, which is not configurable.
You are not allowed to change the name of the CAP file during the WLAN sniffer process.
Examples
# Specify the name of the CAP file to which the captured packets are saved as CaptureRecord_001.
<Sysname> system-view
[Sysname] wlan capture file-name CaptureRecord_001
wlan capture start
Syntax
wlan capture start ap ap-name radio radio-number
View
System view
Default level
2: System level
Parameters
ap ap-name: Specifies an AP name, a case-insensitive string of 1 to 32 characters.
radio radio-number: Specifies a radio number.
Description
Use wlan capture start enable the WLAN sniffer function.
By default, the WLAN sniffer function is not configured.
· An auto AP does not support the WLAN sniffer function.
· WLAN sniffer can be enabled for only one radio of an AP.
· To enable WLAN sniffer on a radio, the AP must operate in normal mode and must be in Run state, and the working channel of the radio must be manually specified.
· Disabling the sniffer-enabled radio, deleting the Capture AP, disconnecting the Capture AP from the AC, or disabling WLAN sniffer stops the sniffer operation. The captured packets are saved to the specified CAP file in the default storage medium. The default storage medium varies with device models.
· The working mode of the AP cannot be changed with the work-mode monitor or device-detection enable command when it is capturing packets.
Examples
# Enable the WLAN sniffer function.
<Sysname> system-view
[Sysname] wlan capture start ap ap1 radio 1
wlan capture stop
Syntax
wlan capture stop
View
System view
Default level
2: System level
Parameters
None
Description
Use wlan capture stop to disable the WLAN sniffer function, and save the captured packets in the specified CAP file.
Examples
# Disable the WLAN sniffer function.
<Sysname> system-view
[Sysname] wlan capture stop
display wlan rfid-tracking radio
Syntax
display wlan rfid-tracking radio [ ap ap-name radio radio-id ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
2: System level
Parameters
ap ap-name: Displays radio information about the specified AP. If no AP is specified, radio information about all APs is displayed.
radio radio-id: Displays information about the specified radio. If you do not provide the option, information about all radios is displayed.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display wlan rfid-tracking radio to display wireless location radio information.
Examples
# Display the wireless location radio information.
<Sysname> display wlan rfid-tracking radio
WLAN RFID Tracking
--------------------------------------------------------------------------------
AP Radio Mode
--------------------------------------------------------------------------------
2220 1 MU/Tag
AP_wa2620e_agn_1 1 MU
AP_wa2620e_agn_1 2 Tag
AP_wa2620e_agn_2 1 N/A
Table 2 Command output
Field |
Description |
AP |
AP name. |
Radio |
Radio ID. |
Mode |
Wireless location mode: · MU/Tag—Supports both MU and Tag modes. · MU—MU mode. · Tag—Tag mode. · N/A—No wireless location mode is configured. |
rfid-tracking mode
Syntax
rfid-tracking mode { all | mu | tag }
undo rfid-tracking mode { all | mu | tag }
View
Radio view
Default level
2: System level
Parameters
all: Supports both tag and mu modes.
tag: Specifies the AeroScout-proprietary mode. Wireless devices in this mode are provided by AeroScout.
mu: Specifies the mu mode. Wireless location devices in this mode refer to all wireless devices such as mobiles phones, wireless network interface cards, and APs compliant with 802.11 protocols.
Description
Use rfid-tracking mode to configure the wireless location mode.
Use undo rfid-tracking mode to restore the default.
By default, no wireless location mode is configured.
Examples
# Configure the wireless location mode.
<Sysname> system-view
[Sysname] wlan ap ap1 model WA2100
[Sysname-wlan-ap-ap1] radio 1
[Sysname-wlan-ap-ap1-radio-1] rfid-tracking mode tag
wlan rfid-tracking enable
Syntax
wlan rfid-tracking enable
undo wlan rfid-tracking enable
View
System view
Default level
2: System level
Parameters
None
Description
Use wlan rfid-tracking enable to enable wireless location.
Use undo wlan rfid-tracking enable to restore the default.
By default, wireless location is disabled.
Examples
# Enable wireless location.
<Sysname> system-view
[Sysname] wlan rfid-tracking enable
wlan rfid-tracking vendor-port
Syntax
wlan rfid-tracking vendor-port vendor-port-value
undo wlan rfid-tracking vendor-port
View
System view
Default level
2: System level
Parameters
vendor-port vendor-port-value: Port number for the wireless location server vendor.
Description
Use wlan rfid-tracking vendor-port to specify the port number for the location server vendor.
Use undo wlan rfid-tracking vendor-port to restore the default.
By default, the port number for the location server vendor is 1144.
Examples
# Configure the port number for the location server vendor as 3000.
<Sysname> system-view
[Sysname] wlan rfid-tracking vendor-port 3000