[Contents] [Prev] [Next] [Index] [Report an Error]


Option: Use a Flow Collector Interface to Process and Export Multiple cflowd Records

You can manage multiple cflowd records with a flow collector interface. You create a flow collector interface from a Monitoring Services II 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 II PIC into a flow collector interface, include the flow-collector statement at the [edit chassis fpc fpc-slot pic pic-slot monitoring-services application] hierarchy level. To restore the monitoring functions of a Monitoring Services II PIC, include the monitor statement at the [edit chassis fpc fpc-slot pic pic-slot monitoring-services application] hierarchy level.

After you commit the configuration to convert the PIC between the monitor and flow-collector service types, you must take the PIC offline and then bring the PIC back online. Rebooting the router does not enable the new service type. You can use the Monitoring Services II PIC for either flow collection or monitoring, but not both types of service simultaneously.

A flow collector interface, designated by the cp-fpc/pic/port interface name, requires three logical interfaces for correct operation. Units 0 and 1 are used respectively as export channels 1 and 2 to send the compressed ASCII data files to an FTP server, while Unit 2 is used as a flow receive channel to receive cflowd records from a monitoring services interface.

Unlike conventional interfaces, IP addresses for flow collector logical interfaces set up a point-to-point connection between the Routing Engine and the flow collector. The address statement at the [edit interfaces cp-fpc/pic/port unit unit-number family inet] hierarchy level corresponds to the IP address of the Routing Engine. Likewise, the destination statement at the [edit interfaces cp-fpc/pic/port unit unit-number family inet address ip-address] hierarchy level corresponds to the IP address of the flow collector interface. As a result, you must configure the destination statement for Unit 0 and 1 (export channels 1 and 2) with local addresses that can reach the FTP server. Similarly, configure the destination statement for Unit 2 (flow receive channel) with a local IP address so it can reach the monitoring services interface that sends cflowd records.


To activate flow collector services after the Monitoring Services II PIC is converted into a flow collector, include the flow-collector statement at the [edit services] hierarchy level. You also need to configure several additional components:

To specify a flow collector interface as the destination for cflowd records coming from a Monitoring Services or Monitoring Services II PIC, include the collector-pic statement at the [edit forwarding-options monitoring group-name family inet output flow-export-destination] hierarchy level. You can select either the flow collector interface or a cflowd server as the destination for cflowd records, but you cannot select both destination types simultaneously.

The following is the combined set of hierarchy levels used for the flow collector service:

[edit]
chassis {
    fpc fpc-slot {
        pic pic-slot {
            monitoring-services {
                application flow-collector;
            }
        }
    }
}
interfaces {
    cp-fpc/pic/port {
        description "flow_collector_interface";
        unit 0 {
            family inet {
                address ip-address {
                    destination ip-address;
                }
            }
        }
        unit 1 {
            family inet {
                address ip-address {
                    destination ip-address;
                }
            }
        }
        unit 2 {            
            family inet {
                address ip-address {
                    destination ip-address;
                }
            }
        }
    }
    interface-fpc/pic/port {
        description "export_interface";
        unit 0 {
            family inet {
                address ip-address;
            }
        }
    }
    mo-fpc/pic/port {                
        description "monitoring_services_interface";
        unit 0 {
            family inet;
        }
    }
    SONET-or-ATM-interface-fpc/pic/port {                
        description "input_interface";
        encapsulation ppp;
        unit 0 {
            passive-monitor-mode;
        }
    }
}
forwarding-options {
    monitoring group1 {
        family inet {
            output {
                export-format cflowd-version-5;
                flow-active-timeout value;
                flow-inactive-timeout value;
                flow-export-destination collector-pic;
                interface mo-fpc/pic/port {
                    source-address ip-address;
                }
            }
        }
    }
}
services {
    flow-collector {
        destinations {                    
            "ftp://username@ftp-server-address-1//directory/" {
                password "encrypted-password";
            }
            "ftp://username@ftp-server-address-2//directory/" {
                password "encrypted-password";
            }
        }
        file-specification {
            file-specification-name {
                name-format "name-0-date_time-IfAlias_generation-number.bcp.bi.gz";
                data-format flow-compressed;
                transfer timeout value record-level size;
            }
        }
        interface-map {
            file-specification file-specification-name;
             collector cp-fpc/pic/port;
            interface-name {                    
                file-specification file-specification-name;
                collector cp-fpc/pic/port;
            }
        }
        transfer-log-archive {
            filename-prefix filename;
            maximum-age timeout-value;
            archive-sites {
                "ftp://username@ip-address//directory/" {
                    password "encrypted-password";
                }
            }
        }
    }
}

There is also a Juniper Networks enterprise Management Information Base (MIB) for the flow collector interface. The Flow Collector Services MIB allows you to use SNMP to monitor the flow collector interface. The MIB provides statistics on files, records, memory, FTP, and error states of a flow collector interface. It also provides SNMP traps for unavailable destinations, unsuccessful file transfers, flow overloading, and memory overloading. For more information, you can view the enterprise-specific Juniper Networks MIBs at: http://www.juniper.net/techpubs/software/junos/mibs.html.


[Contents] [Prev] [Next] [Index] [Report an Error]