Ethereal Packet Sniffing

Using Command Line Options

Ethereal supports a large number of command line options to control its behavior when first run. This section will document some of the most commonly used options. Several of the other options are used to manipulate certain aspects of the GUI (font, height of Summary Window, Protocol Tree Window, Data Window, etc.) or set elements like link type or automatic scrolling. However, these options are not as common and will not be covered in this section.

Capture and File Options

The most commonly used Ethereal options are those related to captures and files. Table 4.18 lists some of the most common command line options related to these tasks.

Table 4.18: Capture and File Command Line Options

Command Line Option

Description

-i

Set the name of the interface used for live captures to .

-k

Start capture immediately. This requires the i option.

-a :

Sets an autostop condition for the capture. may be one of duration or filesize. If the is duration then must be the number of seconds the capture should run before it stops. If is filesize then is the number of kilobytes that should be captured before the capture stops.

-c

Sets the number of packets to read before stopping the capture. After packets have been read the capture will stop.

-r

Read the capture saved in .

-w

Write the capture to .

-b

Enable the use of files in a ring buffer for...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: CMOS Cameras
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.