HP-UX System Administrator's Guide: Configuration Management
1. As a superuser, enter the command,
# /opt/hpnp/admin/jetadmin
2. Enter 1 to choose option 1) Configuration (super-user only).
3. Enter 3 to choose option 3) Add printer to local spooler.
4. Enter the full domain name of the network printer or its IP address. For example,
printer3.myhost.example.com or 192.0.34.166.
5. On the Configurable Parameters list, enter 1 to choose item 1) Lp destination
(queue) name and assign the printer a unique local name (to be used in printing
operations, such as lp).
Enter 0 to continue.
6. Enter y to cycle the print spooler and configure the new print queue.
7. Enter q, q to exit.
Creating a Printer Class
A printer class is created when you assign the first printer to it with HP SMH or the
lpadmin command. For information on what printer classes are, see HP-UX System
Administrator's Guide: Overview.
You can assign a local printer or a network printer to a class.
You cannot assign a remote printer to a local printer class. However, you can create
the class on the remote system and designate the class name as a remote printer on the
local system.
You can use HP SMH to add a printer to a printer class when the printer is being added
to the spooler; otherwise, you must use HP-UX commands.
Creating a Printer Class Using HP-UX Commands
To use HP-UX commands, follow these steps after several printers have been added
to the LP spooler:
1. Ensure that you have superuser capabilities.
2. Create the printer class, specifying a printer you want to add to the class of printers.
For example, to add a printer named laser1 to the class of printers named laser,
enter:
# /usr/sbin/lpadmin -plaser1 -claser
Only one printer can be added to a class at a time. If you have more than one
printer to add, repeat this command.
3. Allow print requests to be accepted for the newly added printer class. For example:
# /usr/sbin/accept laser
Creating a Printer Class 117