ITEM: AU7684L

Using mkvirprt from the command line


ENV:
        AIX 3.2.5.1
        Model 7013-580

DESC:
        How to add a JetDirect virtual printer from the
        command line instead of interactively through the
        mkvirprt tool

        These are the 3 commands the mkvirprt tool actually has to
        do to create a queue, queue device, and virtual printer.

mkque -qqname   
mkquedev -qqname -dqdevicename \\
        -a "backend = /usr/lib/lpd/piojetd jetdirhost"
mkvirprt -dqdevicename -nqname -qqname -spcl -thplj-4

        The first command creates the queue stanza in /etc/qconfig.
        This is useless without a second stanza - the queue device
        stanza.

        The second command creates the queue device stanza in 
        /etc/qconfig.  When a job is queued to the queue created in
        the mkque command, the queue device stanza is looked at to
        determine such things as the backend program to use.
        Note that spacing is very important, ie the above syntax would
        work but if I had put "backend=/usr/lib/lpd/piojetd..." it
        would have failed.  Depending on your backend you may need to
        add other attribute's with more -a "option = value" sections.
        For example, a remote queue using rembak for a backend would
        need the remote host name, the remote queue name, etc.

        The third command mkvirprt adds a virtual printer.  This is the
        formatter/filter used to process queued jobs.  In this example,
        we copy a predefined virtual printer "hplj-4.pcl" found in
        /usr/lib/lpd/pio/predef to a custom virtual printer file in
        /usr/lib/lpd/pio/custom.  In other words, we are creating a
        specific instance of the hplj-4.pcl default... Then later, you
        can change the default version as necessary.



Support Line: Using mkvirprt from the command line ITEM: AU7684L
Dated: February 1996 Category: N/A
This HTML file was generated 99/06/24~13:30:24
Comments or suggestions? Contact us