fstrm\_dump(1) General Commands Manual fstrm\_dump(1)

# [NAME](#NAME)

fstrm\_dump - Display metadata and contents of Frame Streams file.

# [SYNOPSIS](#SYNOPSIS)

**fstrm\_dump *input-file* \[*output-file*]**

# [DESCRIPTION](#DESCRIPTION)

**fstrm\_dump** opens *input-file* and prints its framing metadata to *stderr* and frame data to *stdout*. The *input-file* may be "-" to read Frame Streams data from standard input.

Frame data is printed as a single line quoted string with non-printable characters replaced by backslash-prefixed hex escape sequences. For example, a frame containing "Hello, world\\n" would have its data printed as:

"Hello, world\\x0a"

The only framing metadata expected in a Frame Streams file are the start frame with a content type field, the data frame lengths, and the stop frame. These are printed, respectively, as:

FSTRM\_CONTROL\_START

FSTRM\_CONTROL\_FIELD\_CONTENT\_TYPE (*N* bytes)  
"*content-type*"

Data frame (*N*) bytes

FSTRM\_CONTROL\_STOP

If **fstrm\_dump** is given the second *output-file* parameter, input frames are additionally written to *output-file.* This is mainly useful for regression testing of the *fstrm\_file\_writer* code.

# [SEE ALSO](#SEE_ALSO)

[**fstrm\_capture**(1)](/man/os/fstrm/fstrm_capture.1), [**fstrm\_replay**(1)](/man/os/fstrm/fstrm_replay.1),  
Frame Streams C Library **https://farsightsec.github.io/fstrm**

---

Document: fstrm_dump(1) from fstrm 0.6.1-r8 (Chainguard OS)
Source: https://github.com/farsightsec/fstrm
