<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: lpmgr exit values in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150628#M454652</link>
    <description>&amp;gt;I couldn't find any link of exit value 4 and COM_RC_FAILED in the lpmgr script&lt;BR /&gt;&lt;BR /&gt;There is a comment:&lt;BR /&gt;RETURN VALUES (see sam_utils and lp_utils)&lt;BR /&gt;(I couldn't find lp_utils.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;even if i get a exit value as 4 the log says that the snapshot was successfully created&lt;BR /&gt;&lt;BR /&gt;Someone is lying to you.  :-)  You need to make a copy of lpmgr and add "set -x" then see where it is failing.</description>
    <pubDate>Wed, 14 Jan 2009 22:17:56 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-01-14T22:17:56Z</dc:date>
    <item>
      <title>lpmgr exit values</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150624#M454648</link>
      <description>Hell All,&lt;BR /&gt;&lt;BR /&gt;I am trying to copy the printer configuration from one server and copy to another&lt;BR /&gt;&lt;BR /&gt;Here are some logs from the samlog&lt;BR /&gt;&lt;BR /&gt;when i run lpmgr -S&lt;BR /&gt;&lt;BR /&gt;Snapshot successfully created.&lt;BR /&gt;@!@2@1231635688@0&lt;BR /&gt;lpmgr done, exit value is 4.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;when i run lpmgr -S -xsavedir=/var/sam/lp&lt;BR /&gt;&lt;BR /&gt;Snapshot successfully created.&lt;BR /&gt;@!@2@1231962273@0&lt;BR /&gt;lpmgr done, exit value is 0.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why do i get different exit values when both commands are successfull&lt;BR /&gt;&lt;BR /&gt;Thanks for your answers&lt;BR /&gt;&lt;BR /&gt;Sunny</description>
      <pubDate>Wed, 14 Jan 2009 21:15:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150624#M454648</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-01-14T21:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: lpmgr exit values</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150625#M454649</link>
      <description>This application is actually only for consumption by sam, not from the command line by itself. So the exit codes only have meaning to sam. What seem to be a unsuccessful exit code (like 4) may not be a indication of a problem at all but just a mere pointer to something mundane like the size of an export file or similar (I am making this up, so don't take it literally) &lt;BR /&gt;&lt;BR /&gt;On 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&lt;BR /&gt;&lt;BR /&gt;Hope this helps</description>
      <pubDate>Wed, 14 Jan 2009 21:25:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150625#M454649</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-01-14T21:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: lpmgr exit values</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150626#M454650</link>
      <description>Looking at lpmgr as Mel suggests shows that you have a failure.  4 is COM_RC_FAILED.</description>
      <pubDate>Wed, 14 Jan 2009 21:53:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150626#M454650</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-14T21:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: lpmgr exit values</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150627#M454651</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I couldn't find any link of exit value 4 and COM_RC_FAILED in the lpmgr script&lt;BR /&gt;&lt;BR /&gt;Could you please paste a reference for me.&lt;BR /&gt;&lt;BR /&gt;However, even if i get a exit value as 4 the log says that the snapshot was successfully created&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Jan 2009 22:05:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150627#M454651</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-01-14T22:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: lpmgr exit values</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150628#M454652</link>
      <description>&amp;gt;I couldn't find any link of exit value 4 and COM_RC_FAILED in the lpmgr script&lt;BR /&gt;&lt;BR /&gt;There is a comment:&lt;BR /&gt;RETURN VALUES (see sam_utils and lp_utils)&lt;BR /&gt;(I couldn't find lp_utils.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;even if i get a exit value as 4 the log says that the snapshot was successfully created&lt;BR /&gt;&lt;BR /&gt;Someone is lying to you.  :-)  You need to make a copy of lpmgr and add "set -x" then see where it is failing.</description>
      <pubDate>Wed, 14 Jan 2009 22:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150628#M454652</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-14T22:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: lpmgr exit values</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150629#M454653</link>
      <description>Thanks for the clarification&lt;BR /&gt;&lt;BR /&gt;I would prefer the command&lt;BR /&gt;&lt;BR /&gt;lpmgr -S -xsavedir=/var/sam/lp&lt;BR /&gt;&lt;BR /&gt;which gives me exit value as 0&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Jan 2009 22:40:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpmgr-exit-values/m-p/5150629#M454653</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-01-14T22:40:10Z</dc:date>
    </item>
  </channel>
</rss>

