- Tumbleweed 20251020-1.1
- Leap-16.0
- Leap-15.6
| SC_WARTSFILTER(1) | General Commands Manual | SC_WARTSFILTER(1) |
NAME¶
sc_wartsfilter —
select specific records from a warts file
SYNOPSIS¶
sc_wartsfilter |
[-a address]
[-i input-file]
[-o output-file]
[-O option]
[-t record-type] |
DESCRIPTION¶
The sc_wartsfilter utility selects
specific records from warts(5) input, and outputs those
records. The supported options to sc_wartsfilter are
as follows:
-aaddress- specifies an address or prefix of interest. If there are multiple addresses or prefixes of interest, these can be specified with additional -a options.
-iinput-file- specifies the input warts file to process. If - is specified, then
sc_wartsfilterwill read from stdin. -ooutput-file- specifies the output warts file to write records to. If - is specified,
then
sc_wartsfilterwill write to stdout. -Ooption- allows the behavior of
sc_wartsfilterto be further tailored. The current choices for this option are:- check-hops: Check if an address of an intermediate hop in a trace or tracelb object matches.
-trecord-type- specifies a record type of interest. The current choices for this option are:
EXAMPLES¶
The command:
sc_wartsfilter -i input.warts -o output.warts -a 192.0.2.5 -a 192.0.2.6
outputs all warts records with a destination address of 192.0.2.5 or 192.0.2.6 from input.warts into output.warts.
The command:
sc_wartsfilter -i input.warts -o output.warts -a 2001:db8::/32
outputs all warts records with a destination address within the 2001:db8::/32 prefix into output.warts.
The command:
gzcat input.warts.gz | sc_wartsfilter -t ping | sc_warts2json
selects all ping records from a decompressed input file and and pipes them to sc_warts2json.
SEE ALSO¶
AUTHORS¶
sc_wartsfilter was written by Matthew
Luckie.
| March 10, 2023 | Linux 6.4.0-150700.53.19-default |