Configures TCP/IP-based print service on a host.
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 ]
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:
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. |
mkprtsv -c -S -a"argname=rp1 backend=piobe \
pserver=print802"
Item | Description |
---|---|
/etc/lpd/qconfig | Contains configuration information for the printer queuing system. |