hp-makeuri

generates device URIs for HP printers

TLDR

Generate device URI
$ hp-makeuri [192.168.1.100]
USB device
$ hp-makeuri -b usb
Network scan
$ hp-makeuri -g
Specific port
$ hp-makeuri -p [9100] [ip-address]

SYNOPSIS

hp-makeuri [options] [ip-address]

DESCRIPTION

hp-makeuri generates device URIs for HP printers. It creates the proper URI format needed for CUPS printer configuration.The tool probes network or USB printers and constructs valid device identifiers. URIs are used with lpadmin and CUPS.

PARAMETERS

IP-ADDRESS

Printer IP address.
-b BUS
Bus type (usb, net).
-g
Guess/probe for device.
-p PORT
Network port.
-s SERIAL
Serial number filter.
--help
Display help information.

INSTALL

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

CAVEATS

Part of HPLIP package. Network printers need connectivity. USB requires permissions.

HISTORY

hp-makeuri is part of HPLIP (HP Linux Imaging and Printing) for device URI generation.

SEE ALSO

hp-setup(1), lpadmin(1)