System Administration Guide

Chapter 40 Planning Printers on Your Network (Overview)

The goal of setting up printers on a network is to give users access to one or more printers. This section provides information about distributing printers across your network to gain the best efficiency and about planning for printer setup.

For step-by-step instructions on print management tasks, see:

Distributing Printers on the Network

As an administrator, you must determine whether each printer would be best used if it is dedicated to one system or available to many systems. In a network environment, it usually works best to distribute your printers on several print servers. The advantage of setting up several print servers is that when one print server has a problem, you can route print requests to other print servers.

If you use a centralized print configuration, you can still connect printers to users' systems for convenience or for improved response. A printer that is connected to a user's system is still available to other systems on the network.

Figure 40-1 shows an example of how you can have a centralized print configuration and still connect printers to users' systems.

Figure 40-1 How to Distribute Printers on a Network

Graphic

Assigning Print Servers and Print Clients

You must decide which systems will have local printers physically attached to them, and which will systems use printers on other systems. A system that has a local printer attached to it and makes the printer available to other systems on the network is called a print server. A system that sends its print requests to a print server is called a print client.

The LP print service software manages printing services in the Solaris environment. Besides physically connecting a printer to a system, you must define the printer characteristics to the LP print service and make the system a print server. Once you have print servers set up, you can set up other systems as print clients.

Print servers and print clients can run different versions of the SunOS operating system. Systems running the SunOS 5.x operating system can print to existing print servers running the SunOS 4.x operating system, and systems running the SunOS 4.x operating system can print to print servers running the SunOS 5.x operating system.


Note -

SunOS 5.x is part of the Solaris 2.x operating environment.


Figure 40-2 shows example print configurations on a network with systems running the SunOS 5.x and 4.x operating systems.

Figure 40-2 Example Print Configurations on SunOS 5.x and 4.x Systems

Graphic

Print Server Requirements and Recommendations

You can attach a printer to a standalone system or to any system on the network. Any networked system with a printer can be a print server, as long as the system has adequate resources to manage the printing load.

Spooling Space

Spooling space is the amount of disk space that is used to store and process requests in the print queue. Spooling space is the single most important factor to consider when deciding which systems to designate as print servers. When users submit files for printing, the files are stored in the /var/spool/lp directory until they have been printed. The size of the /var directory depends on the size of the disk and how the disk is partitioned. Spooling space may be allocated in the /var directory on the print server hard disk, or mounted from a file server and accessed over the network.


Note -

If /var is not created as a separate file system, the /var directory uses space in the root (/) file system, which is likely to be insufficient.


Disk Space

When evaluating systems as possible print servers, consider their available disk space. A large spool directory can consume 600 Mbytes of disk space. Look at the size and division of disk space on systems that can be designated as print servers.

Also, carefully evaluate the printing needs and use patterns of print client systems. If users in a small group typically print only short email messages-- simple ASCII files without sophisticated formatting requirements--a print server with 20 to 25 Mbytes of disk space allocated to /var is probably sufficient. If, however, many print client users are printing large documents or bit-mapped or raster images, they will likely fill up the spooling space quite frequently. When users cannot queue their jobs for printing, work flow is interrupted. Requests for more spooling space may force you to either add disk space for spooling or designate a different system as the print server.

If the print server has a /var directory that resides in a small partition, and if a large amount of disk space is available elsewhere, you can use that space as spooling space by mounting it on the /var directory on the print server. See Chapter 28, Mounting and Unmounting File Systems (Tasks) for information about mounting file systems and editing the vfstab file.

Memory

The Solaris environment requires a minimum of 16 Mbytes of memory to run. A print server does not require additional memory. However, you may find that more memory improves performance in filtering print requests.

Swap Space

The swap space allocation on the print server should be sufficient to handle LP print service requirements. See Chapter 30, Configuring Additional Swap Space (Tasks) for information about how to increase swap space.

Hard Disk

For optimal performance, the print server should have a hard disk and a local /var directory. You should mount spooling space for a print server on a local hard disk. If a print server has its own hard disk and a local /var directory, printing is much faster, and you can more accurately predict the time needed to process print requests.

Planning for Printer Setup

This section provides an overview of planning for printing in the Solaris environment that includes:

Setting Definitions for Printers

Establishing definitions for the printers on your network is an ongoing task that lets you provide a more effective print environment for users. For example, you can assign parameters for all your site's printers to help users find where a printer is located, or you can define a class of printers to provide the fastest turnaround for print requests.

The lpadmin command lets you set all of the print definitions, while Admintool lets you set only some of them when you install or modify a printer. Table 40-1 lists the print definitions and shows whether you can assign the definition with Admintool.

Table 40-1 Print Definitions Set With Admintool

Print Definition 

Can You Set It With Admintool? 

Printer name

Yes 

Printer description

Yes 

Printer port

Yes 

Printer type

Yes 

File contents

Yes, but with less functionality than the lpadmin command

Fault notification

Yes, but with less functionality than the lpadmin command

Default printer destination

Yes 

Printing banner pages

Yes, but with less functionality than the lpadmin command

Limiting user access to a printer

Yes, but with less functionality than the lpadmin command

Printer class

No 

Fault recovery

No 

Printer Name

When adding a printer to a system, you specify a printer name for the printer. A printer name must be:

Establish a naming convention that works for your site. For example, if you have different types of printers on the network, including the printer type as part of the printer name can help users choose an appropriate printer. For instance, you could identify PostScriptTM printers with the letters PS. If, however, all of the printers at your site are PostScript printers, you would not need to include the initials PS as part of the printer name.

Printer Description

You can assign a description to a printer by using the lpadmin -D command or Admintool. The printer's description should contain information to help users identify the printer. You might include the room number where the printer is located, the type of printer, the manufacturer, or the name of the person to call if there are printing problems.

Users can look at a printer description by using the following command:


$ lpstat -D -p printer-name

Printer Port

When you install a printer or later change its setup, you can specify the device, or the printer port, to which the printer is connected, by using Admintool or the lpadmin -p printer-name -v device-name command.

Most systems have two serial ports and a parallel port. Unless you add ports, you cannot connect more than two serial printers and a parallel printer to one system.

With Admintool, you can select either /dev/term/a or /dev/term/b, or choose Other and specify any port name that the print server recognizes. These options give you as much flexibility as the lpadmin command.

The LP print service initializes the printer port using the settings from the standard printer interface program. See "Managing Print Filters" for more information about printer interface programs. If you have a parallel printer or a serial printer for which the default settings do not work, see "Adjusting Printer Port Characteristics" for information about customizing the port settings.


Note -

If you use multiple ports on an x86 system microprocessor-based system, only the first port is enabled by default. The second and any subsequent ports are disabled by default. To use more than one port, you must manually edit the device driver port configuration file for each additional asy (serial) port or lp (parallel) port. The pathnames for the x86 port configuration files are:

/platform/i86pc/kernel/drv/asy.conf

/platform/i86pc/kernel/drv/lp.conf

See the Information Library for Solaris 2.6 (Intel Platform Edition) for information about configuring serial and parallel ports on x86 systems.


Printer Type

The printer type is a generic name for a type of printer. It identifies the terminfo database entry that contains various control sequences for the printer. By convention, printer type is usually derived from the manufacturer's model name. For example, the printer type name for the DECwriter(TM) printer is decwriter. However, the common printer type PS does not follow this convention. PS is used as the printer type for many models of PostScript printers, such as LaserWriter\256I and LaserWriterII printers.

You can specify the printer type by using the lpadmin -T command or Admintool. With Admintool, you can specify the printer type only when you are installing a printer. If you want to change the type of an existing printer, you must delete the printer and reinstall it by using Admintool, otherwise change the printer type by using the lpadmin command.

Admintool lets you select a printer type from a menu or choose Other and specify any printer type in the terminfo database. This provides you as much capability as the lpadmin command.

Printer Names in the terminfo Database

Information about each printer type is stored in the terminfo database (/usr/share/lib/terminfo). This information includes the printer capabilities and initialization control data.The printer you install must correspond to an entry in the terminfo database.


$ pwd
/usr/share/lib/terminfo
$ ls
1   4   7   A   M   a   d   g   j   m   p   s   u   x
2   5   8   B   P   b   e   h   k   n   q   t   v   y
3   6   9   H   S   c   f   i   l   o   r   ti  w   z
$ 

Each subdirectory contains compiled database entries for terminals or printers. The entries are organized by the first letter of the printer or terminal type. For example, if you have an Epson\256 printer, look in /usr/share/lib/terminfo/e to find your particular model of Epson printer.


$ cd /usr/share/lib/terminfo/e
$ ls
emots        ep2500+high  ep48           ergo4000    exidy2500
env230       ep2500+low   epson250       esprit
envision230  ep40         epson2500-80   ethernet
ep2500+basic ep4000       epson2500-h    ex3000
ep2500+color ep4080       epson2500-hi8  exidy
$ 

The entries for Epson printers are included in the preceding example.

If you have a NEC\256 printer, look in the /usr/share/lib/terminfo/n directory for your NEC printer model.


$ cd /usr/share/lib/terminfo/n
$ ls
ncr7900        ncr7901        netty-Tabs     newhpkeyboard
ncr7900-na     nec            netty-vi       nuc
ncr7900i       net            network        nucterm
ncr7900i-na    netronics      netx
ncr7900iv      netty          newhp
$ 

The entry in this directory for NEC is included in the preceding example.

Selecting a Printer Type

For a local PostScript printer, use a printer type of either PostScript (PS) or Reverse PostScript (PSR). If your printer supports PostScript, choose PS or PSR even if the specific printer type is listed in the terminfo database.

If your PostScript printer prints pages face up, documents appear to be printed backwards--the first page is at the bottom of the stack and the last page is on the top. If you specify the printer's type as PSR, the LP print service reverses the order of the pages before sending them to the printer; the last page is printed first, and the pages are stacked in forward order. However, the LP print service can reliably change the page order only for PostScript files that conform to the Adobe\256 Document Structuring Conventions in Appendix C of the PostScript Language Reference Manual (written by Adobe Systems Incorporated, and published by Addison-Wesley, 1990).

If a printer can emulate more than one kind of printer, you can assign it several types by using the lpadmin -T command. If you specify more than one printer type, the LP print service uses the type that is appropriate for each print request.

You may not find the printer type in the appropriate terminfo directory. The type of printer is not necessarily linked to the manufacturer's name on the printer. For example, for any type of PostScript printer, you can use the PS or PSR entry (found in the /usr/share/lib/terminfo/P directory) instead of an entry specific to manufacturer or product names.

If you have an unusual type of printer, you may need to try different entries before you can determine whether a particular terminfo entry works for your model of printer. If possible, find an entry in the terminfo database that works for your printer. It will be much easier than trying to create an entry. If you have to create your own entry, "Adding a terminfo Entry for an Unsupported Printer" contains some useful tips.

Selecting a File Content Type

Print filters convert the content type of a file to a content type that is acceptable to the destination printer. The file content type tells the LP print service the type of file contents that can be printed directly, without filtering. To print without filtering, the necessary fonts must also be available in the printer. (You must set up and use filtering for other types of files.)

You can specify the file content type for a printer by using the lpadmin -I command or Admintool. With Admintool, you can select a file contents type from a menu. Not all available file content types are listed on the menu. You must use the lpadmin command to specify file content types that are not included on the Admintool menu.

Many printers can print two types of files directly:

When submitting a file for printing, the user can indicate the content type of the file (lp -T content-type). Otherwise, a file is assumed to be simple (ASCII text). The LP print service uses the file content type to determine which filters to use to convert the file contents into a type the printer can handle.

Admintool provides a list of file content types from which you can choose when installing or modifying a local printer. The choices are translated to the names that the LP print service uses. Table 40-2 describes the file content types you can choose with Admintool.

Table 40-2 Choosing File Content Type With Admintool

File Contents Choice 

LP Print Service Name 

Description 

PostScript 

postscript

PostScript files do not require filtering. ASCII files require filtering. 

ASCII 

simple

PostScript files require filtering. ASCII files do not require filtering. 

Both PostScript and ASCII 

simple,postscript

PostScript files and ASCII files do not require filtering. 

None 

""

All files require filtering, except those matching the printer's type. 

Any 

any

No filtering required. If the printer cannot handle a file content type directly, the file will not be printed. 

Choose the file content type that best matches the printer's capabilities. PostScript (which means filtering is not needed for PostScript files) is the default choice in Admintool and is probably correct most of the time.

Frequently Used Printers

This section provides the printer type and file content type for the printers most commonly used with SunOS 5.x software. Although not shown, many of these printers can also directly print files with simple content type.

If you have a PostScript printer, use a printer type of PS or PSR and a content type of postscript. PSR reverses the pagination and prints the banner page last.

Table 40-3 lists additional non-PostScript printers and shows the printer type to use for configuring each printer. For all these printers, the file content type is simple.


Note -

Sun Microsystems does not supply filtering software for the printers listed in Table 40-3, among others. However, you can use unsupported printers if you supply filtering or if the printer can directly print the file content type. If you have questions about any printer for which Sun Microsystems does not supply filters, contact the printer manufacturer.


Table 40-3 Some Non-PostScript Printers for Which Sun Does Not Supply Filters

Printer 

Printer Type 

Daisy 

daisy

Datagraphix 

datagraphix

DEC LA100 

la100

DEC LN03 

ln03

DECwriter 

decwriter

Diablo 

diablo

 

diablo-m8

Epson 2500 variations 

epson2500

 

epson2500-80

 

epson2500-hi

 

epson2500-hi80

Hewlett-Packard HPCL printer 

hplaser

IBM Proprinter 

ibmproprinter

If you want to set up a printer that is not in the terminfo database, see "How to Add a terminfo Entry for an Unsupported Printer".