source: trunk/tools/tracesplit/tracesplit.1 @ 1572

Last change on this file since 1572 was 1572, checked in by salcock, 3 years ago
  • Updated manpages for traceanon and tracemerge to reflect new -Z option.
  • Attempted to add some consistency in the naming of long options for -z and -Z across tools
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
RevLine 
[393]1.TH TRACESPLIT "1" "October 2005" "tracesplit (libtrace)" "User Commands"
2.SH NAME
3tracesplit \- split traces
4.SH SYNOPSIS
[1081]5.B tracesplit
[1153]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]
[1199]13[ \fB-S \fRsnaplen | \fB--snaplen=\fRsnaplen]
[1572]14[ \fB-z \fRlevel | \fB--compress-level=\fRlevel]
[1569]15[ \fB-Z \fRmethod | \fB--compress-type=\fRmethod]
[394]16inputuri outputuri ...
[1081]17.SH DESCRIPTION
[393]18tracesplit splits one trace into multiple tracefiles
19.TP
20\fB\-f\fR bpf filter
21output only packets that match tcpdump style bpf filter
22
23.TP
24\fB\-c\fR count
[1010]25output count packets per output file.  The output file will be named after
26the basename given in the outputuri with the packet number of the first packet
27in this file.
[393]28
29.TP
30\fB\-b\fR bytes
31output bytes bytes per file
32
33.TP
34\fB\-i\fR seconds
35start a new tracefile after "seconds" seconds
36
37.TP
38\fB\-s\fR unixtime
39don't output any packets before unixtime
40
41.TP
42\fB\-e\fR unixtime
43don't output any packets after unixtime
44
[1153]45.TP
46\fB\-m\fR maxfiles
47do not create more than "maxfiles" trace files
48
[1199]49.TP
50\fB\-S\fR snaplen
[1348]51Truncate packets to "snaplen" bytes long.  The default is collect the entire
52packet.
[1199]53
[1569]54.TP
55\fB\-z\fR level
56Compress the data using the specified compression level, ranging from 0 to 9.
57Higher compression levels tend to result in better compression but require
58more processing power to compress.
59
60.TP
61\fB-Z\fR compression-method
62Compress the data using the specified compression algorithm. Accepted methods
63are "gzip", "bzip2", "lzo" or "none". Default value is none unless a
64compression level is specified, in which case gzip will be used.
65
[393]66.SH EXAMPLES
67create a 1MB erf trace of port 80 traffic.
68.nf
[1569]69tracesplit \-z 1 -Z gzip \-f 'port 80' \-b $[ 1024 * 1024 ]
70erf:/traces/bigtrace.gz erf:/traces/port80.gz
[393]71.fi
72
[1153]73.SH LINKS
74More details about tracesplit (and libtrace) can be found at
75http://www.wand.net.nz/trac/libtrace/wiki/UserDocumentation
76
[393]77.SH SEE ALSO
[1082]78libtrace(3), tracemerge(1), tracefilter(1), traceconvert(1), tracesplit_dir(1),
[1492]79tracereport(1), tracertstats(1), tracestats(1), tracepktdump(1), traceanon(1),
80tracesummary(1), tracereplay(1), tracediff(1)
[1082]81
[393]82.SH AUTHORS
83Perry Lorier <perry@cs.waikato.ac.nz>
Note: See TracBrowser for help on using the repository browser.