Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lpadmin(1m) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                              lpadmin(1m)



        _________________________________________________________________
        lpadmin
        configure the LP spooling system
        _________________________________________________________________


        SYNTAX

        /usr/lib/lpadmin -pprinter [options]

        /usr/lib/lpadmin -xdest

        /usr/lib/lpadmin -d[dest]


        DESCRIPTION

        Lpadmin configures LP spooling systems to describe printers,
        classes, and devices.  It adds and removes destinations, and
        changes membership in classes, devices for printers, printer
        interface programs, and the system default destination.  Lpadmin
        cannot be used when the LP scheduler, lpsched(1M), is running,
        except where noted below.

        Exactly one of the -p, -d or -x options must be present for every
        legal invocation of lpadmin.

        -d[dest]    Make dest, an existing destination, the new system
                    default destination.  If dest is omitted, then there
                    is no system default destination.  You can use this
                    option when lpsched(1M) is running.  No other options
                    are allowed with -d.

        -xdest      Remove destination dest from the LP system.  If dest
                    is a printer and is the only member of a class, then
                    the class will be deleted, too.  No other options are
                    allowed with -x.

        -pprinter   Name a printer to which all of the options below
                    refer.  If printer does not exist, it is created.

        You can use the following options in any order and only with the
        -p option.  The printer is referred to as P below.

        -cclass     Insert printer P into the specified class; class is
                    created if it does not exist.

        -eprinter   Copy an existing printer's interface program to be
                    the new interface program for P.

        -h          Indicate that the device associated with P is



        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                              lpadmin(1m)



                    hardwired.  This option is assumed when creating a
                    new printer unless the -l option is supplied.

        -iinterface Establish a new interface program for P.  Interface
                    is the pathname of the new program.

        -l          Indicate that the device associated with P is a login
                    terminal.  The LP scheduler, lpsched(1M), disables
                    all login terminals automatically each time it is
                    started.  Before re-enabling P, establish its current
                    device with lpadmin.

        -mmodel     Select a model interface program for P.  Model is one
                    of the model interface names supplied with the LP
                    software (see ``Models'' below).

        -rclass     Remove printer P from the specified class.  If P is
                    the last member of class, class is removed.

        -vdevice    Associate a new device with printer P; device is the
                    pathname of a file that is writable by the LP
                    administrator, lp.  Note:  you can associate the same
                    device with more than one printer.  If you give only
                    the -p and -v options, you can use lpadmin while the
                    scheduler is running.

        -Vstring    Pass string to interface as first argument.  String
                    is not interpreted by lp.  This option is used to
                    pass network addresses (prehost) to interfaces.


           Restrictions

        When creating a new printer, you must use the -v option and the
        -e, -i or -m option.  You can specify only one of the -e, -i and
        -m options.  The -h and -l options are also mutually exclusive.
        Printer and class names can be no longer than 14 characters and
        must consist entirely of the characters A-Z, a-z, 0-9 and 
        (underscore).


           Models

        Model printer interface programs are supplied with the LP
        software.  They are shell procedures that interface between
        lpsched (1M) and devices.  All models reside in the directory
        /usr/spool/lp/model and can be used with lpadmin -m without
        modification.  Models should have 644 permission if owned by lp &
        bin, or 664 permission if owned by bin & bin. Alternatively, you
        can modify copies of models and then use lpadmin -i to associate
        them with printers.



        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)





                                                              lpadmin(1m)



        The following list describes the models currently available:

        async_1200
                  Line Printer Interface Script for asynchronous line
                  printer.  Sets line to 1200 baud, x-on/x-off protocol,
                  tabs are expanded before printing.

        async_300, async 600, async_2400, async_4800, async_9600
                  Line Printer Interface Script for asynchronous line
                  printer.  Sets line to 300, 600, 2400, 4800, and 9600
                  respectively.

        dg455x    Lp interface for Data General Model 4557 or 4558 laser
                  printer.  Supports two options:
                  -o66  66-lines per 11in page -- compressed vertical
                  spacing
                  -o62  62-lines per 11in page -- normal 6 lines/inch
                  (default)

        lpb       Line Printer Interface Script for DG data channel
                  printer
                  loading -- models 4215-19, 4244-45
                  Loads tape format before file printing each time
                  invoked.

        lpj       Line Printer Interface Script for DG asynchronous line
                  printer.  Sets line to 2400 baud, x-on/x-off protocol,
                  tabs are expanded before printing.

        remshlp   Line Printer Interface Script for Network Printer
                  Access.  Executes the lp command on a remote system
                  through a remote shell (remsh(1C)).  Options available
                  on the remote printer are passed to it.

        dumb      Interface for a lineprinter without special functions
                  and protocol.  Form-feeds are assumed.  This is a good
                  model to copy and modify for printers that do not have
                  models.


        EXAMPLE

        /usr/lib/lpadmin  -ppr1  -mdumb  -v/dev/lp


             This command configures a printer named pr1 to use the dumb
             interface and associate /dev/lp with it.


        FILES




        DG/UX 4.00                                                 Page 3
               Licensed material--property of copyright holder(s)





                                                              lpadmin(1m)



        /usr/spool/lp/*


        SEE ALSO

        accept(1M), enable(1), lp(1), lpsched(1M), lpstat(1), sysadm(1m).
















































        DG/UX 4.00                                                 Page 4
               Licensed material--property of copyright holder(s)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026