- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: copying 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
08-01-2007 08:57 AM
08-01-2007 08:57 AM
I have few network printers configured through jetadmin.Now I want to cofigure all these printers to other server.What is the best method to do this..??
I tried copying /etc/lp/interface/ to new box and restarted the scheduler.But the lpstat shows "not a destination."
Is ther any other files I need to copy..????
Please help...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2007 09:18 AM
08-01-2007 09:18 AM
Re: copying print queues
First, make sure that you have hostname resultion working on both boxes (modify /etc/hosts, DNS, NIS, NIS+ as appropriate to your environment so that printer hostnames can be resolved.)
Next, if you have not done so already, install the JetDirect software on the destination server so that you have the necessary software for the Network printers.
On the original box:
1) lpstat -t and note any hung/running jobs; use the cancel command to cancel them.
2) lpshut # stop lp subsystem
3) cd /
find ./etc/lp ./var/spool/lp -print | cpio -ocv > /var/tmp/lp.cpio
4) lpsched # restart lp subsystem
5) Using ftp, rcp, sftp, ... copy /var/tmp/lp.cpio from the original to the destination box.
On the destination box:
1) lpshut
2) cd /
find ./etc/lp ./var/spool/lp -print | cpio -ocv > /var/tmp/lp.save.cpio # just in case
3) cpio -icvdum < /var/tmp/lp.cpio
4) lpsched
Now your entire lp subsystem should be copied and working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 04:48 AM
08-02-2007 04:48 AM
SolutionI ran into the similar situation with the SAP team. They wanted to copy the queues from a server to another sap server.
I have a script that generates the list of printers and creates a config file.
then on the destination server you only run the script with config file and it duplicates the print queues with the same information as the source server.
I will suggest to use the GENERATE_QUEUE_LIST
section. Then once the config file is created use the ADD_JetAdmin_QUEUES section.
hope it helps.
good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 04:50 AM
08-02-2007 04:50 AM
Re: copying print queues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 07:35 AM
08-02-2007 07:35 AM
Re: copying print queues
Haven't done this in ages, but think in past I did something like this:
cd /var/sam/lp
tar cvf
rcp that tarfile to the second server at /var/sam/lp
tar xvf
Confirm your printers are there in SAM.
Seems to me that I also rcp the /etc/lp/interfaces -or- I think you can run:
/opt/hpnpl/bin/transferqueue local and answer "all"
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 11:15 AM
08-07-2007 11:15 AM