Operating System - HP-UX
1830912 Members
1874 Online
110017 Solutions
New Discussion

SPR command doesn't return to prompt

 
Malcolm A
Occasional Contributor

SPR command doesn't return to prompt

Hi there experts. I'm having a problem with my printer spooler at the moment where every time I issue the spr command, it just hangs in there and doesn't return to the prompt. I've tried stopping the scheduler and also spooler and restart it again, but the same issue still exists. Any ideas?
10 REPLIES 10
Michael Steele_2
Honored Contributor

Re: SPR command doesn't return to prompt

Hi Malcolm:

I can't find any reference to the 'spr' command in hp-ux. Can you clarify your O/S, server model, whether or not you are using HPPI or jet admin, lpadmin, lpsched?
Support Fatherhood - Stop Family Law
Malcolm A
Occasional Contributor

Re: SPR command doesn't return to prompt

Hi Michael, thanks for your prompt reply on this matter. My OS is running under HP-UX 11i and the server is HP RP2470. Currently my printronix printers are connected to the network by using jetdirect print servers.

Basically the SPR command will list out all the enabled printers. Normally, after issuing the command, the enabled printers will be listed out and returns to the prompt but in this case it just hangs there after the printers are listed out.

HTH. Thanks in advance.
Dennis Handly
Acclaimed Contributor

Re: SPR command doesn't return to prompt

>Basically the SPR command will list out all the enabled printers.

No such command. The only HP-UX command is lpstat(1). You may have a script that sits on lpstat. Try lpstat directly.
malcolm_a
Occasional Contributor

Re: SPR command doesn't return to prompt

Based on your reply, I did some digging and found out that it is a script actually.

lpstat -p -i|grep enable

Any ideas on why it doesn't return to the prompt and just hang there? It was working fine before this.

Thanks.
Dennis Handly
Acclaimed Contributor

Re: SPR command doesn't return to prompt

>Any ideas on why it doesn't return to the prompt and just hang there?

lpstat is hanging because it can't contact your remote printer? Can you ping them?
malcolm_a
Occasional Contributor

Re: SPR command doesn't return to prompt

The ping test is ok. Btw, I think it is caused by the qstatus file is corrupt. I've compared to my other working server and when opening up the qstatus file under var/spool/lp, there is a pipe error. Is it ok if I just clear off the contents inside the qstatus file and start off again with a new empty file?
Michael Steele_2
Honored Contributor

Re: SPR command doesn't return to prompt

Hi Malcolm:

99% certain that you're running 'HPPI'.
Try entering

# hppi

If you do then you'll get a menu screen. Select option 3, diagnostics. Then option 2, Examine spooler operations, and enter the queue name, or '-' for a listing of all queues, you'll get some dianostics like "spooler 10_1 OK", then it will ask for a file to print, have one ready, ignore the next prompt for in or out and hit enter, then, and most importantly answer 'y' or yes to examine the file.

If you can examine the file then there is no problem.
Support Fatherhood - Stop Family Law
Malcolm A
Occasional Contributor

Re: SPR command doesn't return to prompt

Thanks Michael for the help, but after trying the steps that you have listed out, I got stuck at the file printing, the print request were sent but there we're no output generated. The message given were,

NO output was generated! The problem is at your system!

I've tried looking into the possible suspect areas, but still no solution for the lpstat hang problem.

Any other ideas?

Tq.
Michael Steele_2
Honored Contributor

Re: SPR command doesn't return to prompt

Hi Malcolm:

OK, hppi. But I'm not at work right now and I need to see the menu to guide you. However, you should be able to use SAM.

SAM/Printers and Ploters/LP Spooler/Printer and Plotters/Actions/

Use the help button if you get in trouble and I'll write again tomorrow.
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: SPR command doesn't return to prompt

There is also this doc, which bypasses hppi and is more difficult

http://docs.hp.com/en/B2355-90113/B2355-90113.pdf

Go to chapter 13 Trouble shooting
Support Fatherhood - Stop Family Law