- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Transferring print queues
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
03-17-2004 02:48 AM
03-17-2004 02:48 AM
1. Does this work going from 10.01 or 10.20 to 11.00? (We still have older systems that could possibly be upgraded at some point.)
2. Even if it works, it is using old model files that may be updated in newer OS releases. There could be bug fixes or enhancements that would be missed in this manner. (Or bugs could be introduced because of using older model files on newer OS releases.)
3. It also doesn't handle the original model files in /usr/lib/lp. I wouldn't want to overwrite newer HP versions, but, in cases where model files for other types of printers may have been added to a system (likely no specifics known about them beforehand), some of these need transferred too.
Trying to do this in a script that requires as little interaction as possible to avoid errors and time-consuming manual processes now employed by our installers when migrating customers to new systems. I wrote a script to handle remote printers, but it's very specific to using HP model files. I don't see a good way offhand to deal with model files that don't have a "Source:" comment in them to look for. (And the way I wrote it won't properly handle any queues other thanthose created from PCL and generic remote models currently anyway.)
Any thoughts or insights to offer on any of the above points?
Jeff Traigle
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 02:52 AM
03-17-2004 02:52 AM
Re: Transferring print queues
Server A:
/usr/sam/lbin/lpmgr
-S -v -xsavedir=/var/sam/lp/ ; cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/
tar up /var/sam/lp/ and rcp/ftp to server B.
Server B:
/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 03:00 AM
03-17-2004 03:00 AM
SolutionMy experience has been that if the printers were working well enough on 10.20, for example, they will work well enough with even obsolete interface files under 11.11. I've done this at least tens of times and all I ever do is cpio /etc/lp abd /var/spool/lp over (your use of tar, is of course fine as well). It is essential to preserve the modes and ownerships of these files so simple rcp's are out. You then run a transferqueue local command on the new box and respond "all" to update any old JertAdmin scripts to use the JetDirect commands.
The problem with trying to "blend in" new interface/model scripts is that it's not easy to know how they have been customized. If you need to use some new-fangled feature in a newer version of an interface, you can do that on an as-needed basis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 03:07 AM
03-17-2004 03:07 AM
Re: Transferring print queues
Jetdirect does it itself
- 1 - Formatted: March 17, 2004
transferqueue(1) transferqueue(1)
NAME
transferqueue allows users to transfer all Unix JetAdmin/JetDirect
Printer Installer Utility created queues from one Unix host to another
in the JetDirect Printer Installer Utility environment.
SYNOPSIS
transferqueue [help/local/backup]
export MANPATH=/opt/hpnpl/man:$MANPATH
man transferqueue
See also
http://www.hp.com/pond/modelscripts/index2.html
Home of all jd printer scripts
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2004 06:43 AM
03-17-2004 06:43 AM
Re: Transferring print queues
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 03:59 AM
07-02-2004 03:59 AM
Re: Transferring print queues
I have created some scripts that help me do this. The scripts just do some checking and confirmation steps.
I define all printqueues on one server (Server A), then distribute it to the other servers (Server B).
1) Saving all printqueus on Server A
serverA# /usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp
(this is the same place SAM uses as default when saving/restoring)
2) Removing old SAM on Server B
serverB# rm -r /var/sam/lp
3) Fetching queues from Server A
serverB# (cd /var/sam;tar cf - ./lp)"| (cd /var/sam;tar xf -)
4) Restoring printqueues on Server B
serverB# /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp
When you restore the queues on Server B all printqueues will be deleted from /etc/lp and recreated from the sam-directory.
Any pending spooljobs is deleted as well.
Related to model files:
The model file is copied from the repository into /etc/lp/interface/model.orig/{queuename} when you define the queue.
This will be saved and restored on Server B.
So in this case the same model file will be used on all servers.
I have used this between 10.x and 11.x servers. On Itanium servers 11.23 I had to do one adaption.
Risc/11.11 which is my source system refer to /opt/hpnp while Itanium uses /opt/hpnpl
In the /etc/lp/interface/{queuename} file this is specified HPNP=/opt/hpnp
So you could either change all occurences or just create a link (which I did)
ln -s /opt/hpnpl /opt/hpnp
Hope your still watching the message and that is to some help
Best regards
Tor-ARne