4.5 Using iprntcmd on Linux and Macintosh

The Linux and Macintosh iPrint Clients include the iprntcmd utility that performs the same functions as iprntcmd in the Windows iPrint Client. In addition, you can use iprntcmd to upload PPD drivers to a Driver Store from the Linux iPrint Client. iprntcmd is located in /opt/novell/iprint/bin/iprntcmd on Linux and in /usr/bin Macintosh.

Use the following parameters when executing the iprntcmd command.

Table 4-3 Parameters used with iprntcmd

Parameters

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.

-l or --listlocalprinters

Lists printers installed on the workstation.

-L or --listprintersonserver psm-hostname or psm-address

Lists iPrint printers on the specified Print Manager where psm-hostname or psm-address can be a DNS name or IP address.

-p or --printfile printer-uri file path

Sends a printer-ready file to the specified iPrint printer.

-P or --ppdlist

Lists the PPDs installed on this workstation.

-s or --setdefault printer_uri

Sets the specified printer as the 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

iprntcmd parameters

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 non-secure printing

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

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