21.7 Troubleshooting

   

A print spooler performance can be checked using the lpana command. You can use the -d option and a printer name with this command to check the performance of a particular printer. While troubleshooting a printer, check its physical connections and cables. You can check the physical connections by sending a file directly to the printer device port. For example, if the printer is using the /dev/lp0 device file, the following command must print the /etc/profile file on the printer if the physical connections are correct.

 cat /etc/profile >/dev/lp0 

To check the physical connections of a network printer, use the ping command.

If the print scheduler lpsched terminates abnormally, it does not delete the /var/spool/lp/SCHEDLOCK file. Existence of this file ensures that only a single scheduler is running. If you try to restart the scheduler, it will check for the existence of this file and think that the scheduler is already running. After this check, it will terminate. You have to remove this file manually using the rm command and then restart the scheduler using the /usr/sbin/lpsched command.

If there are any problems in the printing process, you will want to disable the printer, enable it again, and then restart a job from the beginning.


   
Top


HP Certified
HP Certified: HP-UX System Administration
ISBN: 0130183741
EAN: 2147483647
Year: 2000
Pages: 390
Authors: Rafeeq Rehman

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net