Next | Prev | Up | Top | Contents | Index

Managing Printing on Print Server Systems

Remote printing on the print server system allows users to send print jobs over the network with the same commands that send jobs to a local printer. After the print client's lp spooler queues the print request, it is sent across the network to the remote print server system, where it is processed by that system's lp spooler. As a result of this, you cannot accurately determine the status of a remote print request by using the lpstat command on the local system.

This section covers two aspects of remote printing:


Checking Print Server Status

When you send a print request across the network to a print server, the local lp system always reports that the request is being printed, regardless of its actual status in the print server system's lp spooler. To check the true status, you must remotely access (using rsh or rlogin) the print server system that is processing the job. The remote lp scheduler changes the request ID of any job sent to it over the net to reflect the actual name of the print server and gives it a new sequence number corresponding to its place in the print server queue. To determine a specific job's status, use the lpstat command. Example 2-9 uses rsh to access the print server system:

Example 2-9 : Checking the Print Server's lp Status

rsh hostname lpstat -t

hostname is the name of the print server system.


Canceling Print Server Requests

Once you know the remote print server status, you can use the cancel command on the print server system to cancel jobs on the print server's queue. You must cancel a remote print job from the print server once it has been sent over the network by the local lp system.

Example 2-10 uses rsh to access the print server system:

Example 2-10 : Canceling Print Server Requests

rsh hostname cancel print-server-name

rsh hostname cancel request-ID

hostname is the name of the print server system. Using the print-server-name cancels the job currently being printed. Using the request-ID cancels the specified job whether or not it is currently being printed


Next | Prev | Up | Top | Contents | Index