IPFIXDUMP(1)
π IPFIXDUMP(1) β the libfixbuf page, bestie edition β¨
okay so you found yourself at the ipfixDump page and you're like "what is this" β don't worry, I got you π«Ά it's part of libfixbuf, and I'm gonna walk you through every single flag because that's what besties do π
πΈ NAME πΈ
ipfixDump β prints the contents of an IPFIX file as human-readable text. literally its whole personality π
β¨ SYNOPSIS β¨
ipfixDump [--in FILE_NAME] [--out FILE_NAME]
[--rfc5610] [--element-file FILE_NAME] [--yaf]
[--templates] [--data] [--stats]
[--hexdump[=LEN]]
ipfixDump [--version]
ipfixDump [--help]
π¦ DESCRIPTION π¦
So ipfixDump is this iconic little tool that reads an IPFIX file and prints what's inside it as human-readable ASCII, so you (yes you, bestie) can actually analyze the file instead of staring at raw bytes like π.
It prints all the message headers, templates, data records, options templates, and options records to the output β plus a one-line summary of the file's content. the whole package, no crumbs left behind π₯
It also supports IPFIX structured data in the form of basicLists, subTemplateLists, and subTemplateMultiLists. fancy, I know π
By default, ipfixDump reads the IPFIX file from the standard input and writes the text to the standard output. If you wanna point it at a specific input or output file, use the --in or --out option respectively. easy π
β οΈ real talk: ipfixDump requires the input file to contain the IPFIX templates that describe the data records within the file, and those templates must appear before the records that use them. Any records that don't have a corresponding template are just... ignored π (no template, no entry, those are the rules)
The default information model used by ipfixDump includes only the standard information elements defined by IANA <https://www.iana.org/assignments/ipfix/ipfix.xhtml> and provided by libfixbuf. But there are three ways to augment the set of elements β three! β¨
- The
--rfc5610option instructsipfixDumpto watch the input for options records that define private enterprise information elements (as defined by RFC5610 <https://tools.ietf.org/html/rfc5610.html>) and to add those elements to the information model. - The
--element-file=FILE_NAMEoption tellsipfixDumpto parse the contents of FILE_NAME and add those information elements to the information model. The argument is an XML file whose schema is that used by IANA's XML Information Element Registry <https://www.iana.org/assignments/ipfix/ipfix.xml>, with the following additions:
π cert:enterpriseId
A number representing the Private Enterprise Number of the element.
π cert:reversible
A boolean value ("true", "yes", or 1 for true; "false", "no", or 0 for false) that specifies whether the element may have a separate identity in a reverse flow.
The --element-file option may be used multiple times to load multiple files, and the loaded elements replace existing elements with the same identifier. out with the old, in with the new π
- The
--yafoption loads the CERT private enterprise information elements into the information model. These elements are used by the NetSA toolsyaf(1),pipeline(8),super_mediator(1), andrwsilk2ipfix(1).
This option is implemented as a wrapper over the --element-file option where the file name is cert_ipfix.xml, and ipfixDump checks several directories to attempt to find this file, stopping once it finds the first file. The list of directories, in search order, is:
- the directory
../share/libfixbufrelative to the directory containing the application - the
libfixbufsubdirectory of the"datadir"directory specified whenipfixDumpwas configured (defaults to$prefix/share) - the
share/libfixbufsubdirectory installation folder for the GLib-2 library - the
libfixbufsubdirectory of the directories specified by the$XDG_DATA_DIRSenvironment variable, or/usr/local/shareand/usr/share/libfixbufwhen that variable is empty
πipfixDumpexits with an error if it is unable to find thecert_ipfix.xmlfile. no file, no vibes.
See <https://tools.netsa.cert.org/cert-ipfix-registry/> for additional information about this file π§
π OPTIONS π
The following options are available for ipfixDump β buckle up, we're going through all of them π
--in FILE_NAMEβ Sets the input file name to FILE_NAME. When the option isn't specified,ipfixDumpreads from the standard input, or exits with an error when the standard input is a terminal.ipfixDumpreads from the standard input if FILE_NAME is"-". (yes, a literal dash, she's lowkey iconic like that)--out FILE_NAMEβ Sets the output file name to FILE_NAME. If FILE_NAME exists, it is overwritten π. The string"-"may be used to write to standard output (which is the default).--rfc5610β TellsipfixDumpto scan the IPFIX input file for options records that define private enterprise information elements and to add those elements to the information model. β¨--element-file FILE_NAMEβ Loads the XML file FILE_NAME and incorporates information element information found in it. The format of the file is described above. The option may be used multiple times to load multiple files, and later elements replace existing elements when they have the same identifier.--yafβ Searches for a file namedcert_ipfix.xmlin several locations and loads that file as if it was an argument to--element-file.ipfixDumpexits with an error if it is unable to find thecert_ipfix.xmlfile. π--templatesβ Suppresses the printing of records, causing the output to contain only message headers, templates, and a summary line. just the templates bestie, nothing else π--dataβ Suppresses the printing of templates, causing the output to contain only message headers, records, and a summary line. the mirror image, we love a duo π--statsβ Suppresses the printing of all message headers, templates, and records. The output consists of the number of messages, templates, and records present in the input, and a two-column list showing template IDs found in the input and a count of the number of records that used that template. numbers only, main character energy π--hexdumpβ For data record elements whose type isoctetArray, prints each octet as a 2-digit hexadecimal value with no separator between the values. The length of the element precedes the hexadecimal output.ipfixDumpuses this display foroctetArrayelements that are variable length or whose length is greater than eight. Without this option, only the length of theoctetArrayelements is printed.
β οΈ note that fixed-width octetArray elements whose length is less than or equal to eight are always printed as a decimal number regardless of this option. always. no exceptions. π
--hexdump=LENβ When the optional parameter LEN is provided to--hexdump, only the first LEN octets of the value are printed. If LEN is zero, only the length ofoctetArrayvalues is printed. A LEN that is negative or larger than65535is treated as the maximum,65535. (so, like, behave or get capped π )--versionβ Prints version and copyright information to standard error and exits. (standard error, not standard out β pay attention π)--helpβ Prints a brief usage message to the standard output and exits. cute and helpful π«Ά
π Examples π
In the following examples, the dollar sign ("$") represents the shell prompt. The text after the dollar sign represents the command line.
$ ipfixDump --in - --out -
$ ipfixDump --in /data/ipfix.ipfix --out /data/text.txt --yaf
look at that. slay. π₯
π Known Issues π
Bug reports may be sent directly to the Network Situational Awareness team at <netsa-help@cert.org>. they wanna hear from you fr fr π«Ά
π AUTHORS π
Emily Sarneso and the CERT Network Situational Awareness Group Engineering Team, <http://www.cert.org/netsa>.
π SEE ALSO π
yaf(1), yafscii(1), yafdpi(1), super_mediator(1), pipeline(8), rwsilk2ipfix(1), <https://tools.netsa.cert.org/cert-ipfix-registry/>, <https://www.iana.org/assignments/ipfix/ipfix.xhtml>
and that's the whole page, bestie π this edition is libfixbuf 2.4.2, dated 3v β go forth and dump those flows, you absolute icon πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: libfixbuf-tools 2.4.2-bp160.1.10 Β· LGPL-3.0-only
- opensuse-leap 16.0: libfixbuf-tools 2.4.2-bp160.1.10 Β· LGPL-3.0-only
- opensuse-leap 16.0: libfixbuf-tools 2.4.2-bp160.1.10 Β· LGPL-3.0-only
- opensuse-leap 16.0: libfixbuf-tools 2.4.2-bp160.1.10 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms