- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Lp interface file
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-02-2007 07:45 AM
07-02-2007 07:45 AM
Lp interface file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 08:00 AM
07-02-2007 08:00 AM
Re: Lp interface file
On the old box:
First do an lpstat -t and note any outstanding/old requests. Remove then via the cancel command as there is no need to transfer these old/stale jobs. Next do an lpshut.
cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/lp.cpio
Using rcp, ftp, scp copy /var/tmp/lp.cpio from the old box to the new.
On the new box (and I'll assume that you have already installed the JetDirect software):
lpshut # may error if lpsched not running
cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/lp.cpio.save # just to be safe
rm -r /var/spool/lp /etc/lp
cpio -icvdum < /var/tmp/lp.cpio
lpsched
You should be good to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 01:37 PM
07-02-2007 01:37 PM
Re: Lp interface file
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1127082
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 03:36 PM
07-02-2007 03:36 PM
Re: Lp interface file
#### Save & store printer config info with lpmgr
/usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp
then rcp to the remote machine and restore.
### Change ownership of /var/sam/lp to lp:bin , lp:lp
/usr/bin/chown -Rh lp:bin /var/sam/lp
/usr/bin/chown -Rh lp:lp /var/sam/lp/interface
/usr/bin/chown -Rh lp:lp /var/sam/lp/member
cd /var/sam
/opt/tar/bin/gtar -zcpf /var/sam/lp_config.gz lp
scp -p lp_config.gz ${remhost}:/var/sam
ssh ${remhost} -n "export PATH=$PATH:/opt/aCC/bin:/opt/ansic/bin:/opt/tar/bin:/sbin:/usr/5bin:/usr/ccs/bin:/usr/contrib/b
in:/usr/lib;cd /var/sam;/opt/tar/bin/gtar -zxpf lp_config.gz" &
hope this gives an idea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 01:02 AM
07-03-2007 01:02 AM
Re: Lp interface file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 01:10 AM
07-03-2007 01:10 AM
Re: Lp interface file
try this link:
http://h20180.www2.hp.com/apps/Nav?h_pagetype=s-001&h_lang=en&h_cc=us&h_product=27349&h_client=S-A-R163-1&h_page=hpcom〈=en&cc=us
mfG Peter