Packet-Capture Remote Interface - HPE FlexNetwork 7500 Series Command Reference Manual

Network management and monitoring
Table of Contents

Advertisement

more information about setting a file path, see file system management in Fundamentals
Configuration Guide.
display-filter disp-expression: Specifies an expression to match packets to be displayed, a
case-sensitive string of 1 to 256 characters. If you do not specify a display filter expression, this
command displays all file contents.
raw: Displays file contents in hexadecimal notation. If you do not specify this keyword, the capture
displays packet data in a string format.
brief: Displays brief information about captured packets in the file.
verbose: Displays detailed information about captured packets in the file.
Usage guidelines
To stop displaying the file contents, press Ctrl+C.
The device stores captured packets in .pcap files but can read .pcap and .pcapng files.
If you do not specify the raw, brief, or verbose keyword, this command displays brief information
about captured packets in the file.
Examples
# Display the contents in the file flash:/test/aaaa.pcap.
<Sysname> packet-capture read flash:/test/aaaa.pcap
Related commands
packet-capture interface

packet-capture remote interface

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
mdc-admin
Parameters
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
# Capture incoming packets on Ten-GigabitEthernet 1/0/1 and specify the RPCAP service port
number as 2014.
<Sysname> packet-capture remote interface ten-gigabitethernet 1/0/1 port 2014
428

Advertisement

Table of Contents
loading

Table of Contents