This procedure shows how to use Solaris Print Manager to add a local print queue with localhost specified as the host name in the print system databases. This modification was added to enable print servers to maintain the same print host name, independent of the machine host name. Note that you can also modify a print queue by using these commands.
Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
Start Solaris Print Manager as described in the procedure, How to Start Solaris Print Manager.
Set the print host name to localhost in Solaris Print Manager.
For instructions, see Setting Printer Definitions by Using Solaris Print Manager.
Check the entry in the /etc/printers.conf file.
# lpget new-print-queue new-print-queue: bsdaddr=abc,new-print-queue,Solaris
If the print queue was created or modified successfully, the output of the lpget command returns the name of the new or modified print queue.
For information about specifying localhost as the print server's host name when adding or modifying a print queue with the lpadmin command, see How to Add a Print Queue With localhost Specified as the Host Name (LP Print Commands).