Packet-Capture Read - HPE FlexNetwork 7500 Series Command Reference Manual

Network management and monitoring
Table of Contents

Advertisement

Usage guidelines
To stop the capture while it is capturing packets, use the packet-capture stop command.
If you configure both the autostop filesize option and autostop duration option, the packet capture
stops when any one of the limits for the stop options is reached.
Follow these restrictions and guidelines to specify the URL, username, and password:
The URL format is
optional, for example,
configured with a port number, you must enter the port number in the URL.
If the server address is an IPv6 address, enclose the address in a pair of brackets, for example,
ftp://[2001::1]/test.cfg
You can also specify the DNS domain name for the server address field, for example,
ftp://sdp:21/test.cfg.
The username and password must be the same as those configured on the FTP server. If the
server authenticates only the username, the password can be omitted.
Do not set a short capturing duration in the autostop duration seconds option. If the duration is too
short, the capture might stop when a user has not logged in to the FTP server. The captured packets
cannot be saved because a packet file has not been created.
Examples
# Capture incoming packets and store the data in the database.pcap file on the FTP server at
10.1.1.1. The username and password for logging in to the FTP server are 1 and 1, respectively.
<Sysname> packet-capture local interface ten-gigabitethernet 1/0/1 write url
ftp://10.1.1.1/database.pcap username 1 password simple 1
Related commands
display packet-capture status
packet-capture stop

packet-capture read

IMPORTANT:
To use the packet capture feature, you must install the feature image by using boot-loader, install,
or issu commands. For more information about image installation, see software upgrade and ISSU
in Fundamentals Configuration Guide.
Use packet-capture read to display the contents in a packet file.
Syntax
packet-capture read filepath [ display-filter disp-expression ] [ raw | { brief | verbose } ] *
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
filepath: Specifies the full path of the packet file to store captured packet data. The path must be a
case-sensitive string of up to 64 characters. The filename extension must be .pcap or .pcapng. For
ftp://ftp/
server address:port number/file name, where the port number is
ftp://192.168.1.1/test.cfg
and ftp://[2001::1]:21/test.cfg.
427
and ftp://192.168.1.1/test.cfg. If the server is

Advertisement

Table of Contents
loading

Table of Contents