LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CUPS IPP printing (https://www.linuxquestions.org/questions/linux-newbie-8/cups-ipp-printing-609045/)

Joe2007 12-25-2007 10:50 AM

CUPS IPP printing
 
Hi

I want to forward all print jobs from station1 to server1 via using CUPS IPP printing method.

In my home test lab, it has two linux 5 machines, server1 and station1.

Server1 (it has a dummy printer)
Device URL: ipp://server1/printers/printer1
Make and Model: Generic Text-only printer
Default printer

station1
Device URL: ipp://server1/printers/printer1
Make and Model: Generic Text-only printer
Default printer

When I tried to print from station1, e.g. lp /etc/hosts.
The print job remains on station1 and not forwarded to server1.
lpstat -t on station1 reviews the following.


# lpstat -t
scheduler is running
system default destination: station1
device for station1: ipp://server1/printers/station1
station1 accepting requests since Wed 26 Dec 2007 12:28:36 PM WST
printer station1 now printing station1-28. enabled since Wed 26 Dec 2007 12:28:36 PM WST
Network host 'server1' is busy; will retry in 30 seconds...
station1-28 root 1024 Wed 26 Dec 2007 12:28:36 PM WST

[root@station1 ~]# lpq
station1 is ready and printing
Rank Owner Job File(s) Total Size
active root 28 hosts 1024 bytes


Please help.

Joe

Dinithion 12-25-2007 11:11 AM

I would prefer to use IP insted of /etc/hosts, as it's another potential source of error.

I'm not quite sure I understand what you want to do. Basicly you want a printserver functionality running on server1, and a client as station1?
I'm no cups guru, and it's a few monthes since I configured a print-server. If I remember correctly, ipp are used when the printer can be reached with an IP. (Network printers or when you configure a printer from the client). Therefore I don't believe you can use ipp on the server (Correct me if I'm wrong on this). What I think is happening here, is that the server connects to it self and print the job. The server accept, and will forward the job to the printer (It self), and that way looping an endless loop.

Then again, I could be embarrassingly wrong here.

Joe2007 12-26-2007 06:27 PM

Hi Dinithion,

It works after I ticked the share printers option on server1.


Joe


All times are GMT -5. The time now is 09:02 AM.