.\" Copyright (c) 2000-2003 QoSient, LLC .\" All rights reserved. .\" .\" QOSIENT, LLC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS .\" SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND .\" FITNESS, IN NO EVENT SHALL QOSIENT, LLC BE LIABLE FOR ANY .\" SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER .\" RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF .\" CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN .\" CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" .TH RA 1 "12 November 2000" "ra 2.0" .SH NAME \fBra\fP \- read \fBargus(8)\fP data. .SH COPYRIGHT Copyright (c) 2000-2003 QoSient. All rights reserved. .SH SYNOPSIS \fBra\fP .br \fBra [raoptions] [- filter-expression]\fP .SH DESCRIPTION .IX "ra command" "" "\fLra\fP \(em argus data" .LP .B Ra reads .BR argus(8) data from either \fIstdin\fP, an \fIargus-file\fP, or from a remote \fIargus-server\fP, filters the records it encounters based on an optional \fIfilter-expression\fP and either prints the contents of the .BR argus(5) records that it encounters to \fBstdout\fP or writes them out into an .B argus(5) datafile. .LP .SH OPTIONS .TP 4 4 .B \-A When generating ASCII output, print the application byte counts. .TP 4 4 .B \-b Dump the compiled transaction-matching code to standard output and stop. This is useful for debugging filter expressions. .TP 4 4 .B \-C [host:] Indicate the optional host and required port number for the remote Cisco Netflow record source. This will cause \fBra(1)\fP to open a UDP socket, binding on the host and supplied port, and attempt to read Cisco Netflow records from the open socket. .TP 4 src .B \-d Print specified number of \fB\fP from the user data capture buffer. The \fB\fP value can be a number, or an expression that specifies the number of bytes for either the source or destination buffer. Formats include: .nf -d 32 print 32 bytes from the src and dst buffer -d s24 print 24 bytes from the src buffer -d d16 print 16 bytes from the dst buffer -d s32:d8 print 32 bytes from the src buffer and 8 bytes from the dst buffer .fi .TP 4 4 .B \-D Print debug information corresponding to \fB\fP to stderr, if program compiled to support debug printing. As the level increases, so does the amount of debug information .B ra(1) will print. Values range from 1-8. .TP 4 4 .B \-E When using a filter expression at the end of the command, this option will cause .B ra(1) to write the records that are rejected by the filter into .B .TP 4 4 .B \-F Use \fB\fP as a source of configuration information. The format of this file is identical to \fBrarc(5)\fP. The data read from \fB\fP overrides any prior configuration information. .TP 4 4 .B \-h Print an explanation of all the arguments. .TP 4 4 .B \-n Do not translate host and service numbers to names. \fB-nn\fP will suppress translation of protocol numbers, as well. .TP 4 4 .B \-p Print \fB\fP number of units of precision for fraction of time. .TP 4 4 .B \-q Run in quiet mode. Configure Ra to not print out the contents of records. This can be used with the -T and -a options to support aggregate activity without printing each input record. .TP 4 4 .B \-r - Read data from \fB\fP in the order presented on the commandline. '\fB\-\fP' denotes stdin. Because this option can have many arguments, it must be terminated with a '-'. The '-' of subsequent options is sufficient. Ra can read \fBgzip(1)\fP, \fBbzip2(1)\fP and \fBcompress(1)\fP compressed data files. .TP 4 4 .B \-R Print response data when available. This option applies to ICMP, arp and BOOTP traffic to indicate the responses to these protocol specific queries. .TP 4 4 .B \-s <[-][[+[#]]field ...> - Specify the \fBfields\fP to print. Ra uses a default printing field list, by specifying a field you can replace this list completely, or you can modify the existing default print list, using the optional '-' and '+[#]' form of the command. The available fields to print are: .nf startime, lasttime, count, dur, avgdur, saddr, daddr, proto, sport, dport, ipid, stos, dtos, sttl, dttl, bytes, sbytes, dbytes, pkts, spkts, dpkts, load, loss, rate, srcid, ind, mac, dir, jitter, status, user, win, trans, seq, vlan, mpls .fi Examles are: .nf -s srcaddr print only the source address. -s -bytes removes the bytes field from list. -s +2srcid adds MAC addresses as the 2nd field. -s mac pkts prints MAC addresses and src and dst pkt counts. .fi .TP 4 4 .B \-S Specify a remote \fIargus-server\fP \fB\fP. Use the optional ':pornum' to specify a port number other than the default; 561. .TP 4 4 .B \-t Specify the \fB