HP-UX System Administrator's Guide: Routine Management Tasks

5. Restart the LP spooler:
/usr/sbin/lpsched
Removing a Printer from the LP Spooler
Using HP SMH
1. Access the HP SMH homepage as root.
2. Select Tools, Printer Management, Configure Printers or Plotters. This will
display a Tool Launch page.
NOTE: If your client console is a PC, you must have an X Window Server running
before executing this function.
3. If needed, enter the address of the target display console. Click on the Run button.
An X Window is displayed showing the printer configuration page.
4. From the Action pulldown menu, choose Remove .... A dialog is displayed asking
that you confirm the removal.
NOTE: HP SMH asks for confirmation before removing the printer from the LP
spooler. If print jobs remain in the printers queue or if the printer is the system
default destination, HP SMH notifies you. If you choose to remove a printer with
jobs in its queue, HP SMH cancels them.
5. Confirm the removal, Click YES.
Using HP-UX commands
1. Ensure that you have superuser capabilities.
2. (Optional): Notify users that you are removing the printer from the system.
3. Remove the printer from the configuration file of any software application through
which the device is accessed. (Refer to the documentation accompanying the
software application for instructions.)
4. Stop the LP spooler:
/usr/sbin/lpshut
For more information, see “Stopping and Restarting the LP Spooler ” (page 163).
5. (Optional): Deny any further print requests for the printer. For example:
/usr/sbin/reject -r"Use alternate printer." laser1
By doing this step, you can be assured that no new jobs will appear before you
remove the printer.
Users will see the message Use alternate printer when they direct requests
to a rejected destination if the printer has not been removed. Once the printer has
Configuring Printers to Use the LP Spooler 175