HP 3000 Manuals

A Small Sample Configuration [ Native Mode Spooler Reference Manual ] MPE/iX 5.5 Documentation


Native Mode Spooler Reference Manual

A Small Sample Configuration 

This section shows you a sample network printer configuration that might
be appropriate for a small network confined to one site with identical
LaserJet 4Si printers.  This example shows configurations for three such
printers, LDEVs 6, 200, 210.  One printer, LDEV 200, is used heavily for
PostScript output, so it has been configured as two separate logical
devices:  LDEV 200, which uses a standard LaserJet setup file, and LDEV
201, which uses a PostScript setup file.

The sample NPCONFIG file 

The NPCONFIG file for this small configuration is shown below.  Comment
text appears after the pound sign (#), and is useful for making the
configuration file self-documenting.
________________________________________________________________________________________
|                                                                                      |
|                                                                                      |
|      #                            NPCONFIG.PUB.SYS                                   |
|      #  This configuration uses the default values for the following items.          |
|      #  They are not explicitly defined in this file.                                |
|      #     program_file = OUTSPTJ.PUB.SYS                                            |
|      #     poll_interval = 10 seconds                                                |
|      #     poll_interval_max = poll_interval = 10 seconds                            |
|      #     banner_header = TRUE                                                      |
|      #     data_timeout = 10 seconds                                                 |
|      #     snmp_timeout = 5 seconds                                                  |
|      #     snmp_max_retries = 3                                                      |
|      #                                                                               |
|      #  Since all the network printers are LaserJet 4Si, most of the remaining       |
|      #  configuration items appear in the following global entry.                    |
|                                                                                      |
|      global (setup_file = LJ4SISET.HPENV.SYS      # LaserJet 4Si setup file.         |
|              message_interval = 60                # Repeat msgs every >= 60 secs.    |
|              banner_intray = 1                    # Upper tray has colored banner    |
|                                                   #   paper.                         |
|              data_intray = 4                      # Lower tray has normal paper.     |
|              banner_trailer = FALSE               # Only need a header page.         |
|              pjl_supported = TRUE                 # LJ4Si is a full PJL device.      |
|              jam_recovery = TRUE)                 # Reprints jammed pages by itself. |
|      #                                                                               |
|      #  The next four entries define the configuration items appropriate to          |
|      #  each specific LDEV.                                                          |
|                                                                                      |
|      19     (network_address = 192.187.63.25)                                        |
|                                                                                      |
|      200    (network_address = 192.187.63.121)    # Standard text personality.       |
|                                                                                      |
|      201    (network_address = 192.187.63.121     # Same printer, different LDEV,    |
|              setup_file = LJ4PSSET.HPENV.SYS)     #   PostScript setup file.         |
|                                                                                      |
|      210    (network_address = 192.187.63.82)                                        |
|                                                                                      |
________________________________________________________________________________________

            

The sample printer setup files 

The setup files used in the small configuration example are explained
below.

LJ4SISET.HPENV.SYS.   

The global setup file LJ4SISET.HPENV.SYS is a typical setup for portrait
mode printing.  It consists of several groups of settings which are first
shown in tabular form in Table 3-4 , then as they might actually
appear in the setup file.  This file completely defines the printer
setup.  You may choose to configure many of these settings at the printer
itself and omit them from the setup file.  If you do, they will be set as
soon as the spooler sends the EscE command sequence before printing
begins.

The line termination attribute, Esc&k2G, needs a bit of explanation.
Text files generated on UNIX systems typically include only the <LF> as a
record separator.  The <CR> must be supplied, otherwise each line of the
output would stairstep down the page (and most likely be truncated at the
right margin).  The value shown for this attribute directs the printer to
supply a <CR> whenever it receives an <LF> or <FF> (formfeed).  Note that
an actual <CR> in the data stream before the <LF> or <FF> is redundant
and does not change the output.

Here is a typical record-oriented file containing the setup information.
In this example, we have taken advantage of the PCL property of combining
commands within the same parameter and group to reduce each such
combination to one record of the setup file.  The native mode spooler
would trim leading and trailing blanks from each record and concatenate
them to arrive at the final sequence actually sent to the printer.
_______________________________________
|                                     |
|                                     |
|      EscZEscE                       |
|      Esc&l1x0u0z0o1s4h1l2a6d3e60F   |
|      Esc&k10h2G                     |
|      Esc&a8l88M                     |
|      Esc(8UEsc)8U                   |
|      Esc(s0p12h10v0s0b4099T         |
|      Esc)s0p12h10v0s0b4099T         |
|      Esc&d@                         |
|                                     |
_______________________________________

            

For further details regarding PCL, consult your printer's PCL
documentation.

          Table 3-4.  Setup elements for the LJ4SISET.HPENV.SYS Global File 

-------------------------------------------------------------------------------------------------
|                   |                       |                       |                           |
|       Group       |       Attribute       |         Value         |         PCL Code          |
|                   |                       |                       |                           |
-------------------------------------------------------------------------------------------------
|                   |                       |                       |                           |
| Printer Control   | Display functions     | Off                   | EscZ                      |
|                   |                       |                       |                           |
|                   | Reset defaults        |                       | EscE                      |
|                   |                       |                       |                           |
-------------------------------------------------------------------------------------------------
|                   |                       |                       |                           |
| Job Control       | Number of copies      | 1                     | Esc&l1X                   |
|                   |                       |                       |                           |
|                   | Logical page origin   | (x,y) = (0,0)         | Esc&l0u0Z                 |
|                   | on physical page      |                       |                           |
|                   |                       |                       |                           |
-------------------------------------------------------------------------------------------------
|                   |                       |                       |                           |
| Page Control      | Orientation           | Portrait              | Esc&l0O                   |
|                   |                       |                       |                           |
|                   | One side/two sides    | Duplex, long edge     | Esc&l1S                   |
|                   |                       |                       |                           |
|                   | Paper source          | Bottom tray           | Esc&l4H                   |
|                   |                       |                       |                           |
|                   | Page size             | Letter (8.5"x 11")    | Esc&l2A                   |
|                   |                       |                       |                           |
|                   | Perforation skip      | On                    | Esc&l1L                   |
|                   |                       |                       |                           |
|                   | Horizontal motion index 10                    | Esc&k10H                  |
|                   | (in units of 1/120 in.|                       |                           |
|                   | 10 = 12 chars/inch)   |                       |                           |
|                   |                       |                       |                           |
|                   | Lines per inch        | 6                     | Esc&l6D                   |
|                   |                       |                       |                           |

|                   | Top margin            | 3 lines               | Esc&l3E                   |
|                   |                       |                       |                           |
|                   | Left margin           | 8 columns             | Esc&a8L                   |
|                   |                       |                       |                           |
|                   | Right margin          | 88th column           | Esc&a88M                  |
|                   |                       |                       |                           |
|                   | Text length (defines  | 60 lines              | Esc&l60F                  |
|                   | bottom margin)        |                       |                           |
|                   |                       |                       |                           |
|                   | Line termination      | CR=CR, LF=CR-LF,      | Esc&k2G                   |
|                   |                       | FF=CR-FF              |                           |
|                   |                       |                       |                           |
-------------------------------------------------------------------------------------------------
|                   |                       |                       |                           |
| Font specification| Symbol set            | ROMAN-8               | Esc(8U    Esc)8U          |
| (primary "(" and  |                       |                       |                           |
| secondary ")"     |                       |                       |                           |
| character sets)   |                       |                       |                           |
|                   |                       |                       |                           |
|                   | Spacing               | fixed                 | Esc(s0P   Esc)s0P         |
|                   |                       |                       |                           |
|                   | Pitch                 | 12 cpi                | Esc(s12H  Esc)s12H        |
|                   |                       |                       |                           |
|                   | Height                | 10 point              | Esc(s10V  Esc)s10V        |
|                   |                       |                       |                           |
|                   | Style                 | Upright               | Esc(s0S   Esc)s0S         |
|                   |                       |                       |                           |
|                   | Stroke weight         | Medium                | Esc(s0B   Esc)s0B         |
|                   |                       |                       |                           |
|                   | Typeface              | Courier               | Esc(s4099T   Esc)s4099T   |
|                   |                       |                       |                           |
|                   | Underlining mode      | Off                   | Esc&d@                    |
|                   |                       |                       |                           |
-------------------------------------------------------------------------------------------------

LJ4PSSET.HPENV.SYS.   

The contents of an LDEV-specific setup file are appended to those of any
global setup file.  This means that the setup data shown below, contained
in the file LJ4PSSET.HPENV.SYS, is sent after the data shown above as
LJ4SISET. This setup file merely switches the printer's language
personality to PostScript so that it interprets the data properly.

The first line of the setup file is a Universal Exit Language command.
The carriage return (#13, %15, $0d, chr(13)), and line feed (#10, %12,
$0b, chr(10)) characters (shown as the CR and LF keycaps, respectively)
in the PJL commands are significant and must be included as data.  Do not
rely on MPE or the printer to supply any of these characters as line
terminators.  The spooler concatenates only the separate data records in
the setup file and sends the result to the printer as one unbroken data
stream.  It does not insert any data of its own.  You may include
annotations and comments in your files only if you precede them with the
COMMENT PJL command, as shown in the example below.  Do not use other
symbols such as the pound sign (#), curly braces ({}) or slash-asterisk
combinations (&/*) to indicate comments in a setup file.  The spooler has
no provision for ignoring them.

For this example, assume that all required PostScript, including any
necessary non-resident font definition, is in the user's data stream.
___________________________________________________
|                                                 |
|                                                 |
|      Esc%-12345X@PJL CRLF                       |
|      @PJL COMMENT Beginning PostScript Job CRLF |
|      @PJL ENTER LANGUAGE = POSTSCRIPT CRLF      |
|                                                 |
___________________________________________________

            

mode at the end of each print job.  There is no need for a user-supplied
"exit" setup file, nor is there any provision for the spooler to use such
a file.



MPE/iX 5.5 Documentation