- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: moving all printer queues from one server to a...
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
Discussions
Discussions
Forums
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
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
тАО12-07-2005 10:45 AM
тАО12-07-2005 10:45 AM
I need to make other servers follow the suit. So, I used the
/usr/sam/lbin/lpmgr -S -xsavedir=/tmp/lpdefs
and I will transfer the directory with its contents to the other unruly nodes. Then I will run
/usr/sam/lbin/lpmgr -R -xsavedir=/tmp/lpdefs
command to restore them. So far so good. One question is lingering on my mind:
Is the restore printer queues process destructive or merging in nature ? In other words, will the process destroy my older queues or just create the queues which are not already there and maybe update the existing queue definitions. I couldn't figure this part out.
I need all the old queues to be destroyed on the target servers. Not merging. What is the best way to accomplish this instead of going through the queues one by one and removing them individually ? Or is this taken care of by the restore process ? I do not care if a few current print jobs get lost in the process. I just need to do this fast some time in the middle of the night.
As always, thanks for your help in advance.
UNIX because I majored in cryptology...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2005 12:25 PM
тАО12-07-2005 12:25 PM
SolutionIf you run it from sam - it will actually prompt you "are you sure?"
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2005 09:54 AM
тАО12-08-2005 09:54 AM
Re: moving all printer queues from one server to another
Now another question:
When I add onesy-twosy type additional printers to the server I am using as a printer landscape template, is there a way to export the newly added printers into a similar structure to be imported by the satellite nodes ?
Thanks again in advance.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2005 12:32 AM
тАО12-12-2005 12:32 AM
Re: moving all printer queues from one server to another
I have used scripts to copy/distribute print configs between multiple servers, and used one server as the "master".
I used /var/sam/lp as the savedir. This was to make my script routines "compatible" with SAM.
--------------------------------
Distributing entire print config
--------------------------------
1) On Master - Save config
/usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp
2) On Slave - Copy entire /var/sam/lp
remsh $MASTER "(cd /var/sam;tar cf - ./lp)"| (cd /var/sam;tar xf -)
3) On Slave - Restore config
/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp
nb! warnings
* You should clean out old saved files in /var/sam/lp so that old queues is not restored
* scheduler should be stopped during restore
- just remember to start it afterwards :-)
--------------------------------
Copying single printer
--------------------------------
The save/restore is nice for distributing the entire print config, but if you want to do update on a single printqueue I recommend to do the following:
1) On Slave -create the queue (if not exist)
Example:
lpadmin -p${QUEUE} -v/dev/null -i/opt/hpnp/sh/dumbplot >/dev/null
2) On Slave - copy from Master
- the queue def from the "master node" to the "slave node"
cd /etc/lp/interface
rcp ${MASTER}:/etc/lp/interface/${QUEUE}
cd model.orig
rcp ${MASTER}:/etc/lp/interface/model.orig/${QUEUE}
3) On Slave - fix permissions
chown lp:bin ../${QUEUE} ${QUEUE} >/dev/null
chmod 755 ../${QUEUE} ${QUEUE} >/dev/null
3) Activate the queue
disable ${QUEUE} >/dev/null 2>&1
enable ${QUEUE} >/dev/null 2>&1
accept ${QUEUE} >/dev/null 2>&1
nb! Warning.
* If queue does not exists, you must stop the scheduler before defining it.
- I normally run a lpshut before I copy and a lpsched after the job is done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2005 02:57 AM
тАО12-12-2005 02:57 AM
Re: moving all printer queues from one server to another
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2005 03:16 AM
тАО12-12-2005 03:16 AM
Re: moving all printer queues from one server to another
Also the /etc/lp/interface/QUE file (like for port number other than 9100)
This is the reason why I rather copy it and thus make sure I use the exact same config and exactly the same model files...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2006 05:44 AM
тАО04-04-2006 05:44 AM
Re: moving all printer queues from one server to another
UNIX because I majored in cryptology...