?
Solved

Print directly to jetdirect attached printer

Posted on 2009-07-01
4
Medium Priority
?
1,053 Views
Last Modified: 2013-11-17
I have about 50 print queues setup on an AIX 5.3 server that attach to hp jetdirect interfaces.

I have a client that would like to print directly to the printer, bypassing the print queue. They print checks which sometimes jam and the print queue drops the job if the printer jams in the middle of printing.

Is there a way to use lp to print directly to the jetdirect interface?  (ie lp -d hp@printer1 outputfile)  Apparently they have avoided this in the past when using serial printers and printing directly to the device file (ie lp -d /dev/lp1 outputfile).
0
Comment
Question by:proservesolutions
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24757339
Hi,

which is the client's operating system?

Since the JetDirect cards act as printservers for themselves, it should easily be possible to define a lpr queue which uses the JetDirect as a printer host.

In AIX you would use

  • smitty mkpq ->
  • select 'hpJetDirect' ->
  • select 'Standard processing' if your application generates a suitable format OR
  • select 'Local filtering' if the format should be generated by a local driver ->
  • fill in values for hostname/queue etc. ->
  • Done.
Note that the appropriate hpJetDirect driver software (from AIX standard media) must be installed.

Btw., the above should be exactly the same setup as on your AIX 5.3 server!

wmp



0
 

Author Comment

by:proservesolutions
ID: 24757552
That is how I currently create the printers and queues on the AIX server. Maybe I am just not fully understanding the process.

The application itself resides on the AIX server and the app uses a "link" file to define printing aliases which are choices for the users within the app.

Here is what the app link file looks like:
To print to a queued printer-
alias P9 ">lp -s -dP9 2>/dev/null" "IBM 4226 Purchasing P/O" CR,CPCOLS=132,SPCOLS=132,lock=/tmp/p9.lck

To print direct to a printer-
alias P3 /dev/lp3 "IBM 4226 Computer Room" CR,CPCOLS=132,SPCOLS=132,lock=/tmp/p3.lck

I need to print directly to the jetdirect attached printer to avoid the issues when printing through the queue and the printer jams.
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 24757907
OK,

you will notice that in your examples above P9 uses the AIX lp command which works against a queue (and only a queue), whereas P3 is obviously driven by your application, not by an AIX printing interface.

The only interface program that I'm aware of which could (roughly) accomplish what you want is rembak.

It is qdaemon's backend and should normally only be used by qdaemon, but you can try.

The general format is

/usr/lib/lpd/rembak -S [Server] -P [Queue] ... [file]

The [file] parameter is mandatory (no stdin processing), thus your 'alias' method above will not work without generating an intermediate file.

Look at 'man rembak'

rembak works against a queue, but as opposed to the end-user tools, it doesn't use a local queue. It rather connects directly to the remote host's queue.

Chances are that the above will actually work, but operation of rembak by end users is very, very uncommon!

Good luck!

wmp



0
 

Author Closing Comment

by:proservesolutions
ID: 31598896
Thank you for a precise answer. After reading MANY posts on the subject, you provided a very clear precise answer.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month14 days, 10 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question