HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Printers Question
Operating System - HP-UX
1831352
Members
3111
Online
110024
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
Go to solution
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
07-10-2006 01:40 PM
07-10-2006 01:40 PM
I have a server A with 20 remote printers configured. I have add the same 20 printers to server B.This is what i have done..
1. copy /etc/lp directory
2. copy /var/spool/lp directory
3. copied the /etc/hosts (printer entries) to Server B.
started the lpsched after removing the FIFO and SCHEDLOCK files. lpstat -t and lpstat -a reports fine. but when i issue a print job with lp -dP028 fileA
lp: destination "P028" non-existent. I am getting the same error for all the 20 printers. Please advice
Thanks
Jeff
1. copy /etc/lp directory
2. copy /var/spool/lp directory
3. copied the /etc/hosts (printer entries) to Server B.
started the lpsched after removing the FIFO and SCHEDLOCK files. lpstat -t and lpstat -a reports fine. but when i issue a print job with lp -dP028 fileA
lp: destination "P028" non-existent. I am getting the same error for all the 20 printers. Please advice
Thanks
Jeff
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 01:51 PM
07-10-2006 01:51 PM
Solution
Copy won't get the job done because lp is extremely sensitive to file ownership/group/mode. You need a mechanism that will preserve all of this:
On Server A:
cancel any outstanding/old print jobs
lpshut
cd /
find ./etc/lp ./var/spool/lp -print | cpio -ocv > /var/tmp/lp.cpio
Next rcp/ftp /var/tmp/lp.cpio from Server A to Server B.
I'll assume that you have installed JetDirect Software (if needed) and have hostname resolution (/etc/hosts, NIS, DNS) working on Server B.
On Server B:
lpshut
Look for any lpsched processes and kill them
although there probably will be none.
cd /
find ./etc/lp ./var/spool/lp -print | cpio -ocv > /var/tmp/lp.cpio.orig # just in case
rm -r ./etc/lp ./var/spool/lp
cpio -icvdum < /var/tmp/lp.cpio
lpsched
Now everything (including the default destination) should be good to go.
On Server A:
cancel any outstanding/old print jobs
lpshut
cd /
find ./etc/lp ./var/spool/lp -print | cpio -ocv > /var/tmp/lp.cpio
Next rcp/ftp /var/tmp/lp.cpio from Server A to Server B.
I'll assume that you have installed JetDirect Software (if needed) and have hostname resolution (/etc/hosts, NIS, DNS) working on Server B.
On Server B:
lpshut
Look for any lpsched processes and kill them
although there probably will be none.
cd /
find ./etc/lp ./var/spool/lp -print | cpio -ocv > /var/tmp/lp.cpio.orig # just in case
rm -r ./etc/lp ./var/spool/lp
cpio -icvdum < /var/tmp/lp.cpio
lpsched
Now everything (including the default destination) should be good to go.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 02:02 PM
07-10-2006 02:02 PM
Re: Printers Question
Hi Jeff
You could also try copy (tar) the following directories from server A to server B:
/usr/lib/lp
/etc/lp
/var/spool/lp
Rgds.
You could also try copy (tar) the following directories from server A to server B:
/usr/lib/lp
/etc/lp
/var/spool/lp
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2006 02:48 AM
07-11-2006 02:48 AM
Re: Printers Question
Hi Jeff,
Pls try this spool replication procedure:
On primary node:
#/usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp
#cd /var/sam
#tar -cf spool_image.tar lp/
...transfer the "spool_image.tar" file to secondary node.
On secondary node:
Ensure that transferred spool_image.tar file is placed on /var/sam directory, then:
#lpshut
#tar -xf spool_image.tar
#/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp
#lpsched
Rgds.
Pls try this spool replication procedure:
On primary node:
#/usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp
#cd /var/sam
#tar -cf spool_image.tar lp/
...transfer the "spool_image.tar" file to secondary node.
On secondary node:
Ensure that transferred spool_image.tar file is placed on /var/sam directory, then:
#lpshut
#tar -xf spool_image.tar
#/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp
#lpsched
Rgds.
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