catalog_query(1)

πŸ“¦
version 9.9 Β· 3 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

🌸 NAME 🌸

okay so bestie, say hi to catalog_query β€” that's the section 1 manual page, and it's literally the tool that queries records from the catalog server. that's the whole vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

catalog_query [--where [expr]] [--catalog [host]] [-d [flag]] [-o [file]] [-O [size]] [-t [timeout]] [-h]

yeah she's got short forms too β€” -d, -o, -O, -t, -h β€” they're right there in the synopsis, no cap.


✨ DESCRIPTION ✨

so like, catalog_query is a tool that goes and asks a catalog server for raw JSON records. that's it. that's the job. 🫢

and here's the cute part: you can filter those records with an optional --where expression, so you're not just drowning in everything the catalog has ever known. 🌊

it's giving very handy for querying custom record types β€” the ones the other tools just don't handle. iykyk. πŸ’œ


πŸŽ€ ARGUMENTS πŸŽ€

  • --where expr β€” only records that match this expression get shown. filtering queen behavior.
  • --catalog host β€” query this catalog host specifically, bestie. 🏠
  • --debug flag β€” turn on debugging for this subsystem. πŸ”
  • --debug-file file β€” send that debug output to this file instead.
  • --debug-rotate-max bytes β€” rotate the debug file once it hits this size. big file? not on her watch.
  • --timeout seconds β€” abandon the query after this many seconds. ⏰ she will not wait forever, and honestly? respect.
  • --help β€” show the command options. the classic.

πŸ”₯ EXAMPLES πŸ”₯

to show all the records in the catalog server:

% catalog_query

no flags, no filter, just raw unfiltered everything. main character energy. πŸ‘‘

to show all records of other catalog servers:

% catalog_query --where Β΄type=="catalog"Β΄

to show all records of Chirp servers with more than 4 cpus:

% catalog_query --where Β΄type=="chirp" && cpus > 4Β΄

look at that &&. look at that > 4. she ate. πŸ’…


The Cooperative Computing Tools are Copyright (C) 2005-2019 The University of Notre Dame. This software is distributed under the GNU General Public License. See the file COPYING for details.

fr fr, read the COPYING file, it's important and it's right there. πŸŽ€


🌈 SEE ALSO 🌈

go read those too, bestie, they're all in the friend group. πŸ¦‹


and that's the page!! πŸ’– this was CCTools 8.0.0 DEVELOPMENT, and yeah, catalog_query is section 1, always and forever. mwah. 🫢✨

πŸ“¦ where this page comes from