mkprtsv Command
Purpose
Configures TCP/IP-based print service on a host.
Syntax
To Configure and Start Print Service for a Client Machine
mkprtsv -c [ -S ][ -q QueueName -v DeviceName -b "Attribute =Value ..." -a "Attribute =Value ..." | -A FileName ]
To Configure and Start Print Service for a Server Machine
mkprtsv -s [ -S ] [ -q QueueName -v DeviceName -b "Attribute =Value ..." -a "Attribute =Value ..." | -A FileName ] [ -h "HostName ..." | -H FileName ]
Description
The mkprtsv high-level command configures a TCP/IP-based print service on a host. The print service configuration can be done for a host functioning as a client or for a host functioning as a server.
Use the command to configure and start the print service.
To configure print service for a client, the mkprtsv command calls the spooler mkque and mkquedev commands to change the /etc/lpd/qconfig file (or its object class equivalent) appropriately and set up a spooler queue on the client machine.
To configure print service for a server, the mkprtsv command does the following:
- Calls the ruser command to set up remote users to print on the server.
- Calls the mkque and mkquedev commands to change the server's /etc/lpd/qconfig file appropriately and set up the necessary device queues on the server machine.
- Calls the startsrc command to activate the lpd and qdaemon server daemons. The qdaemon server daemon starts the piobe printer backend.
Flags
Item | Description |
---|---|
-A FileName | Specifies name of file containing entries related to the qconfig file. |
-a "Attribute =Value..." | Specifies a list of attributes and their corresponding values
to be used for updating the spooler's qconfig file or object
class. The -a flag is optional. Valid attribute types are listed
below:
|
-b "Attribute =Value..." | Specifies a list of attributes and their corresponding values
to be used for updating the spooler's qconfig file or object
class. At least one attribute must be defined for the -b option.
The backend attribute is required. Valid attribute types are
listed below:
|
-c | Performs print service configuration for a client machine. Use the -q flag with the -c option. |
-H FileName | Specifies the name of a file containing a list of host names. |
-h "HostName..." | Specifies a list of host names to be included in the list of remote users who can use the print server. The queuing system does not support multibyte host names. |
-q QueueName | Specifies the name of a queue in the qconfig file. |
-S | Starts print service after it is configured. If the -S flag is omitted, print service is configured but not started. |
-s | Performs print service configuration for a server machine. Use the -h, -H, and -q flags with the -s flag. |
-v DeviceName | Specifies the name of the device stanza in the qconfig file. |
Examples
- To configure and enable print service for a client, enter the command in the following format: In this example, rp1 is the logical printer name, piobe is the printer backend, and print802 is the remote print server.
- To configure a print server using initialization information and allow remote printing, enter the command in the following format: In this example, attribute information stored in the qinfo file initializes the spooler, and the list of host names stored in the hnames file is the list of remote hosts that have access rights to the print server.
Files
Item | Description |
---|---|
/etc/lpd/qconfig | Contains configuration information for the printer queuing system. |