Re: redirecting printing

From: Shawn Bierman (BiermanS@METHODISTHEALTH.ORG)
Date: Fri May 16 2003 - 14:27:52 EDT


We're currently printing using streaming printing from our patient care application middleware to AIX queue to the print server (HP Jet D's). Our current method of redirecting print jobs is to alias the printer dns name in the /etc/hosts file to the new IP address and then remove the alias when the printer is repaired. Now we have a situation where the current app can use a rule to reroute the printer without any OS intervetion. We're leaving that app and still need to provide a solution where the printer can be routed and rerouted automatically based on a time interval.

01tcp101 10.10.2.10 #normal address in DNS

etc/host
10tcp101 10.10.2.11 #reroute in host file for repair

>>> Simon.Green@EU.ALTRIA.COM 5/16/03 11:13:06 AM >>>
What sort of printers are these? Remote or local?
Are you printing from AIX, or from some application?

I think it might be possible to mess around with /etc/qconfig - that would
work OK for remote print queues I'm fairly sure - but my first thought would
be to pass the print queue to use to the program as a parameter, or perhaps
have a script which you call from within various scripts/programs which
could check the time and pass back a printer name. (There are several
possibilities along those lines, depending on exactly what you're doing.)

If you're printing from an application such as SAP, which wouldn't be
amenable to having a print queue as a parameter, you could set up a dummy
print queue, which is permanently held, then have a background job which
continually checks it and re-queues jobs to the correct printer.

Simon Green
Altria ITSC Europe s.a.r.l.

AIX-L Archive at http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2
AIX FAQ at http://www.faqs.org/faqs/aix-faq/

N.B. Unsolicited email from vendors will not be appreciated.

> -----Original Message-----
> From: Shawn Bierman [mailto:BiermanS@METHODISTHEALTH.ORG]
> Sent: 16 May 2003 16:52
> To: aix-l@Princeton.EDU
> Subject: redirecting printing
>
>
> We have a need to redirect print jobs from PrinterA to
> PrinterB at 6:00am and then at 6:00pm restore the redirect so
> we are printing back to PrinterA, until 6:00am again.
>
> Is there a way to do this with perhaps a cronjob?



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:50 EDT