hp-query(1)

πŸ“¦
version 3.24.4 Β· 2 versions
, in ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ hp-query ✨

okay bestie, welcome to hp-query from the User Manuals section β€” it's the Model Query Utility and it's lowkey the backbone of everything, iykyk πŸ’…


🌸 NAME 🌸

hp-query β€” Model Query Utility πŸŽ€


πŸ’– DESCRIPTION πŸ’–

So basically? You point this thing at a printer model and it hands you back its static model info ✨. That's it, that's the whole vibe. It was literally designed to be called from other processes, so it's giving very much "background bestie doing the work while everyone else takes the credit" πŸ˜­πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

hp-query [MODE] [OPTIONS]

⭐ MODE ⭐

  • -n or --non-interactive β€” run it in non-interactive mode, aka no chatting back, just vibes and output 🫢

πŸ’… OPTIONS πŸ’…

Set the logging level:

  • -l<level> or --logging=<level> β€” pick your logging level, bestie. your choices are none, info*, error, warn, debug β€” and yes the * on info means that's the default 🌈

Run in debug mode:

  • -g β€” debug mode, go off. (same as option: -ldebug) πŸ”₯

This help information:

  • -h or --help β€” show this help info, no thoughts just help πŸ™ˆ

Specify model by device URI:

  • -d<device_uri> or --device=<device_uri> β€” tell it which model by handing over a device URI πŸ“Ž

Specify normalized model name:

  • -m<model_name> or --model=<model_name> β€” give a normalized model name (that's the normalized models.dat format, periodt) πŸ’œ

Specify raw model name:

  • -r<model_name> or --raw=<model_name> β€” give a raw model name instead (that's the raw model name from the MDL: field of the device ID, ngl very specific of it) πŸ“

Specify key to query:

  • -k<key> or --key=<key> β€” name the key you wanna query. (or, use -a/--all to return all keys) πŸ”‘

Query all keys:

  • -a or --all β€” pull every key at once. (default separator is a LF) πŸ‘‘

Specify the separator when multiple keys are queried:

  • -s<sep> --sep=<sep> β€” choose the separator for when you're querying multiple keys. it can be a character, or one of 'tab', 'newline', 'cr', 'lf', 'crlf'. (only valid when used with -a/--all) πŸŽ€

Suppress trailing linefeed:

  • -x β€” kill that trailing linefeed, so clean, so chic ✨

🌈 SEE ALSO 🌈

  • hp-info 🫢

πŸ‘‘ AUTHOR πŸ‘‘

HPLIP (HP Linux Imaging and Printing) is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux. iconic honestly πŸ’–


πŸ’€ REPORTING BUGS πŸ’€

The HPLIP Launchpad.net site https://launchpad.net/hplip is available to get help, report bugs, make suggestions, discuss the HPLIP project or otherwise contact the HPLIP Team. go tell them everything bestie, they wanna hear it 🫢


Copyright (c) 2001-18 HP Development Company, L.P.

This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details. ⚠️ like fr fr, no warranty, read the COPYING file, it's right there.

and that's the whole page bestie, slay πŸ’…βœ¨ this came from the Linux manual set, version 0.2, and it's the hp-query(1) entry β€” go forth and query responsibly πŸ¦‹πŸŒΈ