HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- moving printers
Operating System - HP-UX
1832984
Members
3006
Online
110048
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
11-09-2004 07:48 AM
11-09-2004 07:48 AM
moving printers
We have a k460 running 11.0 and a new RP7410 running 11.i. I want to bring the printers from the K460 to the rp7410. I used lpmgr -S -x savedir=/tmp/lp then a lpmgr -R -x. All the printers are there, but they don't work. I've stopped the scheduler and started it. Disabled the printers and enabled them. The print job will get qued, but it won't print?
Help, I don't want to re-created a few hundred printers.
Help, I don't want to re-created a few hundred printers.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 08:03 AM
11-09-2004 08:03 AM
Re: moving printers
This is my tried and true method:
1) On old box, do an lpstat -t and look for any hung/old printjobs and issue a cancel for each one. No point in bring those over.
2) lpshut
3) cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/oldprinters.cpio
4) On the new box, install the latest JetDirect software; even if you were running JetAdmin on the old box install JetDirect anyway.
5) On the new box, make sure that hostnames for all the printers is set up (/etc/hosts,DNS,NIS, and/or NIS+ as appropriate for your environment).
5) lpshut
cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/printersjustincase.cpio
6) Ftp, tar, cpio ... /var/tmp/oldprinters.cpio from old box to new box.
7) cd /
cpio -icvdum < /var/tmp/oldprinters.cpio
8) If you are converting from JetAdmin to JetDirect, /opt/hpnpl/bin transferqueue local; respond "all"; this will convert all of your old interface files to use JetDirect
9) lpsched
Now everything including your default printer should be setup. The most common mistake in moving print queues is using commands like cp or rcp which do not preserve all the permissions and ownerships.
1) On old box, do an lpstat -t and look for any hung/old printjobs and issue a cancel for each one. No point in bring those over.
2) lpshut
3) cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/oldprinters.cpio
4) On the new box, install the latest JetDirect software; even if you were running JetAdmin on the old box install JetDirect anyway.
5) On the new box, make sure that hostnames for all the printers is set up (/etc/hosts,DNS,NIS, and/or NIS+ as appropriate for your environment).
5) lpshut
cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/printersjustincase.cpio
6) Ftp, tar, cpio ... /var/tmp/oldprinters.cpio from old box to new box.
7) cd /
cpio -icvdum < /var/tmp/oldprinters.cpio
8) If you are converting from JetAdmin to JetDirect, /opt/hpnpl/bin transferqueue local; respond "all"; this will convert all of your old interface files to use JetDirect
9) lpsched
Now everything including your default printer should be setup. The most common mistake in moving print queues is using commands like cp or rcp which do not preserve all the permissions and ownerships.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 08:43 AM
11-09-2004 08:43 AM
Re: moving printers
This is how I've done it:
/usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/
cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/
tar cvf /tmp/lp.tar /var/sam/lp/
ftp /tmp/lp.tar to remote server
Untar it, then:
lpshut
/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/
lpsched -v
Rgds...Geoff
/usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/
cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/
tar cvf /tmp/lp.tar /var/sam/lp/
ftp /tmp/lp.tar to remote server
Untar it, then:
lpshut
/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/
lpsched -v
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP