You configure data file formats, name formats, and transfer characteristics for the flow collection files. File records are sent to the destination FTP server when the timer expires or when a preset number of records are received, whichever comes first.
To configure the flow collection file format, include the file-specification statement at the [edit services flow-collector] hierarchy level:
- [edit services flow-collector]
-
file-specification {
-
-
variant variant-number {
-
data-format format;
-
name-format format;
-
-
transfer {
- record-level number;
- timeout seconds;
- }
- }
- }
To set the data file format, include the data-format statement. To set the file name format, include the name-format statement. To set the export timer and file size thresholds, include the transfer statement and specify values for the timeout and record-level options.
For example, you can specify the name format as follows:
- [edit services flow-collector file-specification variant variant-number]
- name-format "cFlowd-py69Ni69-0-%D_%T-%I_%N.bcp.bi.gz";
In this example, cFlowd-py69Ni69-0 is the static portion used verbatim, %D is the date in YYYYMMDD format, %T is the time in HHMMSS format, %I is the value of ifAlias, %N is the generation number, and bcp.bi.gz is a user-configured string. A number of macros are supported for expressing the date and time information in different ways; for a complete list, see the summary section for name-format.