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

Network management and monitoring
Table of Contents

Advertisement

Related commands
packet-capture read

packet-capture local interface

Use packet-capture local interface to capture incoming packets on an interface and save the
captured packets to a local file or to a remote file on an FTP server.
Syntax
packet-capture local interface interface-type interface-number [ capture-filter capt-expression |
limit-frame-size bytes | autostop filesize kilobytes | autostop duration seconds ] * write { filepath
| url url [ username username [ password { cipher | simple } string ] ] }
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
interface-type interface-number: Specifies an Ethernet interface by its type and number.
capture-filter capt-expression: Specifies an expression to match packets to be captured, a
case-sensitive string of 1 to 256 characters. If you do not specify a capture filter expression, the
device captures all incoming packets on an interface.
limit-frame-size bytes: Sets the maximum number of bytes to capture for a packet. The value range
is 64 to 8000 bytes, and the default value is 8000 bytes.
autostop filesize kilobytes: Stops capturing packets if the maximum packet file size is exceeded
when file rotation is disabled. The kilobytes argument sets the maximum packet file size. The value
range is 1 to 65536 kilobytes. If you do not set a limit, the packet file size is unlimited.
autostop duration seconds: Stops capturing packets when the capturing duration expires. The
seconds argument sets the capturing duration. The value range is 1 to 2147483647 seconds. If you
do not set a limit, the capturing duration is unlimited.
write: Stores the captured packet data.
filepath: Specifies the full path of a local 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. For more
information about setting a file path, see file system management in Fundamentals Configuration
Guide.
url url: Specifies the URL of a remote packet file on an FTP server to store captured packet data. The
URL must be a case-sensitive string of 1 to 255 characters. The URL string must not contain at signs
(@), and the specified username and password. If you do not specify a URL, the captured packet
data is not saved.
username username: Specifies a username for logging in to the FTP server. The username is a
case-sensitive string of 1 to 32 characters.
password: Specifies a password for logging in to the FTP server.
cipher: Specifies a password in encrypted form.
simple: Specifies a password in plaintext form. For security purposes, the password specified in
plaintext form will be stored in encrypted form.
string: Specifies the password. Its plaintext form is a case-sensitive string of 1 to 32 characters. Its
encrypted form is a case-sensitive string of 1 to 73 characters.
426

Advertisement

Table of Contents
loading

Table of Contents