LinuxCommandLibrary

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.

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard