logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ifquery - query interface configuration and state

Authors

       Ariadne Conill <ariadne@dereferenced.org>

                                                   2025-03-25                                         ifquery(8)

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.

Name

       ifquery - query interface configuration and state

Options

-a,--auto
           Only match interfaces that are marked as auto.

       -h,--help
           Display supported options to ifquery.

       -i,--interfacesFILE
           Use FILE as the config database.

       -p,--propertyPROPERTY
           Print the values of matching properties for an interface.

       -r,--running
           Print the interface names that are marked as running in the state database.

       -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,--includePATTERN
           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.

       -S,--state-fileFILE
           Use FILE as the state database.

       -T,--timeoutTIMEOUT
           Wait up to TIMEOUT seconds for executors to complete before raising an error.

       -V,--version
           Print the ifupdown-ng version and exit.

       -X,--excludePATTERN
           Exclude PATTERN when matching against the config or state database.

See Also

ifup(8)
       ifdown(8)
       interfaces(5)

Synopsis

ifquery [<options>...] <interfaces...>

       ifquery -L|--list

       ifquery -s|--state

See Also