Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP!!! printer

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have set up a printer using the lpadmin command.
When I do an lpstat, I get idle and available.
BUT when I try to send a listing to the printer I get the following error-
The printer hpprint has stopped printing for the reason given below. Fix the problem and bring the printer back online to resume printing.
The reason(s) it stopped:
Usage: netpr -I request_id -p printer -d destination -U username

The second error:
Printing stopped with an exit code of 1.

Any help is greatly appreciated.
Thank you in advance.
 
ps -ef|grep lpsched
ps -ef|grep slpd
Start these guys in /etc/rc2.d if they are not up
take a look at /etc/inet/slp.conf too
 
The problem may be caused by a bad or missing link. To determine if you have a bad or missing link do the following :

ls -l /var/spool/lp/bin

If the result doesn't look like the following :

lrwxrwxrwx 1 root 23 Aug 4 11:40 /var/spool/lp/bin -> \
../../../usr/lib/lp/bin

You will need to fix the link by first shutting down the lp system, remove the bad link, and then recreate it. As follows :

# lpshut
# cd /var/spool/lp
# rm bin
# ln -s ../../../usr/lib/lp/bin bin
# /usr/lib/lp/lpsched

You should now be able to print a job without errors and the job should
print.

Note : If you have moved /var where it now has more directory names in its path, the above fix will not work, ie. /disk2/var/spool/lp
You will need to accommodate the link with additional ../ for each directory name in the path you may have added.

/var/spool/lp/bin is not the only link that might be affected if you have moved /var
Other links that may need to be addressed are the following :

/etc/lp/logs
/var/spool/lp/logs
/var/spool/lp/model
/var/spool/lp/temp

regards ph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top