Log in as superuser or lp on the print server.
Stop accepting print requests on the printer on which you are unmounting the current form by using the reject command.
# reject printer-name |
printer-name |
Name of the printer on which you are unmounting a form. |
New print requests (which might not require the form) are not allowed to enter the printer's queue.
Unmount the current form by using the lpadmin command.
# lpadmin -p printer-name -M -f none |
In this command, the variable printer-name is the same as in Step 2.
The current form is deleted from the print server's /etc/lp/printers/printer-name/configuration file.
Mount the form by using the lpadmin command.
# lpadmin -p printer-name -M -f form-name[-a -o filebreak] |
-p printer-name |
Printer on which you are mounting a form. |
-M -f form-name |
Name of the form to be mounted. |
Optionally enables you to print a copy of the alignment pattern defined for the form, if it has one. |
The specified form is added in the print server's /etc/lp/printers/printer-name/configuration file.
Start accepting print requests on the printer.
# accept printer-name |
The printer is ready to print the form you just mounted.
Verify that the form has been mounted by checking for the form name under the Form mounted heading in the output of the following command.
$ lpstat -p printer-name -l |
Otherwise, submit a print request that requires the new form and check the printer for output.
The following example shows the process of unmounting the currently mounted form on the printer luna.
# reject luna destination "luna" will no longer accept requests # lpadmin -p luna -M f none # accept luna destination "luna" now accepting requests |
The following example shows the process of mounting the medical form on the printer luna.
# reject luna destination "luna" will no longer accept requests # lpadmin -p luna -M f medical -a -o filebreak # accept luna destination "luna" now accepting requests |