Previous page Next page

tcpdump

Displays headers from packets arriving on the specified interface.

Syntax
tcpdump [ count <packets> ] 
 
        [ interface <name> ] 
 
        [ snarf <bytes> ] 
 
        [ numeric ]
 
        [ absolute ] 
 
        [ hexadecimal ] 
 
        [ quiet | verbose | more-verbose ] 
 
        [ no-timestamp ]
 
        [ timeout <minutes> ]
 
        [ raw-packets ]
 
        [ module <slot> ]
 
        [ <expression> ]
 
        [ | { include | exclude } <regexp> ]
 
        [ > <url> ]
 
Arguments
Prerequisites

System operations mode, login-level access.

Occurrence

Use once.

Default

count--1 when run on a peripheral module in local mode, otherwise none

name--name of lowest numbered interface

bytes--68

timeout--2 minutes

If no interface is specified, default is Ethernet0

Time stamp is included

Description

The tcpdump command is available both as a system-wide command and a local command.

When you are connected to the system through the management module’s ethernet port, the tcpdump command will work on any module that you specify with the slot argument.

When you are connected to a peripheral module’s console port, the command operates as a local command on the module to which you are physically connected. Not all arguments are supported in local mode.

All but one of the listed arguments are optional (expression is required).

Order is important--if you specify multiple arguments, they must appear in the order shown:

Each qualifier/primitive pair must be separated by and, or, not:

	tcpdump raw-packets “host 1.2.3.4 and port 80” 
 
	                                          > ftp://mydomain.com/myfile
 
	
 

If url is set to a valid FTP, HTTP or HTTPS URL (with the required pipe character, >), output will be sent to the specified destination. See the copy command for URL syntax.

See http://www.tcpdump.org for more information about the tcpdump utility.


Previous page Next page