- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Moving printer config to a new host
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
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
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
12-01-2011 04:34 PM
12-01-2011 04:34 PM
Moving printer config to a new host
Hi all.
I'm trying to replace a very old system running HP-UX 11.00 with a less old system running a fresh installation of 11.23 (These are old L class systems so no 11.31). My problem is that the old 11.00 system has over 300 printers configured that need to be moved over to the 11.23 system.
I've tried copying /etc/lp and /var/spool/lp over with very limited success. I tried SAM's backup and restore configuration (backup on the 11.00 server, scp the backup folder over to the 11.23 system and restore from it) with even less success (spooler is empty on restore) so I am at a loss.
It's going to be a horrible task to manually have to define all those printers on the new system so I was wondering if anyone here had any ideas on how I could accomplish this task without major work on my part.
Thanks in Advance.
Richard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2011 04:25 AM
12-02-2011 04:25 AM
Re: Moving printer config to a new host
Hi:
11.00 server:
# umask 022
# mkdir /tmp/lp
# /usr/sam/lbin/lpmgr -S -v -xsavedir=/tmp/lp
# tar /tmp/lp.tar /tmp/lp
# scp -p /tmp/lp.tar server1131_name:/tmp
11.31 server:
# umask 022
# tar xvf /tmp/lp.tar
#lpshut
#/usr/sam/lbin/lpmgr -R -v -xsavedir=/tmp/lp
#lpsched -v
#lpstat -v
- Tags:
- lpmgr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2011 06:58 AM
12-02-2011 06:58 AM
Re: Moving printer config to a new host
>I tried SAM's backup and restore configuration
Did you do something like rariasn mentioned?
lpmgr may not handle network printers correctly, do you have those?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2011 10:38 AM
12-06-2011 10:38 AM
Re: Moving printer config to a new host
Hi and thanks for the reply's
When I used SAM's backup and restore I used it from the GUI. I ren the commands you gave. PS1 (command prompt) is set to "1100# " on the 11.00 host and "1123# " on the 11.23 host. Commands and results follow:
1100# umask 022
1100# mkdir /tmp/lp
1100# /usr/sam/lbin/lpmgr -S -v -xsavedir=/tmp/lp
1100# tar cf /tmp/lp.tar /tmp/lp
1100# scp -p /tmp/lp.tar 192.168.167.46:/tmp/
lp.tar | 13210 KB | 2201.7 kB/s | ETA: 00:00:00 | 100%
then:
1123# cd /tmp
1123# tar xf lp.tar
1123# lpshut
lpshut: scheduler not running
1123# /usr/sam/lbin/lpmgr -R -v -xsavedir=/tmp/lp
A problem occurred doing "lpadmin -pCanonGP_pr -i/tmp/lp/interface/CanonGP_pr -v/dev/null -ormCanonGP -orppr1 -oci/tmp/lp/cinterface/CanonGP_pr -osi/tmp/lp/sinterface/CanonGP_pr ". Stderr from this command is "/usr/sbin/lpadmin: can't access file "/tmp/lp/sinterface/CanonGP_pr"".
A problem occurred doing "lpadmin -pmicroline_1 -i/tmp/lp/interface/microline_1 -v/dev/null -ormsamband.kea.is -orpmicroline_1 -oci/tmp/lp/cinterface/microline_1 -osi/tmp/lp/sinterface/microline_1 ". Stderr from this command is "/usr/sbin/lpadmin: can't access file "/tmp/lp/sinterface/microline_1"".
1123# lpsched -v
scheduler is running
1123# lpstat -v | wc -l
299
Worked like a charm apparently! :)
Thank you so very much for saving my bacon on this one :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2011 10:44 AM
12-06-2011 10:44 AM
Re: Moving printer config to a new host
>Worked like a charm apparently!
Did these two printers get installed?
can't access file "/tmp/lp/sinterface/CanonGP_pr".
can't access file "/tmp/lp/sinterface/microline_1".
Do these files exist?