Debian Codegraph @

man/man1/racompare.1

raw
1 .\"
2 .\" Argus-5.0 Software
3 .\" Copyright (c) 2000-2024 QoSient, LLC
4 .\" All rights reserved.
5 .\"
6 .\"
7 .de TQ
8 . br
9 . ns
10 . TP \\$1
11 ..
12 .TH RACOMPARE 1 "12 July 2023" "racompare 5.0.3"
13 .SH NAME
14 \fBracompare\fP \- display and compare sorted network flow data
15 .SH SYNOPSIS
16 \fBracompare -r baseline:argus.data.file [\fBraoptions\fP] [\fB--\fP \fIfilter-expression\fP]
17 .SH DESCRIPTION
18 .IX "racompare command" "" "\fLra\fP \(em argus data"
19 .LP
20 .B Racompare
21 reads
22 .BR argus(8)
23 data from an \fIargus-file\fP, or from a remote data source, and
24 compares sorted list of network flow records against flow baselines. When
25 read from a file, \fBracompare\fP displays the resulting flow caches
26 when the file is completed, updating its status display line with
27 each input. When reading from a live argus data stream, \fBracompare\fP
28 will display data, asynchronously in realtime, as it is received
29 from the source.
30
31 Flow data is aggregated as its read, (see \fBracluster.1\fP), using the
32 same aggregation model for the baseline as the input data for comparison,
33 resulting in a single line for each network transaction encountered in the
34 data stream. The default sorting key is matched packets per flow,
35 but other keys can be used instead. Like
36 .B ratop
37 when reading realtime flows from a remote source, flow records that have been
38 idle for more than the default 60s are removed.
39 Various output options, such as the specific columns of data to display,
40 the entry idle timeout value, the screen refresh rate, etc ... are
41 all configurable.
42
43 \fBracompare\fP uses \fBncurses\fP and \fBreadline.3\fP, when available, to provide
44 an \fBemacs.1\fP or \fBvi.1\fP look and feel for displaying, navigating and
45 modifying network flow data. Configure these features using \fBreadline's\fP
46 configuruation strategy, .inputrc in the home directory. See 'man readline'.
47
48 While running \fBracompare\fP a lot of help can be obtained from the on-line
49 help system, using the ":h" command.
50
51 .SH OPTIONS
52 Command line option specifications are processed from left to right.
53 Options can be specified more than once.
54 If conflicting options are specified, later specifications override earlier
55 ones.
56 This makes it viable to create a shell alias for
57 .B racompare
58 with preferred defaults specified, then override those preferred defaults as
59 desired on the command line.
60
61 \fBracompare\fP, like all ra based clients, supports a number of \fBra options\fP
62 including filtering of input argus records through a terminating filter
63 expression, and the ability to specify the output style, format and contents
64 for printing data. See \fBra(1)\fP for a complete description of \fBra options\fP.
65 \fBracompare(1)\fP specific options are:
66 .PP
67 .PD 0
68 .TP 4 4
69 .BI \-m "\| aggregation object\^"
70 Supported aggregation objects are:
71 .PP
72 .RS
73 .TP 15
74 .B none
75 use a null flow key.
76 .TP
77 .B srcid
78 argus source identifier.
79 .TP
80 .B smac
81 source mac(ether) addr.
82 .TP
83 .B dmac
84 destination mac(ether) addr.
85 .TP
86 .B soui
87 oui portion of the source mac(ether) addr.
88 .TP
89 .B doui
90 oui portion of the destination mac(ether) addr.
91 .TP
92 .B smpls
93 source mpls label.
94 .TP
95 .B dmpls
96 destination label addr.
97 .TP
98 .B svlan
99 source vlan label.
100 .TP
101 .B dvlan
102 destination vlan addr.
103 .TP
104 .B saddr/[l|m]
105 source IP addr/[cidr len | m.a.s.k].
106 .TP
107 .B daddr/[l|m]
108 destination IP addr/[cidr len | m.a.s.k].
109 .TP
110 .B matrix/l
111 sorted src and dst IP addr/cidr len.
112 .TP
113 .B proto
114 transaction protocol.
115 .TP
116 .B sport
117 source port number. Implies use of 'proto'.
118 .TP
119 .B dport
120 destination port number. Implies use of 'proto'.
121 .TP
122 .B stos
123 source TOS byte value.
124 .TP
125 .B dtos
126 destination TOS byte value.
127 .TP
128 .B sttl
129 src -> dst TTL value.
130 .TP
131 .B dttl
132 dst -> src TTL value.
133 .TP
134 .B stcpb
135 src -> dst TCP base sequence number.
136 .TP
137 .B dtcpb
138 dst -> src TCP base sequence number.
139 .TP
140 .B inode[/l|m]]
141 intermediate node IP addr/[cidr len | m.a.s.k], source of ICMP mapped events.
142 .TP
143 .B sco
144 source ARIN country code, if present.
145 .TP
146 .B dco
147 destination ARIN country code, if present.
148 .TP
149 .B sas
150 source node origin AS number, if available.
151 .TP
152 .B das
153 destination node origin AS number, if available.
154 .TP
155 .B ias
156 intermediate node origin AS number, if available.
157
158 .TP
159 .RE
160 .TP 4 4
161 .BI \-M "\| modes\^"
162 Supported modes are:
163 .PP
164 .RS
165 .TP 15
166 .B correct
167 Attempt to correct the direction of flows by also searching the reverse
168 flow key, if a match isn't found in the cache. This mode is on by default
169 when using the default full 5-tuple flow key definitions.
170 .TP
171 .B nocorrect
172 Turn off flow correction for direction. This mode is used by default
173 if the flow key has been changed.
174 .TP
175 .B preserve
176 Preserve fields when aggregating matching flow data.
177 .TP
178 .B nopreserve
179 Do not preserve fields when aggregating matching flow data.
180 .TP
181 .B norep
182 Do not generate an aggregate statistic for each flow. This is used
183 primarily when the output represents a single object. Primarily used
184 when merging status records to generate single flows that represent
185 single transactions.
186 .TP
187 .B rmon
188 Generate data suitable for producing RMON types of metrics.
189 .TP
190 .B nocurses
191 Do not use the curses interface to present data. This option is
192 primarily used when debugging racompare, to get around the issues
193 of screen maniuplation within a debugger like gdb or lldb.
194 .PD
195 .RE
196 .SH DISPLAY
197 The first several lines of the
198 .B racompare
199 display show global state. The top line shows how racompare is running,
200 with the list of command line options that are in effect. In the upper
201 most right corner is the current time. The next line is the column title
202 line, that labels each column. The bottom line is the command line,
203 where you will see and prepare ':' commands. The line above the bottom
204 line is the status line, showing the number of flows that are in the
205 \fBracompare\fP process queue, display queue, the total number of flows read,
206 the rate of flow records read, and the current status, whether it is Active,
207 reading records, or Idle, when all input is complete. This line can be
208 toggled on or off using ^G.
209
210 Flows caches are displayed one per row and are sorted by total pkts,
211 by default. \fBracompare\fP sorting can be configured using the \fIrarc\fP
212 variable RA_SORT_ALGORITHMS, or by using the ":P" command.
213
214 \fBracompare\fP supports 3 basic filters. Like all other ra* programs, \fBracompare\fP
215 will send its command line filter to its remote argus data sources, to limit the
216 load on the wire. This is the "remote" filter. Also, \fBracompare\fP supports
217 a "local" filter, that is applied to flow record input. Normally this is used
218 when the remote argus data source doesn't support the syntax of the specific
219 filter. \fBracompare\fP also support a "display" filter, that is used to select
220 which flow records are to be displayed. This filter does not have any
221 impact on the internal flow caches that \fBracompare\fP is tracking, so you
222 can change the "display" filter at any time and see the current state of
223 other flows.
224
225 .SH COLOR
226 \fBracompare\fP supports color which is configured using the rarc file.
227 The RA_COLOR_CONFIG file is a fall through specification of flow
228 filters and field color definitions. For flows that match a filter,
229 specific fields in the row will be painted the configured color.
230 Because the filter specification supports the " cont " directive,
231 a single row can be painted by any number of color definitions.
232
233 When color is enabled \fBracompare\fP will attempt to color IP addresses
234 to indicate that local host address, and the local network. This is
235 very helpful in mobile host installations, where you may not know
236 what IP address has been assigned the localhost. \fBracompare\fP also supports
237 coloring local addresses based on the RA_LOCAL rarc variable.
238
239 See racolor.conf.5.
240
241
242 .SH ARGUS EVENTS
243 Introduced in argus-3.0.8, \fBracompare\fP supports correlating specific
244 ARGUS_EVENT data with flow data, which can be turned on through the use
245 of the RA_CORRELATE_EVENTS rarc variable. \fBracompare\fP will process
246 argus-lsof event data generated by host bourne argi, and label flow
247 data with user, pid and process name metadata. While experimental,
248 it is production level functionality, and can be used with other ra*
249 programs to enhance flow data with host os process information.
250 See argus-3.0.8 documentation on ARGUS_EVENTS.
251
252
253 .SH EXAMPLES
254 .TP
255 racompare -r argus.file -s rank stime dur:14 saddr daddr proto pkts bytes
256
257 Read the file argus.file, and display the resulting aggregated and sorted
258 list of flow records, using the default sorting methods.
259
260 .TP
261 racompare -S localhost
262 Run racompare as a live display of realtime flow traffic.
263
264 .ss 12
265 .cs B
266 .ft
267 .fi
268 .br
269 .SH COPYRIGHT
270 Copyright (c) 2000-2024 QoSient. All rights reserved.
271 .SH AUTHORS
272 .nf
273 Carter Bullard ([email protected]).
274 .fi
275
276 .SH SEE ALSO
277 rarc(5)
278 racluster(1)
279 racluster.conf(5)
280 readline(3)