Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shifting Printing Qs

Status
Not open for further replies.

khalidaaa

Technical User
Jan 19, 2006
2,323
BH
Hi Guros,

We are in the process of migrating from AIX 4.3 sp2 machine to p5 570 5.2 lpar. I need to shift the Queues created on the old machine to the new machine.

Is there any idea on how to script this?

Regards,
Khalid
 
Hi Khalid,

AIX?

Take a look at this thread

thread52-871194

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Thanks for the helpful post mike

You are always helpful in all the forums!

I will try the above and will let you know the results

Regards,
Khalid
 
Hi Mike,

I used the above link to create my printers but that what i ended up getting:

I managed to copy the /custom and the /dev but when i run the script i got so many errors like this one:

Code:
Now linking queue and device ts-pc:hp@psfab-sssq
0782-302 Cannot open file for customized attributes.
           The file name is /var/spool/lpd/pio/@local/custom/ts-pc:hp@psfab-sssq
           The errno (error number) from the open system call is 0
         Check the error number.
0782-591 The value of _d attribute is not in the list generated from
the limits field
0782-598 The value 1 specified in the validate op V in the
limits field for _f attribute indicates failure
0782-112 2 Errors detected while validating printer attributes.
         Use local problem reporting procedures.

I can see the Q but when i try to print to it i get:

Code:
   Message from root on s1test1 (UNKNOWN) [Tue Mar 27 04:44:35 2007] ...
Message from qdaemon:
Qdaemon couldn't exec /usr/lib/lpd/pio/etc/piojetd.
Errno = 2: No such file or directory<EOT>

   Message from root on s1test1 (UNKNOWN) [Tue Mar 27 04:44:35 2007] ...
Message from qdaemon:
Could not run your request t for device ts-pc:hp@psfab-sssq.<EOT>

and the Q goes down with the file i sent queued!

Any hints to go from here?

Thanks

Regards,
Khalid
 
I am having similiar problems. Where and how do I get a driver for HP 4000 laser printer?
 
We have HP 5100 and 8000 laser jet. I just use hplj-3 (laserjet 3) and it work for me (coz we only need to print pcl through an application which is using this Q.

But if you are still looking for the specific driver, then you can find it on hp site:


Regards,
Khalid
 
Khalid
I'm usre you've checked but are you sure you are running the AIX print system instead of the System V?

It looks like you are printing to a Jet Direct or similar print server. What is server type & printer for the queue in the example?

Were you using any special processing filters on the 4.3 box?

jeliden
AIX 5.2 has filesets available for the LJ 4000 & LJ 8000.

printers.hplj-4000.rte
printers.hplj-8000.rte

They both should be on your installation media. I think on disk 4 or 6.

[morning] needcoffee
 
I managed to copy the /custom and the /dev
You really copied the /dev directory from one system to another ?
I know nothing about AIX but, for me, NO *nix flavor likes that ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks needcoffee & PHV for your comments

Yes i don't use system V for my printing. I just use normal aix printing.

I think what led you to this conclusion is that we used to have Novel in our network and we had our printers defined in Novel so to be able to print from AIX there was Unix-print services installed on the Novell servers. Some of the servers are still up and running coz they are being used with our mainframe (which they were trying to get rid of 10 years but never had :)

But for now (as we shifted to Active Directory) we just use HpJetboxes to directly print from our AIX servers.

But even with that i think the part in the script privided above (/usr/lib/lpd/pio/etc/piodigest $file) doesn't work as expected!

PHV, I'm not sure of that either! i just tried to do the above given by Mike! But i guess i can see the print Qs for now! but i can't print on them!

At first i thought of a script that will read the /etc/qconfig (from the old machine) and will create the Queues on the new machine using that file!

This is the stanza for one of the queues in that file

Code:
csdopstest:
        device = hp@psfab-csdops
hp@psfab-csdops:
        file = /var/spool/lpd/pio/@local/dev/hp@psfab-csdops#hpJetDirect#9100
        header = never
        trailer = never
        access = both
        backend = /usr/lib/lpd/pio/etc/piojetd psfab-csdops 9100

Code:
/usr/lib/lpd/pio/etc/piomkjetd mkpq_jetdirect -p 'hplj-3' -D pcl -q csdopstest -h psfab-csdops -
x '9100'
/usr/lib/lpd/pio/etc/piochpq -q csdopstest -d hp@psfab-csdops -a s1='4' -a s0='4'
/usr/lib/lpd/pio/etc/piochpq -q csdopstest -d hp@psfab-csdops -f 'l'

But in there i'm specifying hplj-3! how can i get the printer's driver to complete the script above!?!

Any help would be appreciated.

Regards,
Khalid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top