- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lpmgr exit values
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
тАО01-14-2009 01:15 PM
тАО01-14-2009 01:15 PM
I am trying to copy the printer configuration from one server and copy to another
Here are some logs from the samlog
when i run lpmgr -S
Snapshot successfully created.
@!@2@1231635688@0
lpmgr done, exit value is 4.
and
when i run lpmgr -S -xsavedir=/var/sam/lp
Snapshot successfully created.
@!@2@1231962273@0
lpmgr done, exit value is 0.
Why do i get different exit values when both commands are successfull
Thanks for your answers
Sunny
Solved! Go to Solution.
- Tags:
- lpmgr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 01:25 PM
тАО01-14-2009 01:25 PM
SolutionOn the other hand, if you are really really curious, you can just edit the lpmgr script and try to figure it out on your own. It is quite messy but not rocket science after all. Script location is /usr/sam/lbin/lpmgr in case you need
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 01:53 PM
тАО01-14-2009 01:53 PM
Re: lpmgr exit values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 02:05 PM
тАО01-14-2009 02:05 PM
Re: lpmgr exit values
I couldn't find any link of exit value 4 and COM_RC_FAILED in the lpmgr script
Could you please paste a reference for me.
However, even if i get a exit value as 4 the log says that the snapshot was successfully created
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 02:17 PM
тАО01-14-2009 02:17 PM
Re: lpmgr exit values
There is a comment:
RETURN VALUES (see sam_utils and lp_utils)
(I couldn't find lp_utils.)
>even if i get a exit value as 4 the log says that the snapshot was successfully created
Someone is lying to you. :-) You need to make a copy of lpmgr and add "set -x" then see where it is failing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 02:40 PM
тАО01-14-2009 02:40 PM
Re: lpmgr exit values
I would prefer the command
lpmgr -S -xsavedir=/var/sam/lp
which gives me exit value as 0