<?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 Cant add a remote printer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-add-a-remote-printer/m-p/2853230#M826053</link>
    <description>I am trying to add a remote printer using SAM but it keeps saying the printer already exists on my server which it doesnt, why would this happen ?</description>
    <pubDate>Wed, 27 Nov 2002 11:51:25 GMT</pubDate>
    <dc:creator>Scott Dunkley</dc:creator>
    <dc:date>2002-11-27T11:51:25Z</dc:date>
    <item>
      <title>Cant add a remote printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-add-a-remote-printer/m-p/2853230#M826053</link>
      <description>I am trying to add a remote printer using SAM but it keeps saying the printer already exists on my server which it doesnt, why would this happen ?</description>
      <pubDate>Wed, 27 Nov 2002 11:51:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-add-a-remote-printer/m-p/2853230#M826053</guid>
      <dc:creator>Scott Dunkley</dc:creator>
      <dc:date>2002-11-27T11:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cant add a remote printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-add-a-remote-printer/m-p/2853231#M826054</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I bet part of it does&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do&lt;BR /&gt;lpadmin -xprinter&lt;BR /&gt;&lt;BR /&gt;On the command line and try again&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Steve Steel&lt;BR /&gt;&lt;BR /&gt;Do not meddle in the affairs of Unix, for it is subtle and quick to core dump.</description>
      <pubDate>Wed, 27 Nov 2002 12:01:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-add-a-remote-printer/m-p/2853231#M826054</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-11-27T12:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cant add a remote printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-add-a-remote-printer/m-p/2853232#M826055</link>
      <description>HPUX 11.x&lt;BR /&gt;&lt;BR /&gt;Recent changes to the SAM lpmgr script use the return code from the&lt;BR /&gt;lpstat command to determine if a printer exists or not (a non-zero&lt;BR /&gt;return code should say that the printer does not exist).&lt;BR /&gt;&lt;BR /&gt;However lpstat under some circumstances unconditionally returns a&lt;BR /&gt;zero return code no matter what the printer name:&lt;BR /&gt;&lt;BR /&gt;# lpstat lp ; print $?&lt;BR /&gt;lpstat: "lp" not a request id or a destination&lt;BR /&gt;0&lt;BR /&gt;&lt;BR /&gt;In this case the exit status of lpstat should be "1" not "0".&lt;BR /&gt;&lt;BR /&gt;This only happens on both HP-UX 11.0 and 11i version 1.&lt;BR /&gt;&lt;BR /&gt;The problem only occurs when the directory /var/opt/pd/pdclientd exists.&lt;BR /&gt;This directory gets created when HPDPS is configured to start and run. If you&lt;BR /&gt;stop HPDPS, disable HPDPS from running, and then remove the directory the&lt;BR /&gt;problem stops happening (lpstat returns a "1" for the exit status).&lt;BR /&gt;Stopping HPDPS and then disabling it from restarting at the next reboot&lt;BR /&gt;prevents the problem from reoccuring.&lt;BR /&gt;&lt;BR /&gt;This is a known problem with SAM and lpstat.&lt;BR /&gt;&lt;BR /&gt;A workaround has been identified that allows SAM to work properly&lt;BR /&gt;if HPDPS is activated.  Both remote and local printers can be added&lt;BR /&gt;and removed by SAM after the following change is made to the&lt;BR /&gt;/usr/sam/lbin/lpmgr script:&lt;BR /&gt;&lt;BR /&gt;To change /usr/sam/lbin/lpmgr:&lt;BR /&gt;# cd /usr/sam/lbin&lt;BR /&gt;# cp -p lpmgr lpmgr.orig&lt;BR /&gt;# vi lpmgr&lt;BR /&gt;[Locate the function does_printer_exist on line 2462.]&lt;BR /&gt;[Change the if statement on line 2464 from:]&lt;BR /&gt;replace:&lt;BR /&gt;    if lpstat $1 &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;with:&lt;BR /&gt;    if lpstat -p$1 2&amp;gt;&amp;amp;1 | grep -v non-existent &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;To turn off HPDPS, turn off the startup script for the pdclientd in&lt;BR /&gt;/etc/rc.config.d/pd  PD_CLIENT=1  (change this to 0)&lt;BR /&gt;&lt;BR /&gt;Also check that these are commented out:&lt;BR /&gt;&lt;BR /&gt;PD_SPOOLERS="&lt;BR /&gt;"&lt;BR /&gt;PD_SUPERVISORS="&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;NOTES: 1.) As these parameters (PD_SPOOLERS and PD_SUPERVISORS)&lt;BR /&gt;have a second line, be sure to also comment out the second line below each&lt;BR /&gt;parameter (one double quote mark.) 2.)For additional help with disabling HPDPS,&lt;BR /&gt;see Doc ID: KBRC00001378 DPS ("How to delete the current configuration and start&lt;BR /&gt;over")&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Nov 2002 12:02:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-add-a-remote-printer/m-p/2853232#M826055</guid>
      <dc:creator>Armin Feller</dc:creator>
      <dc:date>2002-11-27T12:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cant add a remote printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cant-add-a-remote-printer/m-p/2853233#M826056</link>
      <description>The problem should be fixed with following patches:&lt;BR /&gt;&lt;BR /&gt;PHCO_27020 s700_800 11.11 lpspool subsystem cumulative patch     &lt;BR /&gt;PHCO_27132 s700_800 11.00 lpspool subsystem cumulative patch &lt;BR /&gt;&lt;BR /&gt;You can download them by:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://europe-ffs.external.hp.com" target="_blank"&gt;ftp://europe-ffs.external.hp.com&lt;/A&gt;&lt;BR /&gt;--&amp;gt; hp-ux_patches&lt;BR /&gt;--&amp;gt; s700_800&lt;BR /&gt;--&amp;gt; 11.X&lt;BR /&gt;&lt;BR /&gt;You have to unwrapp the patch after downloading using 'sh' and then install the .depot file using swinstall.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Armin</description>
      <pubDate>Wed, 27 Nov 2002 12:10:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cant-add-a-remote-printer/m-p/2853233#M826056</guid>
      <dc:creator>Armin Feller</dc:creator>
      <dc:date>2002-11-27T12:10:09Z</dc:date>
    </item>
  </channel>
</rss>

