System Administration Guide: Solaris Printing

ProcedureHow to Move Print Requests to Another Printer

To move all print requests from one printer to another printer, you do not need to know the request IDs. However, first determine how many print requests are affected before you move them.

  1. Log in as superuser, lp, or assume an equivalent role on the print server.

  2. (Optional) Determine if the request IDs of the print requests on the original printer.


    # lpstat -o printer-name1
    
  3. (Optional) Check to see if the destination printer is accepting print requests.


    # lpstat -a printer-name2
    

    -a printer-name2 reports whether print destinations are accepting requests.

  4. Move all the print requests from the original printer to the destination printer.


    # lpmove printer-name1 printer-name2
    
    printer-name1

    Specifies the name of the printer from which all print requests will be moved.

    printer-name2

    Specifies the name of the printer to which all print requests will be moved.

    For more information, see the lpmove(1M) man page.

    If some requests cannot be printed on the destination printer, the requests are left in the original printer's queue. By using request IDs, you can also move specific print requests to another printer by using the lpmove command.

  5. (Optional) Start accepting print requests on the original printer.

    If you move all the print requests to another printer, the lpmove command automatically stops accepting print requests for the printer. This step is necessary if you want to begin accepting new print requests for the printer.


    # accept printer-name1
    
  6. Check for any remaining print requests in the original printer's queue.


    # lpstat -o printer-name1
    

    Ensure that all specified print requests were moved to the destination printer's queue.


    # lpstat -o printer-name2
    

Example 5–18 Moving Print Requests to Another Printer

The following example shows how to move print requests from the printer luna to the printer terra. Then, the original printer, luna, is instructed to resume accepting print requests.


# lpmove luna terra
# accept luna