LinuxCommandLibrary

hp-query

TLDR

Query printer status

$ hp-query -p [printer-name]
copy
Query by device URI
$ hp-query -d [device-uri]
copy
Query specific parameter
$ hp-query -p [printer] -s [status]
copy
List available queries
$ hp-query -l
copy

SYNOPSIS

hp-query [options]

DESCRIPTION

hp-query retrieves status information from HP printers. It sends queries and returns printer responses for various parameters.
The tool accesses internal printer status and configuration. It's useful for scripting and monitoring.
hp-query retrieves HP printer status.

PARAMETERS

-p PRINTER

Printer name.
-d DEVICE
Device URI.
-s QUERY
Specific query string.
-l
List available queries.
-b BUS
Bus type (usb, net).
--help
Display help information.

CAVEATS

Part of HPLIP package. Query availability varies by model. Printer must be accessible.

HISTORY

hp-query is part of HPLIP (HP Linux Imaging and Printing) for querying device status.

SEE ALSO

Copied to clipboard