flow-rptfmt(1)

flow-rptfmt1

Format the output of flow-report in ascii or html

Usage

flow-rptfmt [-hHnp] [-a alarm_time] [-f format] [-F fields] [-m max_lines] [-s sort_field]

Overview

The flow-rptfmt utility processes the CSV output of flow-report into formatted ASCII or HTML. Sorting, maximum display lines, field filter, header display, and name substitution are supported during post processing. Additionally an alarm can be set for use in CGI scripts to limit the CPU time of formatting.

Options

-a alarm_time

Exit after alarm_time seconds.

-f ascii|html

Set output format. Defaults to ASCII.

-F display_fields

Limit columns to display_fields

-h

Help.

-H

Display header information.

-m max_lines

Limit rows to max_lines.

-n

Enable symbol table lookups.

-p

Display in percent total form.

-s sort_field

Sort on sort_field. Prepend with + for ascending, - for descending sort.

Examples

Format the output of daily-ip-protocol.txt in ASCII. Display the ip-protocol and octets fields in percent total format with symbols. Limit output to top 5 sorted by octets.

cat daily-ip-protocol.txt | flow-rptfmt -fascii -Fip-protocol,octets -p -n -m5

Releases

Unchanged in 7 releases since Debian 4.0 (Etch).

  1. 4.0–10

Bugs

Sorting could be faster. Percent totals could be faster. May not work with flow-report prior to 0.68.

Author

Mark Fullmer [email protected]

From flow-tools 1:0.68-12.5+b3 in Debian 10 (Buster). Parsed by carta from the page's man source.