How to pass a printer URI to lpadmin

printingusb

I'm trying to connect an LexmarkE210 to a Mac. Running

sudo lpinfo -v | grep 210   # find LexmarkE210 URI

gives me usb://Lexmark/E210?location=1a140000 as the URI for the printer.

The .ppd driver was downloaded from openprinting.org

I first tried:

lpadmin -E -p "Lexmark-E210" -v "usb://Lexmark/E210?" -P "/Library/Printers/PPDs/Contents/Resources/en.lproj/Lexmark-E210-gdi.ppd" -o printer-is-shared=false

then tried without the question mark:

lpadmin -E -p "Lexmark-E210" -v "usb://Lexmark/E210" -P "/Library/Printers/PPDs/Contents/Resources/en.lproj/Lexmark-E210-gdi.ppd" -o printer-is-shared=false

to pass this to lpadmin (as described in
Add an IP printer with command line) The result in either case is:

enter image description here

but it didn't work. So how do I pass the URI to lpadmin?

A third attempt to install the printer (no ?) with lpadmin returned printer status with the error:

enter image description here

A resume command, sent through the Web UI will set the printer status to idle, however, the problem persists.

Best Answer

? is used in URIs for parameterization. Here it is enabling use of the location= which appears to be a port reference.

So, it would seem you're asking if you should drop it in your descriptor I would say yes.