Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX System Administrator's Guide: Configuration Management: HP-UX 11i Version 3 > Chapter 6 Configuring Printers

Removing a Printer from the LP Spooler

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

These procedures can be used to remove local, remote, and network printers from the spooler.

Removing a Printer Using Web-Based HP SMH

  1. Ensure that an X Window System server is running on your local system. See “Using the X Window System”.

  2. Start web-based HP SMH from your local system. See “Starting an HP SMH Web Client”.

  3. Navigate to Tools-> Printer Management-> Configure Printers or Plotters.

  4. Click the Run button.

    The Printers and Plotters window is displayed.

  5. Highlight the printer or plotter you are removing.

  6. Select Actions-> Remove.

    NOTE: HP SMH asks for confirmation before removing the printer from the LP spooler. If print jobs remain in the printer’s 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.
  7. Click OK in the Confirmation dialog box.

    The printer queue is removed.

  8. Select File-> Exit to return to HP SMH.

Removing a Printer Using HP-UX Commands

See lpadmin(1M) and lpsched(1M) for details on the command options.

  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. (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 been removed and users try to send a request, they will see the message Destination printer_name non-existent.

  5. (Optional) Determine if there are any jobs in the printer’s queue. For example:

    # /usr/bin/lpstat -o laser1
  6. (Optional) Disable the printer to be removed. For example:

    # /usr/bin/disable -r"Printer laser1 is disabled." laser1

    You would issue the above disable command if there are jobs in the printer’s queue and you do not want to wait for them to print before removing the printer. Issuing the disable command shuts the printer down in an orderly manner.

    You can also specify the -c option on the disable command to cancel all print requests for the printer.

  7. (Optional) If there are no jobs in the printer’s queue, go on to Step 8. If there are jobs, decide whether to move all pending print requests in the request directory to another printer request directory or to cancel any requests. For example, to move print requests:

    # /usr/sbin/lpmove laser1 laser2

    To cancel any requests:

    # /usr/bin/cancel laser1
  8. Remove the printer from the LP spooler. For example:

    # /usr/sbin/lpadmin -xlaser1
  9. Start the LP spooler if it is not already running:

    # /usr/sbin/lpsched
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.