Operating System - HP-UX
1752805 Members
5581 Online
108789 Solutions
New Discussion юеВ

connection to printer is down

 
Sunny Jaisinghani
Trusted Contributor

connection to printer is down

Hello All,

I am creating a printer (Non HP) kyocera model using the command.

/usr/sbin/lpadmin \
-p \
-orm \
-orplp \
-mrmodel \
-v/dev/null \
-orc \
-ob3 \
-ocmrcmodel \
-osmrsmodel

The printer is created successfully.

I enable the printer and make the printer accept the requests.

Here name of the printer on the remote system is lp as shown here

gecs1 remote yes, idle yes lp on gecs1


When i run the command lpstat -o
i get a response
================================
connection to gecs1 is down

no entries
=================================

the printer is printing from other local sources. But it is not printing from the unix server.

Please help me identify the problem and resolve it.

Thanks in advance
7 REPLIES 7
Prashanth Waugh
Esteemed Contributor

Re: connection to printer is down

Hi ,

try to stop and start print schedular and then give the command
1) /usr/sbin/lpshut
2)/usr/sbin/lpsched
also
enacle it using below command
enable
============================
check the ststus information using
lpstat -p
lpstat -t

Pls check man page for it

Regards
Atul




For success, attitude is equally as important as ability
Sunny Jaisinghani
Trusted Contributor

Re: connection to printer is down

I have already tried stopping and starting the lp scheduler.

But it doesn't work

the printer is enabled and accepting requests; but not printing them from unix server because "connection to gecs1 is down"

Tim Nelson
Honored Contributor

Re: connection to printer is down

How about the queue on the remote, gecs1. With remote LPD printers everything is controlled by the remote spooler. If it is not responding or not responding coorectly HPUX will always mark it as down.

This also assumes the basics, that the remote spooler is actually configured and accepting LPR connections.

The least painfull practice is, if possible, to configure the printer as a network printer, get the remote spooler out of the mix.

Sunny Jaisinghani
Trusted Contributor

Re: connection to printer is down

Hello Tim,

I am not sure if there is any LPD printer....

Here i am using option -ormgecs1

which means the remote machine is printer gecs1 itself. i also tried -orm

but did not work

how to create a non hp network printer... should i use -i 9998 with addqueue
Sunny Jaisinghani
Trusted Contributor

Re: connection to printer is down

I created the network printer using addqueue with -i 9998 option

bow it does not show the "printer down" messages

however, now the test print is not getting through the queue


this is the extract from logs

Aug 28 16:04:56%%[ status: Job: gecs1-2846; User: root ]%%
Aug 28 16:04:56%%[ status: making connection to 10.5.8.1; source: unknown link type ]%%
Aug 28 16:04:58%%[ printer: connection is not available, keep trying ]%%


The IP address is reachable
Sunny Jaisinghani
Trusted Contributor

Re: connection to printer is down

There is a similar printer with same printer model(Kyocera KM-4035 KX) on the server where i am declaring the printer.

This printer is declared as a network printer and is also printing successfully.

So this negates the driver problem...

Please, can someone assist with this problem
Tim Nelson
Honored Contributor

Re: connection to printer is down

Then set this printer up as a network printer like the other one.

the -m rmodel is creating a "remote LPD" printer and is expecting LPD to be up and running, like sending to a remote queue on another server.

If this printer is truely network based then configure it that way.

addqueue -q MyPrinter1 -h IP/Hostname -i typeID

accept MyPrinter1
enable MyPrinter1

lp -dMyPrinter1 /etc/copyright