LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

hp-info

Query static model info, dynamic status, and CUPS settings for HP printers

TLDR

Show info for the default/only installed printer
$ hp-info
copy
Show info for a specific CUPS printer
$ hp-info -p [printer-name]
copy
Show info by device URI
$ hp-info -d [device-uri]
copy
Print only the device ID string (interactive mode)
$ hp-info -i --id
copy
Run interactively, choosing the printer from a list
$ hp-info -i
copy

SYNOPSIS

hp-info [DEVICE-URI|PRINTER-NAME] [MODE] [OPTIONS]

DESCRIPTION

hp-info queries an HPLIP-supported HP printer and reports static model information (model name, supported data types, plugin requirements), dynamic status (online/offline, tray and supply state), and the corresponding CUPS printer queue settings.It is mainly a diagnostic tool: point it at a printer with -p or -d to dump everything HPLIP knows about that device, which is useful when filing bug reports or scripting device discovery.

PARAMETERS

-d device-uri, --device=device-uri

Specify the target printer by CUPS device URI.
-p printer, --printer=printer
Specify the target printer by CUPS queue name.
-i, --interactive
Run in interactive mode, prompting to choose a device.
--id
Print only the device ID string and exit (interactive mode only).
-x
Allow device URIs of printers not yet installed in CUPS (interactive mode only).
-l level, --logging=level
Set logging verbosity: none, info (default), error, warn, or debug.
-g
Run with debug-level logging (equivalent to -l debug).
-h, --help
Display help and exit.

INSTALL

sudo apt install hplip
copy
sudo dnf install hplip
copy
sudo pacman -S hplip
copy
sudo zypper install hplip
copy
nix profile install nixpkgs#hplip
copy

CAVEATS

Part of the HPLIP package. The printer must be reachable (powered on and connected via USB or network) for dynamic status fields to populate; static model data is read from HPLIP's local models database even when the device is offline.

HISTORY

hp-info is one of the device-query utilities in HPLIP (HP Linux Imaging and Printing), HP's open-source printer/scanner driver suite for Linux.

SEE ALSO

RESOURCES

Copied to clipboard
Kai