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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Migration printers 1

Status
Not open for further replies.

USS031

Technical User
Jul 4, 2003
2
AR
I have 2 servers AIX 5.2, there is a way to copy or migrate the pinters the one server to another? because are a lot of printers.
Thanks
 
In my opinion, it is probably easier to create scripts to build new printers. Let's take a look at the files involved in migration.
1. /etc/qconfig - this file contains all the queue definitions. If you are talking about a queue with a backend of rembak, then there are no additional files and these queues are easy to migrate.
2. The device files. If you are using any local serial or parallel printer devices, these will have to be created and not copied over.
3. Dummy device files. Things like JetDirect queues have a FILE = parameter in the /etc/qconfig definition. You would need to create each of these files with the correct ownership properties. These are primarily used as 'lock' files, and seldom if ever get anything sent to them.
4. The virtual printer files. The text definitions of these files are in /var/spool/lpd/pio/@local/custom. There is one for each virtual printer. If you have made any customizations to the virtual printer (for example made a landscape queue), then you would have to copy over this file or else make the same changes to the new queue. If you copy these files over, then you need to 'digest' the files which creates the /var/spool/lpd/pio/@local/ddi files for each as well as entries in the smit database files located in /var/spool/lpd/pio/@local/smit. I would rather see these rebuilt through digestion (I think it's the piodigest or any chvirprt command will do this) than to actually see these files copied over. The smit file grows and the old entries never get delected, but simply are not longer pointed to, so building new entries on the new system makes things smaller.
 
I have different models of printers.
There is a file qconfig.bin is important?.
If I copy of this directories and files to another server It will work?
Thanks jwtesch
 
qconfig.bin is not important. It will get recreated the first time you do an lpstat or qdigest or qadm, etc.

Although the definitions are there, can't be sure that copying the directories will make it all work, but you stand a good chance
 
my advice is to create one of each printer type using smit, then get the various commands from your ~/smit.log and use those as a template to write a script either capable of accepting arguments or just one that runs all of the commands with hardcoded entries, depending on the scope of your work.

IBM Certified -- AIX 4.3 Obfuscation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top