rwfileinfo - Print information about a SiLK file
rwfileinfo [--fields=FIELDS] [--summary] [--no-titles] [--site-config-file=FILENAME] FILE [ FILE ... ] rwfileinfo --help rwfileinfo --version
rwfileinfo prints information about a SiLK file. The information that may be printed is:
format. The output file format, a string and its hexadecimal equivalent:
version. The version of the file, an integer. As of SiLK 1.0, the version of the file is distinct from the version of the records in the file.
byte-order. The byte-order (endian-ness) of the file, a string
compression. The compression library used to compress the data-section of the file, a string and its decimal equivalent (
lzo1x(2). Does not include any external compression, such as if the entire file has been compressed with gzip(1).
header-length. The length of the header in bytes
record-length. The length of a single record in bytes. This will be 1 if the records do not have a fixed size.
count-records. The number of records in the file. If the record-size is 1, this value is the uncompressed size of the data section of the file.
file-size. The size of the file as it is on disk
command-lines. The command(s) used to generate this file, for tools that support writing that information to the header and for formats that store that information.
record-version. The version of the records contained in the file
silk-version. The release of SiLK that wrote this file, e.g.,
1.0.0. This value is 0 for files written by releases of SiLK prior to 1.0.
packed-file-info. The timestamp, flowtype, and sensor for a file in the SiLK data repository.
probe-name. The probe information for files created by flowcap(8)
annotations. The notes (annotations) that have been added to the file with the --note-add and --note-file-add switches
prefix-map. The mapname value for a prefix map file.
ipset. The number and size of the nodes and leaves in an IPset file.
bag. The type and size of the key and counter in a Bag file.
Option names may be abbreviated if the abbreviation is unique or is an exact match for an option. A parameter to an option may be specified as --arg=param or --arg param, though the first form is required for options that take optional parameters.
Determines which information about the file is printed. FIELDS is a list of integers representing fields to print. The FIELDS may be a comma separated list of integers; a range may be specified by separating the start and end of the range with a hyphen (
-). The available fields are listed above. Fields are always printed in the order given above. If the --fields option is not given, all fields are printed.
Prints a summary that lists the number of files processed, the sizes of those files, and the number of records contained in those files.
Suppresses printing of the file name and field names; only the values are printed, left justified and one per line.
Read the SiLK site configuration from the named file FILENAME. When this switch is not provided, rwfileinfo searches for the site configuration file in the locations specified in the "FILES" section.
Print the available options and exit.
Print the version number and information about how SiLK was configured, then exit the application.
$ rwfileinfo tcp-data.rwf tcp-data.rwf: format(id) FT_RWGENERIC(0x16) version 16 byte-order littleEndian compression(id) none(0) header-length 208 record-length 52 record-version 5 silk-version 1.0.1 count-records 7 file-size 572 command-lines 1 rwfilter --proto=6 --pass=tcp-data.rwf ... annotations 1 This is some interesting TCP data $ rwfileinfo --no-titles --field=count-records tcp-data.rwf 7
This environment variable is used as the value for the --site-config-file when that switch is not provided.
This environment variable specifies the root directory of data repository. As described in the "FILES" section, rwfileinfo may use this environment variable when searching for the SiLK site configuration file.
This environment variable gives the root of the install tree. When searching for configuration files, rwfileinfo may use this environment variable. See the "FILES" section for details.
Possible locations for the SiLK site configuration file which are checked when the --site-config-file switch is not provided.