- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- moving lp spooler configuration
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-16-2008 07:47 PM
07-16-2008 07:47 PM
I have a script which saves the the current lp configuration every day, archives the newly saved configuration and scp the .tar file to another standby print server and finally untar the archive over there.
here are my questions
1. the script saves the lp configuration by lpmgr. The directory is default LP_SAVE_DIR=$SAMROOT/var/sam/lp
However, when archiving they are archiving /etc/lp. Isn't this inappropriate. I do not see any link between these 2 directories. For reference i have attached a file with the listing of these 2 directories.
2. Is it necessary to stop the scheduler before we execute lpmgr -S?
3. Is it necessary to run lpmgr -R on standby server to make it operational as primary print server OR just extracting the tar file is OK.
4. If lpmgr -R is to be used which directory should be used /var/sam/lp OR /etc/lp?
These questions have arisen due to some differences in the script i have and the posts i have seen on the forum.
Would appreciate your replies
Thanks
Sunny
Solved! Go to Solution.
- Tags:
- lpmgr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2008 07:50 PM
07-16-2008 07:50 PM
Re: moving lp spooler configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2008 02:36 AM
07-22-2008 02:36 AM
Re: moving lp spooler configuration
Need some help
Can anyone answer my questions..
Thanks in advance
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2008 09:04 AM
07-22-2008 09:04 AM
SolutionInstead of exporting this, you can use:
lpmgr -S (or -R) -xsavedir=dir
>when archiving they are archiving /etc/lp. Isn't this inappropriate.
lpmgr saves files from /etc/lp/ and /var/spool/lp/.
>2. Is it necessary to stop the scheduler before we execute lpmgr -S?
It doesn't seem like it. Only for -R.
>3. Is it necessary to run lpmgr -R on standby server to make it operational
Yes. lpsched doesn't know anything about /var/sam/lp.
>4. If lpmgr -R is to be used which directory should be used /var/sam/lp
The same value as where you saved it.
You could have figured this all out by viewing the sam log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2008 10:47 AM
07-22-2008 10:47 AM
Re: moving lp spooler configuration
2. NO
3. Must run lpmgr -R to execute the recovery (just sticking the files out there does nothing, or even breaks the current config)
4. lpmgr -R /path/where/I/like/it ( must be the path you untar'd stuff to but not /etc/lp/interface )
Example of the backup/restore
lpmgr -S /var/sam/lp
tar cvf /tmp/lp.tar /var/sam/lp
ftp /tmp/lp.tar to new system.
tar xvf /tmp/lp.tar
lpmgr -R /var/sam/lp
Done.. pretty simple.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2008 11:07 AM
07-22-2008 11:07 AM
Re: moving lp spooler configuration
>lpmgr -R /var/sam/lp
Both of these need: -xsavedir=/var/sam/lp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2008 01:43 AM
07-23-2008 01:43 AM
Re: moving lp spooler configuration
lpmgr -S OR lpmgr -R
Withour giving the -xsavedir switch
I guess it will copy the contents of /etc/lp and /var/spool/lp to the default directory; which will be /var/sam/lp
Am i right??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2008 05:33 AM
07-23-2008 05:33 AM
Re: moving lp spooler configuration
>I guess it will copy the contents of /etc/lp and /var/spool/lp to the default directory; which will be /var/sam/lp
(Or look at $LP_SAVE_DIR.) I would assume so but I would need to look at the script again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2008 02:40 PM
07-23-2008 02:40 PM
Re: moving lp spooler configuration
Yes, that's the default.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2008 08:51 AM
07-24-2008 08:51 AM