.\" .\" Argus-5.0 Software .\" Copyright (c) 2000-2024 QoSient, LLC .\" All rights reserved. .\" .\" .de TQ . br . ns . TP \\$1 .. .TH RACOMPARE 1 "12 July 2023" "racompare 5.0.3" .SH NAME \fBracompare\fP \- display and compare sorted network flow data .SH SYNOPSIS \fBracompare -r baseline:argus.data.file [\fBraoptions\fP] [\fB--\fP \fIfilter-expression\fP] .SH DESCRIPTION .IX "racompare command" "" "\fLra\fP \(em argus data" .LP .B Racompare reads .BR argus(8) data from an \fIargus-file\fP, or from a remote data source, and compares sorted list of network flow records against flow baselines. When read from a file, \fBracompare\fP displays the resulting flow caches when the file is completed, updating its status display line with each input. When reading from a live argus data stream, \fBracompare\fP will display data, asynchronously in realtime, as it is received from the source. Flow data is aggregated as its read, (see \fBracluster.1\fP), using the same aggregation model for the baseline as the input data for comparison, resulting in a single line for each network transaction encountered in the data stream. The default sorting key is matched packets per flow, but other keys can be used instead. Like .B ratop when reading realtime flows from a remote source, flow records that have been idle for more than the default 60s are removed. Various output options, such as the specific columns of data to display, the entry idle timeout value, the screen refresh rate, etc ... are all configurable. \fBracompare\fP uses \fBncurses\fP and \fBreadline.3\fP, when available, to provide an \fBemacs.1\fP or \fBvi.1\fP look and feel for displaying, navigating and modifying network flow data. Configure these features using \fBreadline's\fP configuruation strategy, .inputrc in the home directory. See 'man readline'. While running \fBracompare\fP a lot of help can be obtained from the on-line help system, using the ":h" command. .SH OPTIONS Command line option specifications are processed from left to right. Options can be specified more than once. If conflicting options are specified, later specifications override earlier ones. This makes it viable to create a shell alias for .B racompare with preferred defaults specified, then override those preferred defaults as desired on the command line. \fBracompare\fP, like all ra based clients, supports a number of \fBra options\fP including filtering of input argus records through a terminating filter expression, and the ability to specify the output style, format and contents for printing data. See \fBra(1)\fP for a complete description of \fBra options\fP. \fBracompare(1)\fP specific options are: .PP .PD 0 .TP 4 4 .BI \-m "\| aggregation object\^" Supported aggregation objects are: .PP .RS .TP 15 .B none use a null flow key. .TP .B srcid argus source identifier. .TP .B smac source mac(ether) addr. .TP .B dmac destination mac(ether) addr. .TP .B soui oui portion of the source mac(ether) addr. .TP .B doui oui portion of the destination mac(ether) addr. .TP .B smpls source mpls label. .TP .B dmpls destination label addr. .TP .B svlan source vlan label. .TP .B dvlan destination vlan addr. .TP .B saddr/[l|m] source IP addr/[cidr len | m.a.s.k]. .TP .B daddr/[l|m] destination IP addr/[cidr len | m.a.s.k]. .TP .B matrix/l sorted src and dst IP addr/cidr len. .TP .B proto transaction protocol. .TP .B sport source port number. Implies use of 'proto'. .TP .B dport destination port number. Implies use of 'proto'. .TP .B stos source TOS byte value. .TP .B dtos destination TOS byte value. .TP .B sttl src -> dst TTL value. .TP .B dttl dst -> src TTL value. .TP .B stcpb src -> dst TCP base sequence number. .TP .B dtcpb dst -> src TCP base sequence number. .TP .B inode[/l|m]] intermediate node IP addr/[cidr len | m.a.s.k], source of ICMP mapped events. .TP .B sco source ARIN country code, if present. .TP .B dco destination ARIN country code, if present. .TP .B sas source node origin AS number, if available. .TP .B das destination node origin AS number, if available. .TP .B ias intermediate node origin AS number, if available. .TP .RE .TP 4 4 .BI \-M "\| modes\^" Supported modes are: .PP .RS .TP 15 .B correct Attempt to correct the direction of flows by also searching the reverse flow key, if a match isn't found in the cache. This mode is on by default when using the default full 5-tuple flow key definitions. .TP .B nocorrect Turn off flow correction for direction. This mode is used by default if the flow key has been changed. .TP .B preserve Preserve fields when aggregating matching flow data. .TP .B nopreserve Do not preserve fields when aggregating matching flow data. .TP .B norep Do not generate an aggregate statistic for each flow. This is used primarily when the output represents a single object. Primarily used when merging status records to generate single flows that represent single transactions. .TP .B rmon Generate data suitable for producing RMON types of metrics. .TP .B nocurses Do not use the curses interface to present data. This option is primarily used when debugging racompare, to get around the issues of screen maniuplation within a debugger like gdb or lldb. .PD .RE .SH DISPLAY The first several lines of the .B racompare display show global state. The top line shows how racompare is running, with the list of command line options that are in effect. In the upper most right corner is the current time. The next line is the column title line, that labels each column. The bottom line is the command line, where you will see and prepare ':' commands. The line above the bottom line is the status line, showing the number of flows that are in the \fBracompare\fP process queue, display queue, the total number of flows read, the rate of flow records read, and the current status, whether it is Active, reading records, or Idle, when all input is complete. This line can be toggled on or off using ^G. Flows caches are displayed one per row and are sorted by total pkts, by default. \fBracompare\fP sorting can be configured using the \fIrarc\fP variable RA_SORT_ALGORITHMS, or by using the ":P" command. \fBracompare\fP supports 3 basic filters. Like all other ra* programs, \fBracompare\fP will send its command line filter to its remote argus data sources, to limit the load on the wire. This is the "remote" filter. Also, \fBracompare\fP supports a "local" filter, that is applied to flow record input. Normally this is used when the remote argus data source doesn't support the syntax of the specific filter. \fBracompare\fP also support a "display" filter, that is used to select which flow records are to be displayed. This filter does not have any impact on the internal flow caches that \fBracompare\fP is tracking, so you can change the "display" filter at any time and see the current state of other flows. .SH COLOR \fBracompare\fP supports color which is configured using the rarc file. The RA_COLOR_CONFIG file is a fall through specification of flow filters and field color definitions. For flows that match a filter, specific fields in the row will be painted the configured color. Because the filter specification supports the " cont " directive, a single row can be painted by any number of color definitions. When color is enabled \fBracompare\fP will attempt to color IP addresses to indicate that local host address, and the local network. This is very helpful in mobile host installations, where you may not know what IP address has been assigned the localhost. \fBracompare\fP also supports coloring local addresses based on the RA_LOCAL rarc variable. See racolor.conf.5. .SH ARGUS EVENTS Introduced in argus-3.0.8, \fBracompare\fP supports correlating specific ARGUS_EVENT data with flow data, which can be turned on through the use of the RA_CORRELATE_EVENTS rarc variable. \fBracompare\fP will process argus-lsof event data generated by host bourne argi, and label flow data with user, pid and process name metadata. While experimental, it is production level functionality, and can be used with other ra* programs to enhance flow data with host os process information. See argus-3.0.8 documentation on ARGUS_EVENTS. .SH EXAMPLES .TP racompare -r argus.file -s rank stime dur:14 saddr daddr proto pkts bytes Read the file argus.file, and display the resulting aggregated and sorted list of flow records, using the default sorting methods. .TP racompare -S localhost Run racompare as a live display of realtime flow traffic. .ss 12 .cs B .ft .fi .br .SH COPYRIGHT Copyright (c) 2000-2024 QoSient. All rights reserved. .SH AUTHORS .nf Carter Bullard (carter@qosient.com). .fi .SH SEE ALSO rarc(5) racluster(1) racluster.conf(5) readline(3)