---
name: "flow-rptfmt"
section: "1"
platform: "linux"
package: "flow-tools"
version: "1:0.68-12.5+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/flow-rptfmt"
---

# flow-rptfmt(1)

Format the output of flow-report in ASCII or HTML

## NAME

**flow-rptfmt** — Format the output of flow-report in ASCII or HTML

## SYNOPSIS

**flow-rptfmt** \[-hHnp\]  \[-a *alarm\_time*\]  \[-f *format*\]  \[-F *fields*\]  \[-m *max\_lines*\]  \[-s *sort\_field*\]

## DESCRIPTION

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**

## BUGS

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

## AUTHOR

Mark Fullmer maf@splintered.net

## SEE ALSO

[**flow-tools**(1)](/flow-tools/1.md)
