<HTML ><HEAD ><TITLE >flow-receive</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.73 "></HEAD ><BODY CLASS="REFENTRY" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><H1 ><A NAME="AEN1" ><SPAN CLASS="APPLICATION" >flow-receive</SPAN ></A ></H1 ><DIV CLASS="REFNAMEDIV" ><A NAME="AEN6" ></A ><H2 >Name</H2 ><SPAN CLASS="APPLICATION" >flow-receive</SPAN > -- Receive flow data with the NetFlow protocol.</DIV ><DIV CLASS="REFSYNOPSISDIV" ><A NAME="AEN10" ></A ><H2 >Synopsis</H2 ><P ><B CLASS="COMMAND" >flow-receive</B > [-h] [-A<TT CLASS="REPLACEABLE" ><I > AS0_substitution</I ></TT >] [-b<TT CLASS="REPLACEABLE" ><I > big|little</I ></TT >] [-C<TT CLASS="REPLACEABLE" ><I > comment</I ></TT >] [-d<TT CLASS="REPLACEABLE" ><I > debug_level</I ></TT >] [-f<TT CLASS="REPLACEABLE" ><I > filter_fname</I ></TT >] [-F<TT CLASS="REPLACEABLE" ><I > filter_definition</I ></TT >] [-m<TT CLASS="REPLACEABLE" ><I > privacy_mask</I ></TT >] [-o<TT CLASS="REPLACEABLE" ><I > output_file</I ></TT >] [-S<TT CLASS="REPLACEABLE" ><I > stat_interval</I ></TT >] [-t<TT CLASS="REPLACEABLE" ><I > tag_fname</I ></TT >] [-T<TT CLASS="REPLACEABLE" ><I > active_def</I ></TT >|<TT CLASS="REPLACEABLE" ><I >active_def,active_def</I ></TT >...] [-V<TT CLASS="REPLACEABLE" ><I > pdu_version</I ></TT >] [-z<TT CLASS="REPLACEABLE" ><I > z_level</I ></TT >] {<TT CLASS="REPLACEABLE" ><I >localip/remoteip/port</I ></TT >}</P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN43" ></A ><H2 >DESCRIPTION</H2 ><P >The <B CLASS="COMMAND" >flow-receive</B > utility is used to receive flows in NetFlow format. When the <TT CLASS="REPLACEABLE" ><I >remoteip</I ></TT > is configured only flows from that exporter will be processed, this is the most secure and recommended configuration. When the <TT CLASS="REPLACEABLE" ><I >localip</I ></TT > is configured <B CLASS="COMMAND" >flow-receive</B > will only process flows sent to the <TT CLASS="REPLACEABLE" ><I > localip</I ></TT > IP address. If <TT CLASS="REPLACEABLE" ><I >remoteip</I ></TT > is 0 (not configured) flows from any source IP address are accepted. Multiple non aggregated PDU versions may be accepted at once to support Cisco's Catalyst 6500 NetFlow implementation which exports from both the supervisor and MSFC with the same IP address and same port but different export versions. In this case the exports will be stored in the format specified by the -V flag or whichever export type is received first. </P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN52" ></A ><H2 >OPTIONS</H2 ><P ></P ><DIV CLASS="VARIABLELIST" ><DL ><DT >-A<TT CLASS="REPLACEABLE" ><I > AS0_substitution</I ></TT ></DT ><DD ><P >Cisco's NetFlow exports represent the local autonomous system as 0 instead of the real value. This option can be used to replace the 0 in the export with the a configured value. Unfortunately under certain configurations AS 0 can also represent a cache miss or non forwarded traffic so use with caution.</P ></DD ><DT >-b<TT CLASS="REPLACEABLE" ><I > big</I ></TT >|<TT CLASS="REPLACEABLE" ><I >little</I ></TT ></DT ><DD ><P >Byte order of output.</P ></DD ><DT >-C<TT CLASS="REPLACEABLE" ><I > Comment</I ></TT ></DT ><DD ><P >Add a comment.</P ></DD ><DT >-d<TT CLASS="REPLACEABLE" ><I > debug_level</I ></TT ></DT ><DD ><P >Enable debugging.</P ></DD ><DT >-f<TT CLASS="REPLACEABLE" ><I > filter_fname</I ></TT ></DT ><DD ><P >Filter list filename. Defaults to <TT CLASS="FILENAME" >/var/lib/cfg/filter</TT >.</P ></DD ><DT >-F<TT CLASS="REPLACEABLE" ><I > filter_definition</I ></TT ></DT ><DD ><P >Select the active definition. Defaults to default.</P ></DD ><DT >-h</DT ><DD ><P >Display help.</P ></DD ><DT >-m<TT CLASS="REPLACEABLE" ><I > privacy_mask</I ></TT ></DT ><DD ><P >Apply <TT CLASS="REPLACEABLE" ><I >privacy_mask</I ></TT > to the source and destination IP address of flows. For example a privacy_mask of 255.255.255.0 would convert flows with source/destination IP addresses 10.1.1.1 and 10.2.2.2 to 10.1.1.0 and 10.2.2.0 respectively.</P ></DD ><DT >-o<TT CLASS="REPLACEABLE" ><I > file</I ></TT ></DT ><DD ><P >Write to <TT CLASS="FILENAME" >file</TT > instead of the standard out.</P ></DD ><DT >-S<TT CLASS="REPLACEABLE" ><I > stat_interval</I ></TT ></DT ><DD ><P >When configured <B CLASS="COMMAND" >flow-receive</B > will emit a timestamped message on stderr every <TT CLASS="REPLACEABLE" ><I >stat_interval</I ></TT > minutes indicating counters such as the number of flows received, packets processed, and lost flows.</P ></DD ><DT >-t<TT CLASS="REPLACEABLE" ><I > tag_fname</I ></TT ></DT ><DD ><P >Load tags from <TT CLASS="FILENAME" >tag_name</TT ></P ></DD ><DT >-T<TT CLASS="REPLACEABLE" ><I > active_def</I ></TT >|<TT CLASS="REPLACEABLE" ><I >active_def,active_def...</I ></TT ></DT ><DD ><P >Use <TT CLASS="REPLACEABLE" ><I >active_def</I ></TT > as the active tag definition(s).</P ></DD ><DT >-V<TT CLASS="REPLACEABLE" ><I > pdu_version</I ></TT ></DT ><DD ><P >Use <TT CLASS="REPLACEABLE" ><I >pdu_version</I ></TT > format output. <P CLASS="LITERALLAYOUT" > 1 NetFlow version 1 (No sequence numbers, AS, or mask)<br> 5 NetFlow version 5<br> 6 NetFlow version 6 (5+ Encapsulation size)<br> 7 NetFlow version 7 (Catalyst switches)<br> 8.1 NetFlow AS Aggregation<br> 8.2 NetFlow Proto Port Aggregation<br> 8.3 NetFlow Source Prefix Aggregation<br> 8.4 NetFlow Destination Prefix Aggregation<br> 8.5 NetFlow Prefix Aggregation<br> 8.6 NetFlow Destination (Catalyst switches)<br> 8.7 NetFlow Source Destination (Catalyst switches)<br> 8.8 NetFlow Full Flow (Catalyst switches)<br> 8.9 NetFlow ToS AS Aggregation<br> 8.10 NetFlow ToS Proto Port Aggregation<br> 8.11 NetFlow ToS Source Prefix Aggregation<br> 8.12 NetFlow ToS Destination Prefix Aggregation<br> 8.13 NetFlow ToS Prefix Aggregation<br> 8.14 NetFlow ToS Prefix Port Aggregation<br> 1005 Flow-Tools tagged version 5</P ></P ></DD ><DT >-z<TT CLASS="REPLACEABLE" ><I > z_level</I ></TT ></DT ><DD ><P >Configure compression level to <TT CLASS="REPLACEABLE" ><I > z_level</I ></TT >. 0 is disabled (no compression), 9 is highest compression. </P ></DD ></DL ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN136" ></A ><H2 >EXAMPLES</H2 ><DIV CLASS="INFORMALEXAMPLE" ><A NAME="AEN138" ></A ><P ></P ><P >Listen on port 9800 on any local interface for exports from IP address 10.0.0.1, store the exports in <TT CLASS="FILENAME" >flows</TT ></P ><P > <B CLASS="COMMAND" >flow-receive</B > 0/10.0.0.1/9800 > <TT CLASS="FILENAME" >flows</TT ></P ><P >Listen on port 9800 on any local interface from any IP address, display the received flows with flow-print.</P ><P > <B CLASS="COMMAND" >flow-receive</B > 0/0/9800 | <B CLASS="COMMAND" >flow-print</B ></P ><P ></P ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN148" ></A ><H2 >BUGS</H2 ><P >It is not currently possible to convert between the aggregated formats (8.x) and the non aggregated formats (1,5,6,7).</P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN151" ></A ><H2 >AUTHOR</H2 ><P >Mark Fullmer <TT CLASS="EMAIL" ><<A HREF="mailto:maf@splintered.net" >maf@splintered.net</A >></TT ></P ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN158" ></A ><H2 >SEE ALSO</H2 ><P ><SPAN CLASS="APPLICATION" >flow-tools</SPAN >(1)</P ></DIV ></BODY ></HTML >