Home Forums OS X Server and Client Discussion Questions and Answers lpadmin/lpr command line interface no longer works in Leopard

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #372473
    prometheon123
    Participant

    Hello everyone,

    I wrote a shell script to lpr all the company printers to each Mac. However, this seems to have changed in Leopard even though lpadmin is still there and the path of the PPDs still remains the same.

    Anyone else have this issue?

    Here is a sample command that used to work in Tiger:

    lpadmin -p 37S -L “37 South” -E -v lpd://37s.ourcompany.com -P “/Library/Printers/PPDs/Contents/Resources/en.lproj/HP LaserJet 5200.gz”

    Every printer says it’s “paused”.

    Finally, does anyone know how to allow the non-admin user to add printers?

    Cheers,

    Ryan
    Chicago

    #372506
    khiltd
    Participant

    So is the only problem that the queues are always paused, or does the command actually fail somehow? Have you tried this with any printers that were not made by HP? Many of the old LaserJet drivers are completely incompatible with Leopard and their only official response has been “buy a new printer.”

    #372508
    prometheon123
    Participant

    Thanks for the info about HP printers and Leopard. Unfortunately, all of the printers were made by HP. 🙁

    I looked at the printers.conf file and here is an example of what is listed:

    Info 33-West
    Location 33 West
    DeviceURI lpd://33-Ryan.ourcompany.com
    State Stopped
    StateMessage Filter “/Library/Printers/hp/filter/hppostprocessing” for printer “33-West” not available: No such file or directory
    StateTime 1208532368
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy stop-printer

    #372513
    khiltd
    Participant

    I don’t know anything about that particular printer, but I’d try setting it up normally before blaming your script. They do have a “HP LaserJet Universal Mac Installer Utility for OS X 10.5” up on the downloads page which has a kernel extension for the 5200 in it.

    #372515
    prometheon123
    Participant

    Thanks for the help. I’ll do a Netinstall of Leopard when i get to the office and try the updated installer then run my shell script to see if this yields any better results.

    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=18972&prodSeriesId=473038&prodNameId=473041&swEnvOID=219&swLang=8&mode=2&taskId=135&swItem=lj-56880-1

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed