LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

hp-makeuri

generates device URIs for HP printers

TLDR

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

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
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 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)

Copied to clipboard
Kai