- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Printer Synchronization
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
02-10-2005 03:11 AM
02-10-2005 03:11 AM
Printer Synchronization
We have 3 clusters set up on 6 partitions between to 9000s (i think they are 9000s, i could be wrong). Anyway, we have created like 25 printers and need to keep them synchronized between the partitions. I am thinking that a perl script or sh script would suffice, and I am sure someone else has run into this problem before, and would love to see how they handled it as opposed to using sam to create/modify/maintain a current 25 printers six times as opposed to the greatly increased number when our application finally gets rolled out to all 9 locations.
Thanks in advance,
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 03:24 AM
02-10-2005 03:24 AM
Re: Printer Synchronization
Setup all the printers on the "master" host.
Do an lpstat -t and look for any old/hung jobs and cancel them -- no point in copying that over. Now do an lpshut.
cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/lp.cpio
lpsched
Now on each of your other hosts:
ftp or rcp the /var/tmp/lp.cpio file from the master.
lpshut
cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/lp.cpio.save # just to be safe
cpio -icvdum < /var/tmp/lp.cpio
lpsched
Now all your printers should be in sync. You must also make sure that all the printer hostnames are correctly resolved but DNS/LDAP/ or NIS/NIS+ makes that easy. I also assume that you have installed the JetDirect software (if needed) everywhere.
This approach is rather easy to script as a bunch of remsh's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 03:28 AM
02-10-2005 03:28 AM
Re: Printer Synchronization
This looks like it will solve my problem! I am going to test it very soon!
Thank you!
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 03:29 AM
02-10-2005 03:29 AM
Re: Printer Synchronization
If you insist on copying between servers, here's another method:
/usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/
cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/
Then tar up /var/sam/lp/, copy to other servers, un tar it on them and:
/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
02-10-2005 03:32 AM
02-10-2005 03:32 AM
Re: Printer Synchronization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 03:40 AM
02-10-2005 03:40 AM
Re: Printer Synchronization
I have test print to Prod cluster (as well as some other non clustered production apps)
My QA has it's own print spool - and I use the method I posted above to update once a month.
For DR - my QA system becomes Prod - with SRDF...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 05:11 AM
02-10-2005 05:11 AM
Re: Printer Synchronization
Thanks,
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 06:24 AM
02-10-2005 06:24 AM
Re: Printer Synchronization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 06:33 AM
02-10-2005 06:33 AM
Re: Printer Synchronization
My method was for the native spooler....
Sounds like you are in fact using HPDPS...
http://docs.hp.com/en/B2355-90156/index.html
Sorry - not familiar with it.....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 06:36 AM
02-10-2005 06:36 AM
Re: Printer Synchronization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 06:36 AM
02-10-2005 06:36 AM
Re: Printer Synchronization
"The DCE Extended Environment
In the DCE Extended Environment, HPDPS objects (such as physical printers and spoolers) created by any member of a DCE cell are instantly available to the entire cell. For example, if a new physical printer is created within a DCE Extended Environment server, the name of the new physical printer is visible to every client in the DCE cell, and each client can immediately issue HPDPS operations for that physical printer. This is possible because the entire cell shares the same namespace called the DCE Cell Directory Service. This allows for single-point administration as a result of the distributed namespace. See Chapter 8. Managing DCE Security for HPDPS for more information on the DCE Extended Environment. "
Sounds like you should be using that...
Got it from:
http://docs.hp.com/en/B2355-90678/index.html
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 06:49 AM
02-10-2005 06:49 AM
Re: Printer Synchronization
It's man page gives a real good example of how to use it. It's pretty easy and pretty simple.