521
packet-capture remote interface (on wired devices/fat APs)
Use packet-capture remote interface to capture incoming packets on an interface.
Syntax
packet-capture remote interface interface-type interface-number [ port port ]
Views
User view
Predefined user roles
network-admin
Parameters
interface interface-type interface-number: Specifies an Ethernet interface by its type and number.
port port: Specifies the RPCAP service port by its number. If you do not specify a RPCAP service
port, RPCAP service port 2002 is used.
Usage guidelines
After this command is executed, the client (such as Wireshark) connected to the AP can obtain
packets captured on the specified interface.
To stop the capture while it is capturing packets, use the packet-capture stop command.
Examples
• On a wired device:
# Capture incoming packets on GigabitEthernet 1/0/1 and specify the RPCAP service port number
as 2014.
<Sysname> packet-capture remote interface gigabitethernet 1/0/1 port 2014
• On a fat AP:
# Capture incoming packets on WLAN-Radio 1/0/1 and specify the RPCAP service port number as
2014.
<Sysname> packet-capture remote interface wlan-radio 1/0/1 port 2014
Related commands
display packet-capture status
packet-capture stop
packet-capture stop
Use packet-capture stop to stop the packet capture.
Syntax
packet-capture stop