osx - OS X Yosemite - Adding a Printer - UI Vs lpadmin -
osx - OS X Yosemite - Adding a Printer - UI Vs lpadmin -
my problem when add together printer using printers , scanners ui printing works, when add together same printer using lpadmin doesn't.
to add together through ui did following:
from printers , scanners selected ip tab. address: 10.20.30.40, protocol hp jetdirect - socket, queue left blank, name: test_01, location "top floor", utilize -> select software -> hp laserjet p3010 series
after doing this, printer works expected.
this (segment a) script containing lpadmin command doesn't work
subnet=socket://10.20.30. test_01=40 ppd_dir=/library/printers/ppds/contents/resources test_01_ppd="hp laserjet p3010 series.gz" lpadmin -e -p test_01 -v $subnet$test_01 -p "$ppd_dir/$test_01_ppd" -d "test_01" -l "top floor"
the printer appears correctly in ui shows paused.
i did find message in system.log may or may not relevant - using notes test printer:
notes[502]: failed connect (_delegate) outlet (com_hp_psdriver_19_11_0_pdeview) (com_hp_psdriver_19_11_0_pdeaccountingcontroller): missing setter or instance variable notes[2198]: printing failed because pmsessionenddocumentnodialog() returned -30871.
the reason want utilize script there 20 printers add together on each of 30 new macs. actual script uses series of arrays lpadmin in loop. have read says should work. missing?
i think -e
specified before printer name enables encryption, whereas specified after e
nables printer - "unpausing" it. madness- know!
mad apple documentation - see sec sentence
i think want:
lpadmin -p test_01 -v $subnet$test_01 -p "$ppd_dir/$test_01_ppd" -d "test_01" -l "top floor" -e
osx printing
Comments
Post a Comment