Bug#199623: 199623: lpadmin socket and documentation problems
I can't give a definite answer to whether the problem remains, at least
not without some help. With cupsys 1.3.0-3 I can't figure out the
proper syntax from the command line. My attempts seem to produce a
proper socket:// value, but since the result isn't working I don't know
if the problem is solved. The documentation seems obscure.
iron:~# lpadmin -p Test1 -m HP-LaserJet_8100-hpijs -v socket://10.4.0.13
lpadmin: Unable to copy PPD file!
iron:~# lpstat -s
system default destination: Mykonos
device for London: hp:/net/HP_LaserJet_8100_Series?ip=10.4.0.13
device for Malaga: hp:/net/HP_Color_LaserJet_4550_?ip=10.4.0.18
device for Mykonos: socket://10.4.0.16
device for Mykonos2: socket://10.4.0.16
# so the printer was not created
iron:~# lpadmin -p Test1 -v socket://10.4.0.13
iron:~# lpstat -s
system default destination: Mykonos
device for London: hp:/net/HP_LaserJet_8100_Series?ip=10.4.0.13
device for Malaga: hp:/net/HP_Color_LaserJet_4550_?ip=10.4.0.18
device for Mykonos: socket://10.4.0.16
device for Mykonos2: socket://10.4.0.16
device for Test1: socket://10.4.0.13
#printer was created
iron:~# lpadmin -x Test1
iron:~# lpadmin -p Test1 -m HP-LaserJet_8100-hpijs.ppd -v
socket://10.4.0.13
lpadmin: Unable to copy PPD file!
iron:~# lpadmin -p Test1 -m HP-LaserJet_8100-hpijs.ppd.gz -v
socket://10.4.0.13
lpadmin: Unable to copy PPD file!
The printer that I created without the -m option does not appear to have
the socket:// specification mangled, as it used to be. That's good. On
the other hand, I was not able to print a test page to it, probably
because there was no -m (and/or I need to use the HP JetDirect protocol
or somethig else). So I don't know if this is working.
I consider it a bug that it is impossible to tell what the correct
syntax for the -m and -v arguments is from the man pages. Nor can I
tell how the arguments that lpadmin wants relate to the output of lpinfo
-v or -m.
In particular, with -m, I wasn't sure if the argument should include
path specifications or extensions for the files listed from lpinfo -m;
the values I tried were all from that listing. In fact, it's not even
clear from the man page that the name of a ppd file is called for,
although some of the surrounding documentation seems to indicate that it
is.
FYI, here are the relevant lines from lpinfo -m:
gutenprint.5.0://hp-lj_8100/expert/C HP LaserJet 8100 - CUPS+Gutenprint
v5.0.1
hpijs/HP/HP-LaserJet_8100-hpijs.ppd.gz HP LaserJet 8100 Foomatic/hpijs -
HPLIP 1.6.10
lsb/usr/hpijs/HP/HP-LaserJet_8100-hpijs.ppd.gz HP LaserJet 8100
Foomatic/hpijs - HPLIP 1.6.10
--
Ross Boylan wk: (415) 514-8146
185 Berry St #5700 ross@biostat.ucsf.edu
Dept of Epidemiology and Biostatistics fax: (415) 514-8150
University of California, San Francisco
San Francisco, CA 94107-1739 hm: (415) 550-1062
Reply to: