Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

aix print to rightfax hpfax queue

Posted on 2010-08-25
9
Medium Priority
?
1,523 Views
Last Modified: 2013-11-17
We just setup a new AIX box. I have setup all my normal unix to hpjetdirect printers that are physical printers and they work. I am having an issue setting up the print queue that is suppose to go to my rightfax hpfax printer. If I sent something it just sits in the aix queue and doesn't get to my rightfax box. I have the host file setup as 10.10.0.44 rightfax-cypher2. I have the printer as hp@cypher2 and the print queue as rightfax-cypher2. In the old box that worked the printer didn't say hp it just said @cypher2. I con't know why they are named this when my rightfax box is just rightfax1. I am pretty much down and rightfax doesn't seem to know anything about aix. HELP! Thanks everyone...
0
Comment
Question by:glong3008
[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
  • 5
  • 4
9 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 33522646
Hi,
if I understood you right the printer's hostname is " rightfax-cypher2"?
If so, your /etc/qconfig should contain something like

queuename:
          device = @rightfax-cypher2
          ... (more options)
          rq = remote_queuename
@rightfax-cypher2:
          backend = ...
Please post the appropriate part of /etc/qconfig.
wmp
0
 

Author Comment

by:glong3008
ID: 33523426
I think I messed it up... I went in and edited the file to reflect your changes but now there is a job from how it was before that I seem unable to cancel out of the queue...

rightfax-cypher2:
        device = @cypher2
        host = cypher2
        rq = HPFAX
        s_statfilter = /usr/lib/lpd/aixshort
        l_statfilter = /usr/lib/lpd/aixlong
@cypher2:
        header = never
        trailer = never
        access = both
        backend = /usr/lib/lpd/pio/etc/piorlfb -f ! -C

My host file has 10.10.0.44 rightfax-cypher2 even though the name of the physical machine is actually just rightfax1
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 33523572
>> My host file has 10.10.0.44 rightfax-cypher2 even though the name of the physical machine is actually just rightfax1 <<

Why that?

According to your qconfig setup the hostname is cypher2! If that hostname is not reachable (try ping cypher2) nothing will work.

rightfax-cypher2 is the name of the local AIX queue. The name of the remote queue is HPFAX. Both are in no way related to IP addresses/names, but are internal to AIX resp. your hpfax printer.



0
Industry Leaders: 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!

 

Author Comment

by:glong3008
ID: 33523595
there is a
 10.10.0.44 RIGHTFAX1 rightfax1 cypher2
entry
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 33523815
OK,

that sounds better. cypher2 is thus a local alias for RIGHTFAX1, which is OK, assuming the IP address is correct.

Now you'll have to make sure that the hpfax machine would actualy accept HPFAX as a queue name (consult the documentation).

You can issue "telnet cypher2 515" to check whether it's actually listening on the lpr port. No response (no prompt) is OK, "telnet: connect: A remote host refused an attempted connect operation." is bad - then it's not an LPR printer!

As for the hanging job - please issue "lpstat" to find out in which queue it might hang around, then use "lpq -Pqueue" to display details (jobnumber) and "qcan  -xjobnumber" to kill it, or, if feasible, issue "qcan -X" to kill all jobs in all local queues.


0
 

Author Comment

by:glong3008
ID: 33524831
I think my problem is I don't know how to create the printer through smit so the qconfig file reflects what we show it should be because editing that file doesn't work...
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 33525116
Editing qconfig is normally quite OK, but anyway, here is smitty:

1) delete the faulty queue (maybe you must remove hanging jobs first!)

"smitty rmpq" -> <F4> to list -> <Enter> to select -> <Enter> to process!

2) Make a new remote queue to receive raw data
(Note: your local application must generate the correct data stream comprehensible by hpfax)

"smitty mkpq" -> (select "remote") -> (select "Standard processing") -> Enter required values (in bold):

Name of QUEUE to add                               [queue name on AIX]                      (rightfax-cypher2 in your example)
* HOSTNAME of remote server                          [hostname of hpfax server]   (cypher2 in your example
* Name of QUEUE on remote server                     [queue name on cypher2] (HPFAX in your example)
  Type of print spooler on remote server              AIX Version 3 or 4     +           (leave as is)
  Backend TIME OUT period (minutes)                  [15]                       #                 (or more/less, as needed)
  Send control file first?                            no                     +                                      (leave as is)
  To turn on debugging, specify output               []                                                   (leave empty)
      file pathname
  DESCRIPTION of printer on remote server            [Your meaningful description]

Hit <Enter> to process.

wmp
0
 

Author Closing Comment

by:glong3008
ID: 33525192
http://ltxfaq.custhelp.com/app/answers/detail/a_id/389/~/unix,-lpr%2Flpd-setup-for-aix

Your answer was just a bit late but dead on and I can't tell you how happy I am. Thanks so so much!
It is a remote print queue instead of hpjetdirect and your addition on what to insert in the different areas is very clear! I hope this helps someone else... THANKS
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 33525677
Thx for the points!

The link you posted is a bit outdated.

Here is the ultimative "AIX 6.1 Printer and Printing Manual"

http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.printergd/doc/printrgd/printrgd-kickoff.htm

Cheers

wmp


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 …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

705 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