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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

no such printer or class

Status
Not open for further replies.

jky22

IS-IT--Management
May 23, 2003
3
US
I recently came on at a company with a long-neglected HP-UX server. They have a printer that responds with "no such printer or class" when I try to print a text file to it from the command line using "lp -dshipping test.file". I don't work with UNIX much - can someone please outline a good step-by-step method to troubleshoot this problem? Thanks.
 
Is the printer listed when you try an lpstat -p?

This command should show you what the system thinks the printer names set up are and hopefully you can take it from there. If the printer is network-attached, you might also find an entry for it in /etc/hosts. Post back if more info. required. Cheers.
 
As ken says use lpstat -p then if printer is there then use

lpstat -t and you will see the device file and status of printer (enable disable etc...)

Is lpsched is running?
ps -ef |grep lps

If not stopt it start it
lpshut
lpsched

To enable the printer
enable <printername>

Try printing file
cat <filename> | lp -d<printername>

Patel
 
okay - thanks to you both.

The device is showing up now if I do lpstat -p and -t.
It shows itself as enabled, accepting and idle.
lpsched is running.
When I print to it, it gives me a spool number, but when I look at in lpstat -p again, instead of showing the spool number as printing, it says it is idle.

More importantly, nothing comes out of the printer.

More info - the ip address for the jetdirect card replies to pings and I can print a diagnostics page from jetadmin.
 
I don't think that they are. I get a message: &quot;request id is shipping-9466 (standard input)&quot;, but I get no reply for &quot;lpstat -o&quot; and if I look at &quot;lpstat -p&quot; it says that the printer is idle.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top