Operating System - HP-UX
1755889 Members
3656 Online
108838 Solutions
New Discussion юеВ

Re: lpstat : connection to station2 is down

 
SOLVED
Go to solution
Kong Kian Chay
Regular Advisor

lpstat : connection to station2 is down

System : HP-UX 10.2

From Workstation "station1",
#lpstat -t

scheduler is running
...
device for printer2: /dev/null
remote to: printer2 on station2
...
connection to station2 is down

#ping station2 (O.K)
#telnet station2 (O.K, can login)
#nslookup station2 (O.K)
#nslookup (O.K)

From "station2" where is printer2 is defined :
#lp -dprinter2 file1.txt
--> no problem, gets printed.

How can I resolve the "connection down problem" ?

NOTE :
* All other Workstations which have the same printer definition as "station1", no such problem. Problem exists only on "station1".
* Have already tried :
-- lpshut then lpshed on both stations
-- reboot on station1
-- Delete then re-define printer2 on station1

7 REPLIES 7
Stefan Farrelly
Honored Contributor

Re: lpstat : connection to station2 is down


When you restart the lp scheduler on station-1 enable logging;
lpsched -v -a

Then when you submit a job on station1 to the printer2 queue check the log in /var/adm/lp (tail log), whats the return code from the remote lp call to station2 ? It should say somethink like;
rc=4, or bad status.....

This should help diagnose what the problem is.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Andreas Voss
Honored Contributor

Re: lpstat : connection to station2 is down

Hi,

you could check if in /etc/services the line

printer 515/tcp spooler

is not commented.
If so uncomment the line and reinitialize inetd with:

inetd -c

Regards
Kong Kian Chay
Regular Advisor

Re: lpstat : connection to station2 is down

Stefan & Andreas

* line "printer 515/tcp spooler" in NOT un-commented in /etc/services
* have tried "lpshut" then "lpsched -v -a", then send a printout. Result :
-- no error at all in /var/adm/lp/log
-- lpstat -t shows :
station1: waiting for queue to be enabled on station2

NOTE : All other Workstations have no problem printing to "printer2" on "station2". Have also
justed tested 3 other workstations. No problem.
Kong Kian Chay
Regular Advisor

Re: lpstat : connection to station2 is down

Sorry, the 1st line should be :
* line "printer 515 ..." is NOT commented in /etc/services. That is, it is active.
Stefan Farrelly
Honored Contributor

Re: lpstat : connection to station2 is down


Hmm. Sounds like your printer config on station1 is screwed up. You know printer2 is aok on station2 as others can print to it.

So, first thing to try is create a new queue on station1, call it something like printer2new, point it to printer2 at station2 and try a print.

If this doesnt work then youre going to have to look at cleaning out all of /usr/spool/lp and reloading the printer fileset (PrinterMgmt.LP-SPOOL) using swinstall.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Animesh Chakraborty
Honored Contributor
Solution

Re: lpstat : connection to station2 is down

Kong Kian Chay
Regular Advisor

Re: lpstat : connection to station2 is down

chmod 4555 /usr/sbin/rlpstat /usr/sbin/rlpdaemon /usr/sbin/rlp

---> solved the problem !!