Operating System - HP-UX
1834611 Members
3709 Online
110069 Solutions
New Discussion

Users is done, how about PRINTERS

 
Jeff Hagstrom
Regular Advisor

Users is done, how about PRINTERS

How do I move all the printers over to the other machine? I don't have NIS, this other machine empty, it's an unused box.
2 REPLIES 2
John Poff
Honored Contributor

Re: Users is done, how about PRINTERS

Hi Jeff,

We've used the SAM method mentioned in this post to replicate printers to other systems:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4d7c402f24d5d61190050090279cd0f9,00.html

JP

eran maor
Honored Contributor

Re: Users is done, how about PRINTERS

Hi

HP does not support the copying of the lp spooler configuration from one system
to another. The IO configuration of the target system may be different than IO
configuration on the source system. The device files for local printers would
be different on the new system, and the spooler configuration for those
printers contain the device files. The print queues may not work.

A procedure that has been known to work in most circumstances is as follows :

On the source system:

Execute
-> SAM
-> Printers and Plotters
-> Lp Spooler
-> Save/Restore Spooler Configuration

Choose
-> Actions
-> Save Spooler Configuration

This will save all the information necessary to rebuild the spooler into the
directory /var/sam/lp.

Tar this directory (/var/sam/lp) :

# tar cvf /tmp/lp.tar /var/sam/lp

Copy the resulting tar file, lp.tar, onto the target system.

Unpack the lp.tar file on the target system :

# tar xvf lp.tar


Execute
-> SAM
-> Printers and Plotters
-> Lp Spooler
-> Save/Restore Spooler Configuration

Choose
-> Actions
-> Restore Spooler Configuration

This will build the lp spooler configuration on the target system using the
information from the source system, creating a "clone" of the old system.

An error may occur when restoring the spooler if the root umask is set to
something other than 022. The permission on /var/sam/lp and all file
under it could be changed from their defaults, 755 or rwxr-xr-x, with the result
that SAM cannot access the files to perform the restore. The error received in
SAMlog would be something like:

ERROR A problem occurred doing "lpadmin -ptrec_stor
-i/var/sam/lp/interface/trec_st or -v/dev/null ". Stderr from this command is
"/usr/sbin/lpadmin: can't access file "/var/sam/lp/interface/trec_stor"".
* Failed to restore trec_stor
love computers