MoonPoint Support Logo


Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals

Advanced Search
Sun Mon Tue Wed Thu Fri Sat

Thu, Apr 16, 2015 11:16 pm

Adding a Konica Minolta BizHub 363 printer from the command line on OS X

I needed to add a Konica Minolta BizHub 363 multifunction device as a printer on my MacBook Pro laptop, since the default printer was inaccessible today. So I checked if there was a printer driver for it already on the laptop in /Library/Printers/PPDs/Contents/Resources. I saw one there, so added it from a Terminal window, i.e., a shell prompt.
$ ls -l /Library/Printers/PPDs/Contents/Resources | grep -i Konica | grep 363
-rw-r--r--  1 root  wheel   42781 Sep  3  2012 KONICAMINOLTA363.gz
$ lpadmin -p "" -v "lpd://" -D "Konica Minolta BizHub 363 MFD" -L "Building 14 Room E171" -P "/Library/Printers/PPDs/Contents/Resources/KONICAMINOLTA363.gz" -E 

When adding a printer from the command line on an OS X system, you can specify the IP address of the printer with the -p (lowercase "p") argument to the lpadmin command. Other arguments for the command include the following:

       -v "device-uri"
            Sets  the  device-uri  attribute  of the printer queue. Use the -v
            option with the lpinfo(8) command  to  get  a  list  of  supported
            device URIs and schemes.

       -D "info"
            Provides a textual description of the destination.

       -L "location"
            Provides a textual location of the destination.

       -P ppd-file
            Specifies  a  PostScript  Printer Description file to use with the
            printer. If specified, this option overrides the -i option 
            (interface script).

The text enclosed in quotes after the -D can be any description you want to give to the printer and the -L is any text you wish to use to indicate the location of the printer.

For the -P (uppercase "P") option, I referenced the Konica Minolta BizHub 363 PostScript Printer Description file I saw on the system.

The -v option is followed by a uniform resource identifier (URI). In this case that was lpd:// followed by the IP address of the printer because the printer supports the Line Printer Daemon protocol.

After you've added a printer, you can verify that it has been added using the lpstat command. E.g., lptstat -p -d shows all of the printers added to the system and the default printer for the system.

            Shows the current default destination.

       -h server[:port]
            Specifies an alternate server.

            Shows a long listing of printers, classes, or jobs.

       -o [destination(s)]
            Shows the jobs queue on the specified destinations. If no destina-
            tions are specified all jobs are shown.

       -p [printer(s)]
            Shows the printers and whether or not they are enabled for  print-
            ing. If no printers are specified then all printers are listed.

E.g., I can see that the printer I added is enabled. I can also see that the default printer is at, which was inaccessible to me today because the room it is in was locked.

$ lpstat -p -d
printer is idle.  enabled since Thu Apr 16 14:12:21 2015
printer is idle.  enabled since Thu Apr 16 13:59:17 2015
	Data file sent successfully.
printer _192_168_232_14 disabled since Wed Aug 17 14:52:55 2011 -
	/usr/libexec/cups/backend/lpd failed
printer _192_168_235_214 disabled since Tue Dec 27 09:55:45 2011 -
	Printer not responding!
printer _192_168_75_20 is idle.  enabled since Sat Jun 29 10:21:21 2013
system default destination:


  1. Adding a printer from the command line on an OS X system
    Date: August 7, 2014
    MoonPoint Support

[/os/os-x] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo