HP-UX System Administrator's Guide: Routine Management Tasks
For more information, see “Stopping and Restarting the LP Spooler ” (page 163).
3. Remove the printer from the class. For example:
/usr/sbin/lpadmin -plaser1 -rclass
4. Restart the LP spooler:
/usr/sbin/lpsched
See lpshut(1M), lpadmin(1M), and lpsched(1M) for details on the command options.
Removing a Printer Class
See HP-UX System Administrator’s Guide: Overview to familiarize yourself with this
concept.
NOTE: You cannot use HP SMH to remove a printer class.
Using HP-UX commands
1. Ensure that you have superuser capabilities.
2. Stop the LP spooler:
/usr/sbin/lpshut
For more information, see “Stopping and Restarting the LP Spooler ” (page 163).
3. (Optional): Deny any further print requests for the printer. For example:
/usr/sbin/reject -r"Use alternate printer." laser1
4. (Optional): Determine if there are any jobs in the printer’s queue. For example:
/usr/bin/lpstat -o laser1
5. (Optional): Move all pending print requests in the request directory for the printer
class to another printer or printer class. For example:
/usr/sbin/lpmove laser1 laser2
6. Remove the printer class. For example:
/usr/sbin/lpadmin -xlaser
7. Restart the LP spooler:
/usr/sbin/lpsched
See lpshut(1M), reject(1M), lpmove(1M), lpadmin(1M), and lpsched(1M) for details
on the command options.
NOTE: When you remove a printer class, the printers in the class are not removed
— you may still use them as individual printers. If you remove all printers from a class,
that printer class is automatically removed.
Configuring Printers to Use the LP Spooler 177