Operating System - HP-UX
1833760 Members
2412 Online
110063 Solutions
New Discussion

Re: Remote printer getting disabled automatically

 
SOLVED
Go to solution
TAMILVANAN
Advisor

Remote printer getting disabled automatically

Hi,
I have a strange problem of printer getting disabled automaticaly once in 10 or 15 days. The printer is connected to the parallel port of NT Workstation which is running TCP/IP Printer Server and configured as a remote printer from HP-UX 11.0 System and BSD enabled.
There are no of remote printers configured to the HP-UX system like this and any one of the printer gets disabled randomly.What could be the problem?
Can you please throw some light on this issue to resolve.

5 REPLIES 5
U.SivaKumar_2
Honored Contributor

Re: Remote printer getting disabled automatically

Hi,
Can you print from windows 98 PCs to the windows NT server through Printer share without any problems?.

regards,
U.SivaKumar

Innovations are made when conventions are broken
BFA6
Respected Contributor

Re: Remote printer getting disabled automatically

Is there anything printing to the printer from NT when it becomes disabled in HPUX ?

Hilary
Steve Steel
Honored Contributor
Solution

Re: Remote printer getting disabled automatically

Hi

The Remote Model Script
disables the printer if rlp returns an error -

/usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2
$BSD3 $BSD4 $BSDw $BSDformat $BSDh $1
ret=$?
case $ret in
0)
exit 0
;;
*)
reason="error $ret returned"
;;
esac
disable -r"$reason" $printer
exit 1

if the remote machine is booting or the network times out you can get a disable.

An automatic recovery has been requested but does not exist at the moment.

lpstat -pname should indicate the reason


ex

# lpstat -pshb2lj18

printer shb2lj18 disabled since Dec 20 11:05 -
error 141 returned
fence priority : 0
This signal is not currently trapped by rlp,
which therefore causes rlp to terminate with an exit status of 141 (128 + 13).
This results in the printer being disabled with a reason code of "error 141
returned". SIGPIPE (signal 13)

Steve Steel


If you want truly to understand something, try to change it. (Kurt Lewin)
N.Ramesh
Advisor

Re: Remote printer getting disabled automatically

Hi Tamilvanan,
Ensure that TCP/IP printing is enabled in your NT Worksation and While giving printing to remote printer, the printer should be in online status otherwise the printer queue will be disabled and also ensure that LPR Services are running in the NT Worksation.
TAMILVANAN
Advisor

Re: Remote printer getting disabled automatically

Thanx for all who responded.
Steve Steel has given a very detailed explanation to find the cause for the problem.Since I have already added a script on cron to enable the printer automaticaly whenever it gets disabled I added one more line to find the return value of the error. Once I get the printer disable problem again I will be able to trace the problem.
Let us wait to get the error code.
Once again thanx for all.