- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Migrating printers.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:45 AM
01-14-2003 01:45 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:54 AM
01-14-2003 01:54 AM
Re: Migrating printers.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:59 AM
01-14-2003 01:59 AM
Re: Migrating printers.
Make in source machine: SAM/Printers and Ploters/LP Spooler/Save-RestoreSpooler Configuration/Action/Save Spooler Configuration.
Go to /var/sam/lp and tar avery dirs inside
ftp this tar file to the target host and put on /var/sam/lp
Before explode it on the target host delete first any dir inside. Now explode the tar file.
In target host SAM/Printers and Ploters/LP Spooler/Save-RestoreSpooler Configuration/Action/Restore Spooler
That's All..!
Rgds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 02:00 AM
01-14-2003 02:00 AM
Re: Migrating printers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 02:40 AM
01-14-2003 02:40 AM
Re: Migrating printers.
I've migrated my whole printers in one step from 10.20 to 11.o without troubles with this method.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 11:22 PM
01-14-2003 11:22 PM
SolutionFor remote printers:
Generate a file with printers definition in system 10.20
lpstat -v | grep remote | cut -d" " -f 7,9 > /tmp/remote_printers
sed -e s/\ \/\|/g /tmp/remote_printers > /tmp/remote_printers2
Copy /tmp/remote_printers2 to system 11.11
lpshut
for i in `cat /tmp/remote_printers2`
do
a=`echo $i |cut -d"|" -f1`
b=`echo $i |cut -d"|" -f1`
lpadmin -p$a -orm$b -orp$a -mrmodel -v/dev/null -orc -ob3 -ocmrcmodel -osmrsmodel ;
done
lpsched
For DTC printers is similar, and for JETDIRECT printers you need the NAME and IP.
To obtain IP for JETDIRECT printer:
cat /etc/lp/interface/printer_name | grep ^PERI
PERIPH=10.72.2.4
Hope this help.
(Sorry for my poor english
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 12:44 AM
03-29-2005 12:44 AM
Re: Migrating printers.
Is it possible there is a permission issue or something else to look for?
Thanks.
Doug