System Administration Guide: Solaris Printing

ProcedureHow to Unmount and Mount a Form

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

  2. Stop accepting print requests on the printer on which you are unmounting the current form.


    # reject printer-name
    

    printer-name is the 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.

  3. Unmount the current form.


    # lpadmin -p printer-name -M -f none
    

    In this command, the variable printer-name is the same variable that is used in Step 2.

    The current form is deleted from the print server's /etc/lp/printers/printer-name/configuration file.

  4. Remove the form paper from the printer.

  5. Load the new form paper for the next print request.

  6. Mount the form.


    # lpadmin -p printer-name -M -f form-name[-a -o filebreak]
    -p

    Specifies the printer on which you are mounting a form.

    -M

    Specifies the name of the form to be mounted.

    -a -o filebreak

    Optionally enables you to print a copy of the alignment pattern defined for the form, if this definition exists.

    -p printer-name

    Printer on which you are mounting a form.

    -M -f form-name

    Name of the form to be mounted.

    The specified form is added in the print server's /etc/lp/printers/printer-name/configuration file.

  7. Start accepting print requests on the printer.


    # accept printer-name
    

    The printer is ready to print the form you just mounted.

  8. Verify that the form has been mounted.


    # lpstat -p printer-name -l
    

    Otherwise, submit a print request that requires the new form and check the printer for output.


Example 8–16 Unmounting a Form

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


Example 8–17 Mounting a Form

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