UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21. Read more.
UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21.Read more.
Not applicable
7662 views

Ubuntu iPrint client

I have a user report the following:

Using prntcmd in terminal comes up with:

user@pc:~$ iprntcmd -a
"ipp://server.domain.com/ipp/printer&onInstalled=status&onNotInstalled=install"

iprntcmd v04.38.00
Adding printer
ipp://server.domain.com/ipp/4100&onInstalled=status&onNotInstalled=install.
Failed to add printer
ipp://server.domain.com/ipp/4100&onInstalled=status&onNotInstalled=install.
Group Info: CUPS-IPP
Error Code: 1024 (0x400)
Error Msg: iPrint Client - The request contained bad syntax.
Debug Msg: MyCupsDoFileRequest - IPP BAD REQUEST


Can anyone help please? The printer they are trying to access is a secure one.... does authentication work with ubuntu??

Cheerz
IanB
0 Likes
17 Replies
Absent Member.
Absent Member.

1. Please try the command like

iprntcmd -a "ipp://server.domain.com/ipp/4100"

Note : Assuming 4100 is printer name. Remove remaining parameters from name.

2. If it still fails to install,
1. Please turn on the traces for shell.
2. Run the command.
3. Paste the output on command prompt here.
It will be very helpful for us to understand the problem.
0 Likes
Not applicable

kmangesh;1901995 wrote:
1. Please try the command like

iprntcmd -a "ipp://server.domain.com/ipp/4100"

Note : Assuming 4100 is printer name. Remove remaining parameters from name.

2. If it still fails to install,
1. Please turn on the traces for shell.
2. Run the command.
3. Paste the output on command prompt here.
It will be very helpful for us to understand the problem.


Thanks for the reply. Yes, I see your point in that the users does appear to be typing in a different command line to that you state above.

And yes, the printer name is 4100 which I had tried to hack out of my original posting but failed too on 2 lines!

I will report back when I have some more info.

Thanks again, your help is appreciated.

Cheerz
IanB
0 Likes
Absent Member.
Absent Member.

Hi!
I believe I am the user ibelton is trying to help; I was just searching google and came across this.
I have tried iprntcmd -a "ipp://server.domain.com/ipp/4100" too, which produces the same result.

I ran the command using strace (strace -o file iprntcmd etc, is this the correct way of doing it?) and have attached the output. It's rather long!

Thanks for your help.
0 Likes
Absent Member.
Absent Member.

Arg! Please ignore the above post.
I just realised I ran the command with the censored url "ipp://server.domain.com/ipp/4100" instead of the actual url! Fail.
See the attachment for the output having run the real command (I have replaced the actual domain with "domain" ;-p, in the interests of secrecy or whatever).
0 Likes
Absent Member.
Absent Member.

I should clarify (why is there no edit button eh?) that I'm running Ubuntu 9.10 Netbook Remix on an Asus EeePC.
0 Likes
Absent Member.
Absent Member.

Thanks for your data.

But we were talking about traces from iprint.
Please do following
1. In file /etc/opt/novell/iprint/libiprint.conf, change line TraceLevel off to TraceLevel shell. It will enable traces for iprint.
2. Run the command iprntcmd -a <printer-uri> . It will throw trace info on command line.
Please try out both printer uri and attach output here.

Thanks for your cooperation.
0 Likes
Absent Member.
Absent Member.

kmangesh;1902769 wrote:
Thanks for your data.

But we were talking about traces from iprint.
Please do following
1. In file /etc/opt/novell/iprint/libiprint.conf, change line TraceLevel off to TraceLevel shell. It will enable traces for iprint.
2. Run the command iprntcmd -a <printer-uri> . It will throw trace info on command line.
Please try out both printer uri and attach output here.

Thanks for your cooperation.


Oh right.

Here is the output:

user:~$ iprntcmd -a "ipp://domainprt.domain.ac.uk/ipp/4100"
[ iprint.c-00000270] - TraceLevel = shell
[ iprint.c-00000302] - KeepDriverFiles = off
[ iprint.c-00000330] - ProxyUri = none
[ iprint.c-00000119] - Novell iPrint Client (Linux)
[ iprint.c-00000120] - v04.38.00
[ iprint.c-00000121] - Copyright (C) 2005 Novell, Inc.
[ iprint.c-00000190] - user
[ iprint.c-00000192] - user
iprntcmd v04.38.00
[ iprintcmd.c-00000152] - Adding printer ipp://domainprt.domain.ac.uk/ipp/4100.
Adding printer ipp://domainprt.domain.ac.uk/ipp/4100.
[ iprint.c-00000453] - IPRINTCreatePrtRef - called for ipp://domainprt.domain.ac.uk/ipp/4100
[ iprint.c-00006868] - IPRINTAlloc - allocating 11576 bytes
[ iprint.c-00006135] - IPRINTInterpretURI - called for ipp://domainprt.domain.ac.uk/ipp/4100
[ iprint.c-00006315] - using port: 631 (NONSECURE)
[ iprint.c-00006317] - using host: domainprt.domain.ac.uk
[ iprint.c-00006319] - using name: ipp/4100
[ iprint.c-00006321] - using inst: 4100
[ iprint.c-00006337] - IPRINTInterpretURI - SUCCESS
[ iprint.c-00000932] - IPRINTListLocalPrinters - called for Localhost
[ cupsloc.c-00000616] - CupsLocalListPrinters called for Localhost
[ mydoreq.c-00000444] - MyCupsDoFileRequest - called
[ iprint.c-00006683] - Trace Info: mydoreq.c, line 1109
[ iprint.c-00006685] - Group Info: CUPS-IPP
[ iprint.c-00006687] - Error Code: 1024 (0x400)
[ iprint.c-00006689] - Error Msg: iPrint Client - The request contained bad syntax.
[ iprint.c-00006691] - Debug Msg: MyCupsDoFileRequest - IPP BAD REQUEST
[ mydoreq.c-00001141] - MyCupsDoFileRequest - failed
[ cupsloc.c-00000648] - CupsLocalListPrinters Failed
[ iprint.c-00006889] - IPRINTFree - freeing 11576 bytes
[ iprint.c-00000518] - IPRINTCreatePrtRef - IPRINTListLocalPrinters failed
[ iprintcmd.c-00000236] - Failed to add printer ipp://domainprt.domain.ac.uk/ipp/4100.
Failed to add printer ipp://domainprt.domain.ac.uk/ipp/4100.
Group Info: CUPS-IPP
Error Code: 1024 (0x400)
Error Msg: iPrint Client - The request contained bad syntax.
Debug Msg: MyCupsDoFileRequest - IPP BAD REQUEST





and for the longer URL:

user@ptolemeee:~$ iprntcmd -a "http://domainprt.domain.ac.uk:631/ippdocs/isinstf.htm?ippPrinterURL=ipp://domainprt.domain.ac.uk/ipp/4100&onInstalled=status&onNotInstalled=install"
[ iprint.c-00000270] - TraceLevel = shell
[ iprint.c-00000302] - KeepDriverFiles = off
[ iprint.c-00000330] - ProxyUri = none
[ iprint.c-00000119] - Novell iPrint Client (Linux)
[ iprint.c-00000120] - v04.38.00
[ iprint.c-00000121] - Copyright (C) 2005 Novell, Inc.
[ iprint.c-00000190] - user
[ iprint.c-00000192] - user
iprntcmd v04.38.00
[ iprintcmd.c-00000152] - Adding printer http://domainprt.domain.ac.uk:631/ippdocs/isinstf.htm?ippPrinterURL=ipp://domainprt.domain.ac.uk/ipp/4100&onInstalled=status&onNotInstalled=install.
Adding printer http://domainprt.domain.ac.uk:631/ippdocs/isinstf.htm?ippPrinterURL=ipp://domainprt.domain.ac.uk/ipp/4100&onInstalled=status&onNotInstalled=install.
[ iprint.c-00000453] - IPRINTCreatePrtRef - called for http://domainprt.domain.ac.uk:631/ippdocs/isinstf.htm?ippPrinterURL=ipp://domainprt.domain.ac.uk/ipp/4100&onInstalled=status&onNotInstalled=install
[ iprint.c-00006868] - IPRINTAlloc - allocating 11576 bytes
[ iprint.c-00006135] - IPRINTInterpretURI - called for http://domainprt.domain.ac.uk:631/ippdocs/isinstf.htm?ippPrinterURL=ipp://domainprt.domain.ac.uk/ipp/4100&onInstalled=status&onNotInstalled=install
[ iprint.c-00006315] - using port: 631 (NONSECURE)
[ iprint.c-00006317] - using host: domainprt.domain.ac.uk
[ iprint.c-00006319] - using name: ippdocs/isinstf.htm?ippPrinterURL=ipp://domainprt.domain.ac.uk/ipp/4100&onInstalled=status&onNotInstalled=install
[ iprint.c-00006321] - using inst: 4100&onInstalled=status&onNotInstalled=install
[ iprint.c-00006337] - IPRINTInterpretURI - SUCCESS
[ iprint.c-00000932] - IPRINTListLocalPrinters - called for Localhost
[ cupsloc.c-00000616] - CupsLocalListPrinters called for Localhost
[ mydoreq.c-00000444] - MyCupsDoFileRequest - called
[ iprint.c-00006683] - Trace Info: mydoreq.c, line 1109
[ iprint.c-00006685] - Group Info: CUPS-IPP
[ iprint.c-00006687] - Error Code: 1024 (0x400)
[ iprint.c-00006689] - Error Msg: iPrint Client - The request contained bad syntax.
[ iprint.c-00006691] - Debug Msg: MyCupsDoFileRequest - IPP BAD REQUEST
[ mydoreq.c-00001141] - MyCupsDoFileRequest - failed
[ cupsloc.c-00000648] - CupsLocalListPrinters Failed
[ iprint.c-00006889] - IPRINTFree - freeing 11576 bytes
[ iprint.c-00000518] - IPRINTCreatePrtRef - IPRINTListLocalPrinters failed
[ iprintcmd.c-00000236] - Failed to add printer http://domainprt.domain.ac.uk:631/ippdocs/isinstf.htm?ippPrinterURL=ipp://domainprt.domain.ac.uk/ipp/4100&onInstalled=status&onNotInstalled=install.
Failed to add printer http://domainprt.domain.ac.uk:631/ippdocs/isinstf.htm?ippPrinterURL=ipp://domainprt.domain.ac.uk/ipp/4100&onInstalled=status&onNotInstalled=install.
Group Info: CUPS-IPP
Error Code: 1024 (0x400)
Error Msg: iPrint Client - The request contained bad syntax.
Debug Msg: MyCupsDoFileRequest - IPP BAD REQUEST
0 Likes
Absent Member.
Absent Member.

Thanks for traces.

Traces indicate that iPrint client is not able to communicate with CUPS.
I am working on it to find out the reason.

Side note:
1. Please check if CUPS deamon is running.
2. To refer printer, please use printer uri e. g. ipp://domainprt.domain.ac.uk/ipp/4100 and not the long one. You can get printer uri from /ipp page. Go on /ipp page and open info page for printer. It will state printer uri.
0 Likes
Not applicable

kmangesh;1903412 wrote:
Thanks for traces.

Traces indicate that iPrint client is not able to communicate with CUPS.
I am working on it to find out the reason.

Side note:
1. Please check if CUPS deamon is running.
2. To refer printer, please use printer uri e. g. ipp://domainprt.domain.ac.uk/ipp/4100 and not the long one. You can get printer uri from /ipp page. Go on /ipp page and open info page for printer. It will state printer uri.


I found another thread:

http://forums.novell.com/novell-product-support-forums/iprint/383791-iprint-listener-problem-ubuntu.html

Is this the same issue? Should we try editing the /etc/cups/cupsd.conf file?

Cheerz
IanB
0 Likes
Absent Member.
Absent Member.

kmangesh;1903412 wrote:
Thanks for traces.

Traces indicate that iPrint client is not able to communicate with CUPS.
I am working on it to find out the reason.

Side note:
1. Please check if CUPS deamon is running.
2. To refer printer, please use printer uri e. g. ipp://domainprt.domain.ac.uk/ipp/4100 and not the long one. You can get printer uri from /ipp page. Go on /ipp page and open info page for printer. It will state printer uri.



I can confirm that the CUPS daemon is running.
0 Likes
Absent Member.
Absent Member.

Hi,

Please use latest iprint client for linux i.e. v5.00.
I tried it out on Ubuntu 9.04 and it is working fine.

After installing, user need to start two processes 1. iprint-listener 2. iprint-listener-gui
To start these processess,
Use command /opt/novell/iprint/bin/iprntcmd -r to start iprint-listener process.
and Use command /opt/novell/iprint/bin/iprntcmd -T to start iprint-listener-gui process.
( This need to be done, only once after installation. On rebooting the machine, processes will get start )

Regards,
Mangesh
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.