Using iprintcmd

The Linux iPrint Client includes the iprintcmd utility that lets you install printers, print test pages, and upload drivers to a driver store from a console prompt. The iprintcmd utility is located in /opt/novell/iprint/bin/iprintcmd.

Use the following parameters when executing the iprintcmd command:

Parameter Description

-a or --addprinter printer_uri

Installs the specified printer.

-d or --delprinter printer_uri

Removes the specified printer.

-g or --getdefault

Displays the default printer installed on the workstation.

-h or --help

Displays help for the command.

-j or --listjobs printer_uri

Lists the print jobs for the specified printer that are on the server in a pending or printing state.

-P or --ppdlist

Lists the PPDs installed on this workstation.

-s or --setdefault printer_uri

Sets the specified printer as default.

-t or --testpage printer_uri

Prints a test page to the specified printer.

-u or --upload ids_uri ids_user ppd

Uploads the specified PPD files to the indicated driver store, where ids_uri is the IP address or DNS name for the driver store, ids_user is the username with rights to add drivers to the driver store, and ppd is the directory path and filename to the PPD files. You can use wildcards in the PPD filename.

-U or --upload RMS rms_uri rms_user rms_address ppd

Uploads the specified PPD files to the indicated Broker where, rms_uri is the IP address or DNS name for the Broker's associated print manager, rms_user is the username with rights to add drivers to the Broker, rms_address is the IP address or DNS name of the Broker, and ppd is the directory path and filename to the PPD files. You can use wildcards in the PPD filename.

-v or --version server_uri server_user

Displays the server platform and version information, where server_uri is the URI for the server and server_user is a valid user for the server.


Syntax

iprintcmd parameters

IMPORTANT:  You must use quotes around parameter information that contains a space, such as printer names and printer drivers.


Example

To install a printer named Color Printer 1 and set it as the default printer, you would enter the following for nonsecure printing:

iprintcmd -a "ipp://printing.my_company.com/ipp/Color Printer 1"

NOTE:  You should use ipp:// instead of http:// or https://.