[1481ba7] | 1 | .TH TRACERTSTATS "1" "November 2006" "tracertstats (libtrace)" "User Commands" |
---|
[1369834] | 2 | .SH NAME |
---|
| 3 | tracertstats \- perform simple filter based analysis on a trace |
---|
| 4 | .SH SYNOPSIS |
---|
| 5 | .B tracertstats |
---|
| 6 | [ -f | --filter bpf ] |
---|
| 7 | [ -i | --interval interval ] |
---|
[d2df7c4] | 8 | [ -t | --threads max ] |
---|
[1369834] | 9 | [ -c | --count count ] |
---|
| 10 | [ -o | --output-format csv,txt,png,html ] |
---|
[67e9e2e] | 11 | [ -m | --merge-inputs ] |
---|
[1369834] | 12 | inputuri... |
---|
| 13 | .P |
---|
| 14 | .B tracertstats |
---|
| 15 | -H|--libtrace-help |
---|
| 16 | .SH DESCRPTION |
---|
| 17 | tracertstats takes a list of bpf expressions and outputs the number of packets |
---|
| 18 | and bytes that match that expression every interval seconds, or count packets. |
---|
| 19 | .TP |
---|
| 20 | .PD 0 |
---|
| 21 | .BI \-f " bpf-filter" |
---|
| 22 | .TP |
---|
| 23 | .PD |
---|
| 24 | .BI \-\^\-filter " bpf-filter" |
---|
| 25 | Add another "bpf filter" |
---|
| 26 | |
---|
| 27 | .TP |
---|
| 28 | .PD 0 |
---|
| 29 | .BI \-i " interval" |
---|
| 30 | .TP |
---|
| 31 | .PD |
---|
| 32 | .BI \-\^\-interval " interval" |
---|
| 33 | Output results every \fIinterval\fR seconds. |
---|
| 34 | |
---|
| 35 | .TP |
---|
| 36 | .PD 0 |
---|
[d2df7c4] | 37 | .BI \-t " max" |
---|
| 38 | .TP |
---|
| 39 | .PD |
---|
| 40 | .BI \-\^\-threads " max" |
---|
| 41 | Use \fImax\fR packet processing threads. The default is 4 threads, but adding |
---|
| 42 | more or less threads may improve performance. |
---|
| 43 | |
---|
| 44 | .TP |
---|
| 45 | .PD 0 |
---|
[3298e12] | 46 | .BI \-c " count" |
---|
[1369834] | 47 | .TP |
---|
| 48 | .PD |
---|
| 49 | .BI \-\^\-count " count" |
---|
[d2df7c4] | 50 | Stop after processing this amount of packets. Note that this is only a |
---|
| 51 | lower bound as this is only evaluated once per thread per interval. |
---|
[1369834] | 52 | |
---|
| 53 | .TP |
---|
| 54 | .PD 0 |
---|
[67e9e2e] | 55 | .BI \-m |
---|
| 56 | .TP |
---|
| 57 | .PD |
---|
| 58 | .BI \-\^\-merge-inputs |
---|
| 59 | Treats all inputs as a single input, resulting a single unified output rather |
---|
| 60 | than an output for each input. Works best with traces that are consecutive to |
---|
| 61 | create a single CSV, for instance. |
---|
| 62 | |
---|
| 63 | .TP |
---|
| 64 | .PD 0 |
---|
[1369834] | 65 | .BI \-o " format" |
---|
| 66 | .TP |
---|
| 67 | .PD |
---|
| 68 | .BI \-\^\-output\-format " format" |
---|
[67e9e2e] | 69 | Selects the output format. |
---|
[1369834] | 70 | |
---|
| 71 | .RS |
---|
| 72 | .TP |
---|
| 73 | txt |
---|
| 74 | Human readable text. This is the default output format which provides output |
---|
| 75 | easily understood by a human. This format has the disadvantage that it takes |
---|
| 76 | up quite a bit of horizontal space. |
---|
| 77 | |
---|
| 78 | .TP |
---|
| 79 | csv |
---|
| 80 | Comma Seperated Values. This is suitable for further analysis in a spreadsheet, |
---|
| 81 | or other program. |
---|
| 82 | |
---|
| 83 | .TP |
---|
| 84 | png |
---|
| 85 | PNG Graphic. Produces a fairly incomprehensible png graph. This relies on |
---|
| 86 | gdc being available at compile time. |
---|
| 87 | |
---|
| 88 | .TP |
---|
| 89 | html |
---|
| 90 | This produces output suitable for display to a human in a webbrowser. |
---|
| 91 | |
---|
| 92 | .SH EXAMPLES |
---|
| 93 | .nf |
---|
| 94 | tracertstats \-\^\-filter 'host sundown' \\ |
---|
| 95 | \-\^\-filter 'port http' \\ |
---|
| 96 | \-\^\-filter 'port ftp or ftp-data' \\ |
---|
| 97 | \-\^\-filter 'port smtp' \\ |
---|
| 98 | \-\^\-filter 'tcp[tcpflags] & tcp-syn!=0' \\ |
---|
| 99 | \-\^\-filter 'not ip' \\ |
---|
| 100 | \-\^\-filter 'ether[0] & 1 == 1' \\ |
---|
| 101 | \-\^\-filter 'icmp[icmptype] == icmp-unreach' \\ |
---|
| 102 | \-\^\-output\-format html |
---|
| 103 | erf:/traces/trace1.gz \\ |
---|
| 104 | erf:/traces/trace2.gz |
---|
| 105 | .fi |
---|
| 106 | |
---|
[634089d] | 107 | .SH LINKS |
---|
| 108 | More details about tracertstats (and libtrace) can be found at |
---|
| 109 | http://www.wand.net.nz/trac/libtrace/wiki/UserDocumentation |
---|
| 110 | |
---|
[1369834] | 111 | .SH SEE ALSO |
---|
[67825b2] | 112 | libtrace(3), tracemerge(1), tracesplit(1), tracesplit_dir(1), tracefilter(1), |
---|
[1481ba7] | 113 | traceconvert(1), tracereport(1), tracepktdump(1), traceanon(1), tracesummary(1), |
---|
[d6dc0f6] | 114 | traceconvert(1), tracereplay(1), tracediff(1), traceends(1), tracetopends(1) |
---|
[67825b2] | 115 | |
---|
[1369834] | 116 | .SH AUTHORS |
---|
| 117 | Perry Lorier <perry@cs.waikato.ac.nz> |
---|