---
name: "hp-query"
section: "1"
platform: "linux"
package: "hplip"
version: "3.22.10+dfsg0-8.1+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/hp-query"
---

# hp-query(1)

Model Query Utility

## NAME

hp-query - Model Query Utility

## DESCRIPTION

Query a printer model for static model information. Designed to be called from other processes.

## SYNOPSIS

**hp-query \[MODE\] \[OPTIONS\]**

## MODE

- Run in non-interactive mode:

  \-n or --non-interactive

## OPTIONS

- Set the logging level:

  \-l\<level\> or --logging=\<level\> \<level\>: none, info\*, error, warn, debug (\*default)

- Run in debug mode:

  \-g (same as option: -ldebug)

- This help information:

  \-h or --help

- Specify model by device URI:

  \-d\<device\_uri\> or --device=\<device\_uri\>

- Specify normalized model name:

  \-m\<model\_name\> or --model=\<model\_name\> (normalized models.dat format)

- Specify raw model name:

  \-r\<model\_name\> or --raw=\<model\_name\> (raw model name from MDL: field of device ID)

- Specify key to query:

  \-k\<key\> or --key=\<key\> (or, use -a/--all to return all keys)

- Query all keys:

  \-a or --all (default separator is a LF)

- Specify the separator when multiple keys are queried:

  \-s\<sep\> --sep=\<sep\> (character or 'tab', 'newline', 'cr', 'lf', 'crlf')(only valid when used with -a/--all)

- Suppress trailing linefeed:

  \-x

## 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.

## 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.

## COPYRIGHT

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.
