HPlogo Native Mode Spooler Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 Configuring and Operating Network Printers

A Large Sample Configuration

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

The next example of a network printer configuration file might be appropriate for a large network with many printers at different sites. This example includes five such printers (listed below). Four are LaserJet 4Si printers and the fifth is a DeskJet 1200C used for making color prints and slides. "Local" and "remote" are used with respect to the site of the host HP3000. The network printers are:

  • A local printer for MPE-style reports (landscape, 132 chars, 60 lines per page).

  • Another local printer for raw PCL documents.

  • The DeskJet 1200C, a local printer.

  • A remote printer for portrait mode text-based reports and raw PCL documents.

  • Another remote printer for PostScript documents.

The sample NPCONFIG file

The NPCONFIG file for this large network printing installation 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

   #     banner_header = TRUE

   #     poll_interval = 10 seconds

   #

   #  Since most printers are LaserJet 4Si, their major properties are defined

   #  in the global entry.  Items affected by the behavior of local versus 

   #  remote printing are specified in the individual LDEV entries.



   global (setup_file = LJGLOBAL.HPENV.SYS      # Primary setup for LJ 4Si.

           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 paper by itself.

           

   #  For local printers, the default values of the I/O timing items are used:

   #

   #     poll_interval_max = poll_interval = 10 seconds

   #     data_timeout = 10 seconds

   #     snmp_timeout = 5 seconds

   #     snmp_max_retries = 3

   #

   #  The I/O timing values for remote printers depend on their network 

   #  "distance", and are specified in their LDEV-specific entries.



   200 (network_address = ptr4.mycorp.com       # Local printer "printer 4".

        setup_file = LJMPE.HPENV.SYS            # MPE-style setup file.

        message_interval = 60)                  # Repeat msgs every >= 60 secs.



   201 (network_address = ptr7.mycorp.com       # Local printer "printer 7".

                                                # (no setup file, prints raw PCL.

                                                #   Inherits global setup.)

        message_interval = 60)



   202 (network_address = ptr8.mycorp.com       # The DeskJet 1200C printer.

                                                # (no setup, assume output varies

                                                #   enough that any setup is in

                                                #   output or ENV file.  Inherits

                                                #   global setup.)

        banner_intray = 0                       # No banner tray on this printer.

        pjl_supported = FALSE                   # Supports language switching only.

        jam_recovery = FALSE)                   # Reprint entire file after jam.



   300 (network_address = rmtptr1.mycorp.com    # Remote text/PCL printer.

        setup_file = LJPORTRT.HPENV.SYS         # Portrait mode, etc., setup file.

        poll_interval_max = 120                 # Poll_interval decays to 2 min.

        data_timeout = 20                       # Allow for busy network.

        snmp_timeout = 20                       # Same network, same timeout.

        snmp_max_retries = 1                    # Only give it one chance.

        message_interval = 1)                   # Assures that messages are 

                                                # always displayed despite

                                                # printer's distance from host.



   301 (network_address = rmtptr1.mycorp.com    # Same remote printer as above.

        setup_file = LJPS.HPENV.SYS             # PostScript setup file.

        poll_interval_max = 120                 # Poll_interval decays to 2 min.

        data_timeout = 20                       # Allow for busy network.

        snmp_timeout = 20                       # Same network, same timeout.

        snmp_max_retries = 1                    # Only give it one chance.

        message_interval = 1)                   # (see comment for LDEV 300).

The sample printer setup files

The printer setup files described here are similar to those used in the small configuration example. To avoid repeating identical information, you are referred to the previous section where it is appropriate.

LPGLOBAL.HPENV.SYS

The global setup file LPGLOBAL.HPENV.SYS is identical to the setup file LJ4SISET used in the small configuration. Refer to that section for more information.

LJMPE.HPENV.SYS

In network printing configuration, the contents of a specific setup file are appended to those of any global setup file. This means that the setup data shown below, from the default MPE setup file LJMPE.HPENV.SYS, is sent after the setup information stored in LJGLOBAL. The only setup items that you need to include in LJMPE are those that differ from the items in LJGLOBAL.

As in the preceding example, the annotations shown here in italics are included only for clarity. Do not include them, or other comments, in your files.

   Esc&l1O              Set landscape mode

   Esc(s13H      Sets pitch to 13

   Esc)s13H      Sets pitch for secondary character set

   Esc&a4L       Sets left margin

LJPORTRT.HPENV.SYS

This example assumes that the printer identified as LDEV 300 uses European standard A4 paper. As a result, the LJPORTRT setup file includes two modifications to LPGLOBAL.

   Esc&l26A             Selects A4 paper

   Esc&a7L       Sets left margin

LJPS.HPENV.SYS

This example, like the previous one, assumes that all required PostScript, including any necessary non-resident font definition, is in the user's data stream. The LJPS 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 and line feed 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 spooler 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.

   Esc%-12345X@PJL CRLF

   @PJL COMMENT Beginning PostScript Job CRLF

   @PJL ENTER LANGUAGE = POSTSCRIPT CRLF

The spooler automatically returns the printer to PCL 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.

Feedback to webmaster