ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Tags
    3. lpadmin
    Log in to post
    • All categories
    • DustinB3403D

      Unix Command line - Printer Details

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion osx unix terminal lpstat lpinfo lpadmin apple lpoptions
      12
      1 Votes
      12 Posts
      1k Views
      DustinB3403D

      @black3dynamite said in Unix Command line - Printer Details:

      @DustinB3403 said in Unix Command line - Printer Details:

      Here is the completed command.

      lpoptions -p <NAME> | grep -o "printer-make-and-model='Your Printer make and Model"

      That outputs the exact detail I needed!

      lpoptions -p SHCSL_209_ColorPrinter | sed -r "s/^.*(printer-make-and-model.*)'.*$/\1/g; s/'//g; s/printer-make-and-model=//g"

      This will remove all the unnecessary text, printer-make-and-model=, and the single quotes.

      Yeah I'm also able to just use lpoptions -p SHCSL_209_ColorPrinter | grep "'SHCSL_209_ColorPrinter'" and get what I need in a single line response.

    • DustinB3403D

      CUPS Administration Job Info 1 Destination Mailbox

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion printers cups lpadmin destination mailbox defaults cli mac os osx users workstation printer programming
      5
      1 Votes
      5 Posts
      933 Views
      DustinB3403D

      @black3dynamite said in CUPS Administration Job Info 1 Destination Mailbox:

      @DustinB3403 said in CUPS Administration Job Info 1 Destination Mailbox:

      While I found where OSX stores the user printer preferences, but copying a "working version of preferences" to the user workstation and directory doesn't set the preferences.

      Still investigating. May require a restart when doing this remotely. . .

      Full system restart or just the cups service?

      Just did a full system restart and no change. While the plist file is there, and the user has owner access to it, the changes don't appear to take effect.

      Not sure why.

    • DustinB3403D

      lpadmin - remove printer with a space in the name

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion unix osx apple lpadmin printers administration ard
      4
      0 Votes
      4 Posts
      1k Views
      DustinB3403D

      @dbeato said in lpadmin - remove printer with a space in the name:

      @DustinB3403 said in lpadmin - remove printer with a space in the name:

      Nevermind!

      lpadmin adds spaces as underscores!

      So with lpadmin -p I was able to find the list of printers.

      lpadmin -p
      Accounting_Printer

      And with lpadmin -x Accounting_Printer was able to remove the printer!
      Removed Accounting_Printer

      Good to know for central administration of Apple devices. What are you using right now?

      ARD and Unix cli

    • 1 / 1