Re: copying printer definitions from one server to another



THANK YOU!



-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
Willeat, Todd
Sent: Thursday, August 10, 2006 3:03 PM
To: aix-l@xxxxxxxxxxxxx
Subject: Re: copying printer definitions from one server to another



Note that this would overwrite any existing printer definitions on the
target box...



#!/bin/ksh

# Makes archive of necessary files and directories to copy printers to
new box

# Version History:

# Version 1.0 (09/17/2002) - Initial Version

TARFILE="/tmp/migrateprinters.tar"

PROGNAME=$(basename $0)

case $1 in

'source')

# Add files

echo "Generating archive ($TARFILE)... \c"

tar cf $TARFILE /etc/qconfig /var/spool/lpd/pio/@local/custom
/var/spool/lpd/pio/@local/ddi /var/spool/lpd/pio/@local/dev

echo "Done.\n\nThe file '$TARFILE' must now be transferred to

the target \nsystem's /tmp directory. Then extract the files by

executing \n'$PROGNAME target' on the target system."

;;

'target')

# Extract files

tar xf $TARFILE

# Refresh smit panels

cp /usr/lpp/printers.rte/inst_root/var/spool/lpd/pio/@local/smit/*
/var/spool/lpd/pio/@local/smit

# Redigest queues

cd /var/spool/lpd/pio/@local/custom

for COLONFILE in $(ls)

do

/usr/lib/lpd/pio/etc/piodigest $COLONFILE

done

# Cycle printer subsystem

stopsrc -cg spooler

startsrc -g spooler

;;

*)echo "Usage: $PROGNAME {source|target}"

;;

esac



_____

From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
Miller, Dave (I.S.)
Sent: Thursday, August 10, 2006 1:39 PM
To: aix-l@xxxxxxxxxxxxx
Subject: copying printer definitions from one server to another

Does anyone have a tried and true method of copying printer definitions,
in total, from one AIX server to another?

Or any other suggestions on how to get 200 printers copied?

thanks

_____




CONFIDENTIALITY NOTICE: This email communication and any
attachments may contain confidential and privileged information for
the use of the designated recipients named above. If you are not
the intended recipient, you are hereby notified that you have
received this communication in error and that any review,
disclosure, dissemination, distribution or copying of it or its
contents is prohibited. If you have received this communication in
error, please reply to the sender immediately or by telephone at
(413) 794-0000 and destroy all copies of this communication and any
attachments. For further information regarding Baystate Health's
privacy policy, please visit our Internet web site at
http://www.baystatehealth.com



Relevant Pages