This printing feature enables the Solaris print system to recognize and use localhost as the local host in the print system databases. In prior releases, /bin/hostname was used solely to generate the print hostname. The print system depended on this name remaining constant. The ability to use localhost as the name of the current system enables print servers to maintain the same print hostname, independent of the system's host name.
The modification applies to the setup of local print queues exclusively.
To support this feature, the following modifications are effective for the lpadmin command and the Solaris Print Manager graphical user interface (GUI):
The lpadmin command uses the -s option when creating a local print queue.
To use localhost as the host name that is specified within the print server, set the print hostname to localhost, as shown:
# lpadmin -p <new-print-queue> -s localhost -v <device>
# lpadmin -p foo -s localhost -v /dev/term/a
The default behavior of the lpadmin command has not changed.
Solaris Print Manager now includes an added tool attribute check box, Use localhost for Printer Server. The localhost attribute is selected by default. To deselect the localhost attribute, uncheck the box. Unchecking the box selects the previously chosen behavior for this attribute.
For more information, see the following: