Changes a print service configuration on a client or server machine.
chprtsv -c | -s [ -d | -i ] [ -h"HostName..." | -H FileName ] [ -x"HostName..." | -X FileName ] [ -q"QEntry" -v DeviceName -a"Attribute =Value..." -b"Attribute =Value..." | -A FileName ]
The chprtsv high-level command changes print service configuration on a client or server machine.
To change print service for a client, the chprtsv command does the following:
To change print service for a server, the chprtsv command does the following:
If you want to change the attributes of a queue, you must specify the queue name and the attributes associated with the queue. If you want to change the attributes of the queue device, you must specify queue name, queue device name, and the attributes associated with the queue device.
The changes you make with the chprtsv -i command go into effect on the system database and on the current active system.
If you want the changes you make to go into effect at system startup time without affecting the current system, use the chprtsv -d command to change only TCP/IP and its associated network interfaces in the system database only.
Item | Description |
---|---|
-A FileName | Specifies the name of the file containing qconfig command-related entries. |
-a "Attribute =Value..." | Specifies a list of attributes with corresponding
values to be used for updating the spooler's qconfig file or
object class. The list should be enclosed in quotes. Valid attribute
types follow:
|
-b "Attribute =Value..." | Specifies a list of attributes with corresponding
values for device stanza corresponding values to be used for updating
the spooler's qconfig file or object class. The list should
be enclosed in quotes. Valid attribute types follow:
|
-c | Specifies to the chprtsv command to reconfigure print service for a client machine. |
-d | Specifies that changes be reflected in the system database only, so that they can take effect at the next system startup. |
-H FileName | Specifies the name of a file containing a list of host names to be included. |
-h"HostName..." | Specifies a list of host names to be included on the current list of remote users who can use the print server. Note that the queuing system does not support multibyte host names. |
-i | Specifies that the change be reflected not only in the database, but also in the current running system. |
-q"QEntry" | Specifies a qconfig file entry to be removed. |
-s | Specifies that print service reconfiguration is to be performed for a server machine. |
-v DeviceName | Specifies a list of device stanzas to be changed. |
-X FileName | Specifies the name of a file containing a list of host names to be excluded. |
-x"HostName..." | Specifies a list of host names to be excluded on the current list of remote users who can use the print server. |
To reconfigure a print server, specify that the changes will take effect at the next startup, specify the file containing the host names, and then exclude some of those hosts, enter:
chprtsv -s -d -H ruser.inc -x "host1,host2,host3"
Item | Description |
---|---|
/etc/qconfig | Contains configuration information for the printer queuing system. |
/etc/hosts.lpd | Specifies foreign hosts that can print on the local host. |