Previous Table of Contents Next


Enhanced Network Printer Support

The Solaris 2.6 print software provides better support for network printers than in previous Solaris releases. Features include:

  A new interface script, /usr/lib/lp/model/netstandard, which is specifically designed to support network printers. This script collects the spooler and print database information needed to perform network printing and passes it to the print output module.
  A new print output module, netpr, is called from the netstandard interface script to print the print job. It opens a network connection to the printer, creates the correct protocol instructions, and sends the data to the printer. The netpr program currently supports two protocols: BSD print protocol and a TCP pass-through.
  New arguments to the lpadmin -o command are used to specify destination name, protocol, and time-out values for the network printer.
  Solstice AdminSuite 2.3 Printer Manager can be used to set up and manage network printers.

Print Administration Tools in the Solaris 2.6 Environment

The Solaris 2.6 printing software provides an environment for setting up and managing client access to printers on a network. The Solaris 2.6 printing software contains the following components:

  SunSoft Print Client software, previously available only with the Solstice AdminSuite set of administration tools, enables you to make printers available to print clients by using a name service.
  Admintool, a graphical user interface used to manage printing on a local system.
  The LP print service commands, a command-line interface used to set up and manage printers that provide additional functionality not available with the other print management tools.
  The Solstice AdminSuite Print Manager, a graphical user interface used to manage printers in a name service environment, is available with the Solaris 2.6 server product.


NOTE:  If you do not use Solstice Printer Manager to set up and manage printing, you must use some combination of the other components to completely manage printing in the Solaris 2.6 environment.

Table 6-2 summarizes the features of the Solaris 2.6 printing components.

Table 6-2 Solaris 2.6 Printing Component Features

Component Graphical User Interface Set Up Print Clients Manage Print Clients and Servers NIS OR NIS+ Support
SunSoft Print Client No Yes No Yes
Admintool Yes Yes Yes No
LP commands No Yes Yes No
Solstice AdminSuite Yes Yes Yes Yes

Choosing a Method to Manage Printers

The Solaris 2.6 print client software and the Printer Manager application in Solstice AdminSuite offer a graphical solution for setting up and managing printers on a network. The advantage of the Solaris 2.6 print client software is that it supports a name service (NIS or NIS+), which enables you to centralize print administration for a network. You can also use the lpadmin command to configure printers on individual systems.

Admintool provides an alternative method to install printers in the Solaris environment. Admintool is a graphical user interface for the LP print service commands that simplifies tasks for setting up and managing printers.

You must run Admintool on the system the printer is connected to because you cannot make changes to a remote system by using Admintool. When you set up a printer, Admintool makes the appropriate changes in the /etc/printers.conf file and /etc/lp directories on the system, as required. You can use Admintool to set up a system as a print server or print client only if it is running the SunOS 5.x operating system.

Admintool should meet most of your needs for setting up printing services. However, if you have special needs, such as writing scripts, you may want to use the LP print service commands directly.

Introducing the LP Print Service

The LP print service performs the following functions:

  Administers files and schedules local print requests
  Schedules network requests
  Filters files (if necessary) so that they print properly
  Starts programs that interface with the printers
  Tracks the status of jobs
  Tracks forms mounted on the printer
  Tracks printwheels that are currently mounted
  Delivers alerts to mount new forms or different printwheels
  Delivers alerts about printing problems

Administering Files and Scheduling Print Requests

The LP print service has a scheduler daemon, called lpsched. The scheduler daemon updates the LP system files with information about printer setup and configuration, as shown in Table 6-1.


Figure 6-1  The lpsched scheduler updates the LP system files.

In the Solaris 2.6 release, all of the LP commands have been moved from /usr/bin into /usr/sbin except for enable and disable. The enable and disable commands are located in /usr/bin and /usr/lib/lp/local and are symbolically linked to the accept and reject commands.

The lpsched daemon also schedules all local print requests, as shown in Figure 6-2, regardless of whether the requests are issued by users from an application or from the command line. In addition, the scheduler tracks the status of printers and filters. When a printer finishes printing a request, the scheduler schedules the next request, if there is one in the queue.


Figure 6-2  The lpsched scheduler schedules local print requests.

Each print client and print server must have only one LP scheduler running. The scheduler is started when a system is booted (or enters run level 2) by the control script /etc /rc2.d/S80lp. Without rebooting the system, you can stop the scheduler with the /usr/sbin/lpshut command and restart the scheduler with the /usr/lib/lp/lpsched command. The scheduler for each system manages its own print requests. It waits for requests issued by the LP commands and then handles the requests in an appropriate manner.


Previous Table of Contents Next