Operating System - HP-UX
1820046 Members
3419 Online
109608 Solutions
New Discussion юеВ

lpstat: printer "lthvac01" non-existent

 
Stuart Powell
Super Advisor

lpstat: printer "lthvac01" non-existent

I am attempting to connect an HP-UX 11.11 system to a remote printer on a Windows 2000 server. The Windows server is running lpr and we have already connected two remote printers successfully. When attempting to connect the printer root can issue the command:
$ sudo /usr/sbin/lpshut; sudo /usr/sbin/lpadmin -plthvac01 -ormopus.thcvnet.hercfilm -orplthvac01 -mrmodel -v/dev/null -orc -ocmrcmodel тАУosmrsmodel; sudo /usr/sbin/lpsched
$ sudo accept lthvac01
$ sudo enable lthvac01
However when attempting to stat the printer queue I get the following message for everyone but root:
$ lpstat -plthvac01
lpstat: printer "lthvac01" non-existent
I get the proper reply as root. Permissions and ownership are:
-rwxr-xr-x 1 lp lp 5256 Jul 25 14:04 /var/spool/lp/interface/lthvac01
It appears that everybody can send a job to the printer, but only root can check the job status.
When I check to see what all print jobs are queued I get another problem message:
$lpstat -o
lpstat: can't open outputq file
Any ideas?

Stuart
Sometimes the best answer is another question
4 REPLIES 4
RAC_1
Honored Contributor

Re: lpstat: printer "lthvac01" non-existent

do you have outputq file udder /var/spool/lp directory. Owned by lp:lp.
If not try touching it and check.

Anil
There is no substitute to HARDWORK
Rick Garland
Honored Contributor

Re: lpstat: printer "lthvac01" non-existent

Check the perms in the /var/spool/lp area. This is where the 'non-existent' message is coming from, the outputq dir is located, etc.

You are using sudo to become root to do these checks. What are perms on the outputq dir? Do the users have the necessary group memberships to do these commands?

You do mention that this is a remote printer going to a WIN system? Any other remotes from the same HPUX to the same WIN system? Any problems? How is/are the printer(s) setup on the WIN system?

vinod_25
Valued Contributor

Re: lpstat: printer "lthvac01" non-existent

hi stuart

check the existence of

/usr/spool/lp/member/printer_name -- a file
/usr/spool/lp/interface/printer_name -- a file
/usr/spool/lp/request/printer_name -- a directory

if these files are not created try touching those...and create empty files and directory

regds

Vinod
Stuart Powell
Super Advisor

Re: lpstat: printer "lthvac01" non-existent

Anil,

The file outputq was owned by lp:lp, but it didn't work, so I changed it to lp:sys (to match another system that is working) but that didn't work either.

Rick,
drwxr-xr-x 4 lp bin 8192 Jul 25 14:14 lp
then under lp:
-rw-r--r-- 1 lp sys 7636 Jul 25 15:23 outputq
-rw-r--r-- 1 lp lp 177660 Jul 25 15:23 pstatus
-rw-r--r-- 1 lp lp 44180 Jul 25 14:04 qstatus
drwxr-xr-x 2 lp bin 96 Mar 13 2003 receive
drwxr-xr-x 237 lp bin 8192 Jul 25 14:04 request
-rw-r--r-- 1 lp lp 5 Jul 25 15:23 seqfile

Sudo is running as root.

Vindo,
$ ll /usr/spool/lp/member/lthvac01
-rw-r--r-- 1 lp lp 10 Jul 25 14:04 /usr/spool/lp/member/lthvac01
$ ll /usr/spool/lp/interface/lthvac01
-rwxr-xr-x 1 lp lp 5256 Jul 25 14:04 /usr/spool/lp/interface/lthvac01
$ ll -d /usr/spool/lp/request/lthvac01
drwxr-xr-x 2 lp lp 8192 Jul 25 15:23 /usr/spool/lp/request/lthvac01

That should answer everybodies questions.
Sometimes the best answer is another question