Technical Notes |
|
This technical note explains how to troubleshoot common problems encountered when using Reflection NFS to send a local PC file to a UNIX printing queue. It offers an overview of the NFS printing process, a list of common problems, and troubleshooting tips to help you identify and solve your NFS printing problem.
This note is presented in the following sections:
In NFS printing, a print job is initiated from an NFS client on a PC to an NFS-mounted printer. This section offers an overview of the NFS printing process to help you identify the source of your printing problem.
Note: The pcnfsd daemon is a process running on the NFS server (similar to a DOS TSR). The daemon handles NFS printing or authentication requests coming from PC NFS clients. For further information on pcnfsd, see Technical Note 1100.
The table below includes a list of common printing problems and the associated troubleshooting sections that follow. If your problem is not listed in the table, begin with Troubleshooting Section A and then proceed through each section in turn.
| Common Printing Problems |
Troubleshooting Section |
| You can see the NFS host when browsing Network Neighborhood (Entire Network/NFS Network), but cannot see any NFS printers. |
A, B, D |
| You can see the NFS printers when browsing the Network Neighborhood, but get the error "The network printer is off line" when trying to install the printer. |
A, B, C, D |
| You see the NFS printer when browsing the NFS host, but the printer does not appear in the list of available printers in Windows applications. |
E |
| You are able to print to the NFS printer, but the output is garbled. |
F |
| You can print through Windows, but get a "File Creation Error" when trying to print from DOS or through a DOS-based application. |
G |
The following troubleshooting sections ask specific questions about your system and detail the configurations required for successful printing through Reflection NFS. Begin with the section(s) associated with your problem, identified in the table above, or simply begin with Section A.
The pcnfsd daemon must be running on the NFS server to which the printer is attached.
To verify the existence and version of pcnfsd on the server, use the Reflection NFS Utility. Click Search for Server Daemons in the Services Menu to find out about the pcnfsd daemon that your host supports.
Reflection NFS Client versions 10.0 and higher support only pcnfsd version 2. To print with Reflection NFS Client, pcnfsd version 2 or higher must be available on your NFS server.
If pcnfsd is running on the host, it may be necessary to stop and restart the pcnfsd daemon.
On a UNIX NFS server, pcnfsd sends the NFS client’s temporary print job files to the same print queues that line printer daemon (lpd) uses. The print queues must be able to work with line printer requester (lpr), line printer (lp), or the specific host equivalent in order for NFS printing to function.
To determine if a print queue is working properly, send a file residing on the server directly to the print queue using the lpr or lp command, bypassing the NFS client and pcnfsd.
The command syntax follows:
lpr -P[printername] [filename] or
lp -d [printername] [filename]The following example prints a file named "blue.txt" to the PRINTER1 print queue:
$lpr -PPRINTER1 blue.txtIf neither of these commands work on your system, check the systems man pages to determine the proper command for your environment.
To check print queue status on a UNIX NFS server, use one of these commands:
$ lpstator
$ lpqAnother way to view print queue status is by using a server-based administrative utility, such as SMIT (AIX RS6000) or SAM (HP9000).
If none of these methods work on your system, check the systems man pages to determine the proper command for your environment.
If the print queues are not configured or are unavailable, contact your system administrator or consult your NFS server's documentation or man pages.
Note: Double-clicking an installed NFS printer does not show print queue status accurately.
NFS uses a print spool file system for the temporary storage of files to be printed. The spool file system must be exported to enable NFS clients to write a temporary print job file. This file system is often /var/spool or /usr/spool/ (for consistency /var/spool will be used for the remainder of this document). Under /var/spool there is a directory called /pcnfs, which is the NFS print spool location. Directories for individual users' print files are often listed under the /pcnfs directory. The administrator may choose to export at the /var, /var/spool, or /var/spool/pcnfs level.
To check whether the spool file system is exported, use the Reflection NFS Utility. Click Search for Server File Systems in the Services menu to see if the /var/spool file system is listed.
If the print spool file system is not exported and you modify the exports (typically stored in /etc/exports or in /etc/dfs/dfstab), remember that you must export again for your changes to take effect. Use the server’s administrative utilities, or on some systems, use the following command:
exportfs -aFor further information regarding the exports file, see Technical Note 1100.
Note: If the print spool file system is a symbolic link, you will need to export both the symbolic link location and the "real" location. For further details regarding symbolic links, see Technical Note 1050.
In order to print, you must be authenticated and have sufficient rights to create, modify and delete temporary print spool files in the spool directory. The spool directory should be exported with liberal permissions, such as 777 (rwxrwxrwx) or 770 (rwxrwx---).
On many NFS servers, anonymous users do not have sufficient rights to write to the spool directory (as in the 770 example above). If you authenticated as anonymous or authenticated on the wrong host, try re-authenticating as a valid user on the host to which you are trying to print.
The NFS printer must be mounted, or it will not appear in Windows lists of available printers. To determine whether the NFS printer you want is installed, open the printer in the Printers folder in Control Panel. A printer name displayed under a printer icon may not be descriptive enough to tell you which printer it is. To see more information on an installed printer, follow these steps:
If the NFS printer you want is not already installed, see Technical Note 1083 or the Reflection NFS online help.
In order for NFS printing to work, you must have the correct NFS server printer driver on your PC. Selecting an incorrect driver results in garbled printouts, and repeated printing of the same file produces identical garbled printouts. If other users can successfully print to an NFS printer and you are repeatedly getting identical garbled printouts, check to see if you are using a different printer driver.
To view the printer driver currently in use for an installed printer, follow these steps:
The driver name should match the printer type.
In Windows 98/ME, a DOS printer port can be redirected to an NFS printer queue by capturing the printer port. To see which NFS printers are available from a DOS session (that is, which printer ports are captured) follow the steps below.
Note: DOS session support for NFS printers is not available for Windows XP, Windows 2000, or Windows NT.
If the NFS printer you want is not on the list, capture the NFS printer by following one of the methods below:
If you know the UNC path and print queue name for the NFS printer, follow the steps below:
If you do not know the UNC path and print queue name, follow the steps below to browse for your NFS printer:
If all of the above requirements have been met, and you are still having problems with no printer output or garbled printer output, try isolating the cause of the problem with these additional procedures.
The printer or pcnfsd may be having difficulty only with the specific type of file being sent by the application. To bypass pcnfsd, use the application to print to a file on the host. To access the Print to File setting, follow the steps below:
Access the Reflection NFS Client properties.
In Windows XP: click Start > right-click My Network Places > Properties > right-click Local Area Connections > Properties > double-click Reflection NFS Client.
In Windows 2000: click Start > Settings > Network and Dial-up Connections > right-click Local Area Connections > Properties > double-click Reflection NFS Client.
In Windows 98/ME and Windows NT: right-click Network Neighborhood > Properties > double-click Reflection NFS Client.
Once you are on the Reflection NFS Client Properties dialog box, follow the steps below to configure the NFS client to print to a file on the host:
This will cause NFS to create the temporary spool file for the printout in the /var/spool/pcnfs directory, but will not notify pcnfsd that the file is there and needs to be printed. This preserves the print spool file so that you can determine whether it is being created correctly on the host.
Another potential problem area is the NFS file transfer. If printing to a file on the host still produces garbled output, use the application to print to a local file on the PC.
This process bypasses both the NFS file transfer and pcnfsd.
Another method for eliminating NFS as the source of the problem is to remove the printer from the host and attach it directly to the PC. If you can print to the printer successfully with this configuration, re-attach the printer to the NFS server, and check the following:
If repeated printing of the same document on the host produces garbled printouts that are not identical, check for network errors.