ifquery(8)

πŸ“¦
version 0.12.1 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– ifquery(8) β€” the "bestie, what is my network even doing" tool πŸ’–

okay so real talk: this is ifquery, from the System Manager's Manual (section 8, system admin girlies only πŸ’…). If you've ever stared at your interface config like "who are you and what do you want", this is the page for you.


✨ NAME ✨

ifquery β€” query interface configuration and state πŸ¦‹


✨ SYNOPSIS ✨

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

ifquery -L|--list

ifquery -s|--state

like, you can either pass it some interfaces with options, or just hit it with -L|--list, or do the state-database thing with -s|--state. three whole moods ✨


✨ DESCRIPTION ✨

So ifquery pulls info out of the interface configuration file. That's the whole vibe. πŸŽ€

It can also convert from old versions of the interface configuration file into the current format. glow-up service, lowkey πŸ¦‹


✨ OPTIONS ✨

  • -a, --auto β€” only match interfaces that are marked as auto. picky on purpose, we love that
  • -h, --help β€” shows you all the supported options for ifquery. the friendly one 🫢
  • -i, --interfaces FILE β€” use FILE as the config database. swap the whole source of truth, no biggie
  • -p, --property PROPERTY β€” print the values of matching properties for an interface. your fave attribute, served fresh 🌸
  • -r, --running β€” print the interface names that are marked as running in the state database. who's actually up rn πŸ‘€
  • -s, --state β€” query the state database instead of the config database. different database, different energy πŸ’œ
  • -D, --dot β€” generate a dependency graph you can feed to GraphViz dot(1). used with --list. it's giving ✨flowchart✨
  • -I, --include PATTERN β€” include PATTERN when matching against the config or state database. yes bestie, come in
  • -L, --list β€” list interfaces which exist in the configuration database. roster drop πŸ“‹
  • -P, --pretty-print β€” when listing interfaces, print their config in a format compatible with interfaces(5) files. pretty and functional, iconic
  • -U, --allow-undefined β€” create virtual interfaces for any interfaces not explicitly defined in the configuration file. primarily useful for property queries. manifesting an interface that doesn't exist yet πŸ’«
  • -S, --state-file FILE β€” use FILE as the state database
  • -T, --timeout TIMEOUT β€” wait up to TIMEOUT seconds for executors to complete before raising an error. patience, but make it measurable ⏳
  • -V, --version β€” print the ifupdown-ng version and exit. identity check πŸͺͺ
  • -X, --exclude PATTERN β€” exclude PATTERN when matching against the config or state database. respectfully, not you πŸ™ˆ

✨ SEE ALSO ✨

the whole friend group, fr fr 🫢


✨ AUTHORS ✨

Ariadne Conill <ariadne@dereferenced.org> β€” thank you for your service, queen πŸ‘‘


and that's the page bestie πŸ’– this one is dated 2025-10-13 and it lives in the System Manager's Manual (that's the source and version/datestamp vibe, iykyk) β€” go forth and ifquery responsibly βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from