Debian Codegraph @

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