[HPADM] SUMMARY: LP Spooler Question

From: Quinn, Bryan (Bryan.Quinn@CooperTools.com)
Date: Wed Sep 25 2002 - 11:15:03 EDT


Thanks to everyone who responded and a special thanks to Bill Holtgreive,
Kevin Hutcheson, Iyyaswami Avudaiappan, and my good buddy Jim Langston!
Below is what I plan on using to solve my problem and below that is my
original post.
Thanks!
-Bryan
SOLUTION:
KBRC00001736
How to move the lp spooler configuration to another system
Document Information Table
How to move the lp spooler configuration to another system DocId:
KBRC00001736 Updated: 5/22/00 9:22:52 AM

PROBLEM
How can the lp spooler configuration be moved or copied to another
system? Recreating each printer in the current configuration on the new
system
requires a lot of effort..

RESOLUTION
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.

ORIGINAL POST:
> Hello Admins,
>
> Is there a way of moving and/or copying all spools from one system to
> another? We would like to distribute the spools we have setup on one
> server
> to another, as a backup. We obviously would rather have some method of
> copying them, if it exists, rather than creating the 200+ spools on the
> other server. That would be a rather tedious process.
>
> Thanks in advance!
> Bryan Douglas Quinn
> UNIX Support Specialist
> Cooper Power Tools
> Lexington, SC
> (803) 808-6770
> Bryan.Quinn@coopertools.com
>
>
>
> --
> ---> Please post QUESTIONS and SUMMARIES only!! <---
> To subscribe/unsubscribe to this list, contact
> majordomo@dutchworks.nl
> Name: hpux-admin@dutchworks.nl Owner:
> owner-hpux-admin@dutchworks.nl
>
> Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse
> only)
> http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse &
> search)

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:20 EDT