source: tools/tracesplit/tracesplit.1 @ 0a65ed8

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 0a65ed8 was 0a65ed8, checked in by Perry Lorier <perry@…>, 14 years ago

Add support for truncating packets to "snaplen" bytes

  • Property mode set to 100644
File size: 1.7 KB
Line 
1.TH TRACESPLIT "1" "October 2005" "tracesplit (libtrace)" "User Commands"
2.SH NAME
3tracesplit \- split traces
4.SH SYNOPSIS
5.B tracesplit
6[ \fB-f \fRbpf | \fB--filter=\fRbpf]
7[ \fB-c \fRcount | \fB--count=\fRcount]
8[ \fB-b \fRbytes | \fB--bytes=\fRbytes]
9[ \fB-i \fRseconds | \fB--seconds=\fRseconds]
10[ \fB-s \fRunixtime | \fB--starttime=\fRunixtime]
11[ \fB-e \fRunixtime | \fB--endtime=\fRunixtime]
12[ \fB-m \fRmaxfiles | \fB--maxfiles=\fRmaxfiles]
13[ \fB-S \fRsnaplen | \fB--snaplen=\fRsnaplen]
14inputuri outputuri ...
15.SH DESCRIPTION
16tracesplit splits one trace into multiple tracefiles
17.TP
18\fB\-f\fR bpf filter
19output only packets that match tcpdump style bpf filter
20
21.TP
22\fB\-c\fR count
23output count packets per output file.  The output file will be named after
24the basename given in the outputuri with the packet number of the first packet
25in this file.
26
27.TP
28\fB\-b\fR bytes
29output bytes bytes per file
30
31.TP
32\fB\-i\fR seconds
33start a new tracefile after "seconds" seconds
34
35.TP
36\fB\-s\fR unixtime
37don't output any packets before unixtime
38
39.TP
40\fB\-e\fR unixtime
41don't output any packets after unixtime
42
43.TP
44\fB\-m\fR maxfiles
45do not create more than "maxfiles" trace files
46
47.TP
48\fB\-S\fR snaplen
49Truncate packets to "snaplen" bytes long.
50
51.SH EXAMPLES
52create a 1MB erf trace of port 80 traffic.
53.nf
54tracemerge erf:/traces/bigtrace.gz \-f 'port 80' \-b $[ 1024 * 1024 ]
55erf:/traces/port80.gz
56.fi
57
58.SH LINKS
59More details about tracesplit (and libtrace) can be found at
60http://www.wand.net.nz/trac/libtrace/wiki/UserDocumentation
61
62.SH SEE ALSO
63libtrace(3), tracemerge(1), tracefilter(1), traceconvert(1), tracesplit_dir(1),
64tracereport(1), tracertstats(1), tracestats(1), tracedump(1), traceanon(1),
65tracesummary(1)
66
67.SH AUTHORS
68Perry Lorier <perry@cs.waikato.ac.nz>
Note: See TracBrowser for help on using the repository browser.