Configure Flow Collection
You can process and export multiple cflowd records with a flow collector interface. You create a flow collector interface on a Monitoring Services PIC. The flow collector interface combines multiple cflowd records into a compressed ASCII data file and exports the file to an FTP server. To convert a Monitoring Services PIC into a flow collector interface, include the
flow-collectorstatement at the [edit chassis fpcfpc-slotpicpic-slotmonitoring-services application] hierarchy level. You can use the Monitoring Services PIC for either flow collection or monitoring, but not for both types of service simultaneously. When converting the PIC between service types, you must configure theflow-collectorstatement, take the PIC offline, and then bring the PIC back online. Restarting the router does not enable the new service type.A flow collector interface, designated by the
cp-fpc/pic/portinterface name, requires three logical interfaces for correct operation. Units 0 and 1 are used to send the compressed ASCII data files to an FTP server, while Unit 2 is used to receive cflowd records from a monitoring services interface.
To activate flow collector services after the Monitoring Services PIC is converted into a flow collector, include the
flow-collectorstatement at the [edit services] hierarchy level. After you activate the flow collector, you need to configure the following components:
- Destination of the FTP server
- File specifications
- Input interface-to-flow collector interface mappings
- Transfer log settings
To configure flow collection, you include the following statements at the [
edit services] hierarchy level of the configuration:[edit services]flow-collector {analyzer-addressaddress;analyzer-idname;destinations {ftp:url {password "password";}file-specification {variantvariant-number{data-formatformat;name-formatformat;transfer { record-levelnumber; timeoutseconds; }}}interface-map {collectorinterface-name;file-specificationvariant-number;interface-name{file-specificationvariant-number;collectorinterface-name;}}retrynumber;retry-delayseconds;transfer-log {destinations {ftp:url{password "password";usernameusername;}}filename "file-name";intervalminutes;maximum-sizenumber;}}