ifupdown-ng/doc/ifquery.scd

81 lines
1.7 KiB
Text
Raw Permalink Normal View History

2020-07-24 13:48:14 +00:00
ifquery(8)
# NAME
ifquery - query interface configuration and state
# SYNOPSIS
*ifquery* [<_options_>...] <_interfaces_...>
*ifquery* -L|--list
*ifquery* -s|--state
# DESCRIPTION
*ifquery* is used to extract information from the interface configuration
file. It can also be used to convert from old versions of the interface
configuration file to the current format.
# OPTIONS
*-a, --auto*
Only match interfaces that are marked as _auto_.
*-h, --help*
Display supported options to ifquery.
*-i, --interfaces* _FILE_
Use _FILE_ as the config database.
2020-07-26 08:28:29 +00:00
*-p, --property* _PROPERTY_
Print the values of matching properties for an interface.
2020-10-14 08:45:16 +00:00
*-r, --running*
Print the interface names that are marked as running in
the state database.
2020-07-24 13:48:14 +00:00
*-s, --state*
Query the state database instead of the config database.
*-D, --dot*
Generate a dependency graph that can be used with GraphViz
*dot*(1). Used with *--list*.
*-I, --include* _PATTERN_
Include _PATTERN_ when matching against the config or state
database.
*-L, --list*
List interfaces which exist in the configuration database.
*-P, --pretty-print*
When listing interfaces, print their configuration in a format
that is compatible with *interfaces*(5) files.
*-U, --allow-undefined*
Create virtual interfaces for any interfaces not explicitly
defined in the configuration file. This is primarily useful
for property queries.
2020-07-24 13:48:14 +00:00
*-S, --state-file* _FILE_
Use _FILE_ as the state database.
*-V, --version*
Print the ifupdown-ng version and exit.
*-X, --exclude* _PATTERN_
Exclude _PATTERN_ when matching against the config or state
database.
# SEE ALSO
2020-07-24 13:55:29 +00:00
*ifup*(8)++
*ifdown*(8)++
*interfaces*(5)
2020-07-24 13:48:14 +00:00
# AUTHORS
Ariadne Conill <ariadne@dereferenced.org>