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:
Ensure
that you have superuser capabilities.
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.
Allow
print requests to be accepted for the newly added printer class.
For example:
Start
the LP spooler if it is not already running: