- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- moving printers from one server to other.
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
07-16-2003 04:33 AM
07-16-2003 04:33 AM
I have some 100 printers configured in One HP UX 11 server . I want to move the same to another server . I used sam and through command line .Both the time it failed giving the following err.
to save
/usr/sam/lbin/lpmgr -S -v -xsavedir=/tmp/lp
to restore. on remote node.
/usr/sam/lbin/lpmgr -R -v -xsavedir=/tmp/lp
The error mesg I am getting when restoring is
A problem occurred doing "lpadmin -pnirdotprn -i/tmp/lp/interface/nirdotprn -v/dev/null ". Stderr from this command is "/usr/sbin/lpadmin: can't access file "/tmp/lp/interface/nirdotprn"".
The script file is existing , I tried changing the owner and group to lp. Still the same problem.
Can any body help me.
Regards,
baiju.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 04:38 AM
07-16-2003 04:38 AM
Re: moving printers from one server to other.
Give rwx to everybody on the /tmp/lp you copied to the new machine
chmod -R 777 /tmp/lp
Try again
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 04:43 AM
07-16-2003 04:43 AM
Re: moving printers from one server to other.
I tried by giving full permission , still problem persists.
Thanx
baiju.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 05:01 AM
07-16-2003 05:01 AM
Re: moving printers from one server to other.
echo Backing up the spooler configuration to /var/sam/lp/lp.new....please wait...; /usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/ ; cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/
Tar up the lp.new dir, ftp that to the other node, untar it,
cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/
echo Restoring the spooler configuration....please wait...; /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/
The reason I do the cp is because /var/sam/lp is a mounted filesystem (and you can't rm it)as my spooler is in a MC/SG package...
Instead of /tmp, what happens when you use the default of /var/sam/lp?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 05:16 AM
07-16-2003 05:16 AM
Re: moving printers from one server to other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 05:50 AM
07-16-2003 05:50 AM
Re: moving printers from one server to other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 05:55 AM
07-16-2003 05:55 AM
Re: moving printers from one server to other.
Yes all my printers are remote printers only.
But can u just give some more details.
After coppying the /var/spool/lp/interface to dest server , which is the script u mentioned to run.
pls give me some more details.
Thanks,
baiju.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 06:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 06:32 AM
07-16-2003 06:32 AM
Re: moving printers from one server to other.
1) On the new box, backup the existing configuration, just to be safe.
lpshut
cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /home/me/lpsave.cpio
Using swinstall, install the newest JetDirect software even if your OLD box is running the obsolete JetAdmin.
Do a final lpshut to maked sure spooler is not running.
You will need to have the printer host names defined in /etc/hosts, DNS, and/or NIS/NIS+.
2) On the old box:
lpstat -t
Look for any old jobs that you don't need and cancel them. There is no point is transferring these.
lpshut
cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /tmp/lp.cpio
ftp / rcp or transfer via tape /tmp/lp.cpio to
the new box. Do not simply use cp or rcp to transfer the lp directories. It is extremely important to preserve ownership and setuid bits. The abobe 'cpio' method will assure that.
On the new box:
cd /
cpio -icvdum < /tmp/lp.cpio
Next (if converting from JetAdmin to JetDirect)
transferqueue local and when prompted answer "all".
lpsched
At this point, everything including the default printer setting will be "good to go".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 06:57 AM
07-16-2003 06:57 AM
Re: moving printers from one server to other.
Thanks 'trasferqueue' has worked fine,
it had included all the printers in the queue , but it had all entries in the
/var/spool/lp/interface/ directory are zero byte files.
Do I need to untar the queues.tar in var/spool/lp/interface.
or do I need to restore /var/spool of original server.
pls suggest.
thanks,
baiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 09:35 AM
07-16-2003 09:35 AM
Re: moving printers from one server to other.
transferqueue backup
Then ftp/rcp the /tmp/queues.tar file to /tmp of the destination server.
Then run on the destination server:
transferqueue
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 04:38 AM
07-17-2003 04:38 AM
Re: moving printers from one server to other.
I placed a call with HP - still open....
For remote printers via: /usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/
ON the destination host where you are doing the restore from, the only solution so far is to:
touch /var/sam/lp/sinterface/
touch /var/sam/lp/cinterface/
Then run your restore:
/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 05:38 AM
10-26-2004 05:38 AM
Re: moving printers from one server to other.
thanks, derek