Operating System - HP-UX
1752730 Members
5623 Online
108789 Solutions
New Discussion юеВ

Re: LPSTAT commands not working

 
Michelle Browning
New Member

LPSTAT commands not working

Hi, I am working on an HP UX 10.20 server, and am having problems with lpstat commands. Lpstat -o will not work, and I'm afraid it has something to do with the scheduler, as we seem to have had this issue before.
Users are not getting their prints.
I have killed all lp processes and removed the FIFO and SCHEDLOCK files from /var/spool/lp file.
Stopped/started scheduler with lpshut/ /usr/sbin/lpsched; lpstat -r shows scheduler is running but still not output from lpstat -o, and prints are not dequeuing.

rm -r FIFO

rm -r SCHEDLOCK

ps -ef |grep lp |grep -v grep

lpshut
not running

/usr/sbin/lpsched
ing

ps -ef |grep lp |grep -v grep
1 169 12:45:32 ? 0:04 /usr/sbin/lpsched

lpstat -oS1156035
тЩе
lpstat -r
scheduler is running
3 REPLIES 3
skt_skt
Honored Contributor

Re: LPSTAT commands not working

is that the only queue on the system?or you have multiple queues and all are effected?

could you post "lpstat -vqname" for the problematic queue?
Michelle Browning
New Member

Re: LPSTAT commands not working

There are multiple queues and all are affected.
TTr
Honored Contributor

Re: LPSTAT commands not working

Check and ensure that the directories /etc/lp and /var/spool/lp and all files and directories under them have "lp" as the user owner and "bin" as the group owner. Also the permissions should be 755 for directories and 755 for scripts and 644 for other files.