To move all print requests from one printer to another, you do not need to know the request IDs; however, it is a good idea to see how many print requests are affected before you move them.
Log in as superuser or lp on the print server.
(Optional) Check the request IDs of the print requests on the original printer.
# lpstat -o printer-name1 |
(Optional) Check if the destination printer is accepting print requests.
# lpstat -p printer-name2 |
-p printer-name2 |
Name of the printer to which you are moving the print requests. |
Move all the print requests from the original printer to the destination printer.
# lpmove printer-name1 printer-name2 |
printer-name1 |
Name of the printer from which all print requests will be moved. |
printer-name2 |
Name of the printer to which all print requests will be moved. |
If some requests cannot be printed on the destination printer, they are left in the original printer's queue. By using request IDs, you can also move specific print requests to another printer with the lpmove command.
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 |
Check for any remaining print requests in the original printer's queue by using the following command.
$ lpq -P printer-name1 |
Make sure all specified print requests were moved to the destination printer's queue by using the following command.
$ lpq -P printer-name2 |
In the following example, the lpmove command moves print requests from the printer luna to the printer terra, and the accept command tells the original printer luna to resume accepting print requests.
# lpmove luna terra # accept luna |