<?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 Change printer destinations? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/change-printer-destinations/m-p/2966553#M119528</link>
    <description>I have a load of 'remote' printers defined, where the remote hosts are given as IP addresses.  I want to change the remote host name to a name, resolved using /etc/hosts, so that when we move the printserver, I don't have to redefine all the printers.&lt;BR /&gt;&lt;BR /&gt;I thought I could do this with lpadmin:&lt;BR /&gt;lpadmin -pPRINTER1 -ormPRINTHOST&lt;BR /&gt;and although it succeeded (or did not report an error), SAM still says my printer is on xx.xx.xx.xx, not on PRINTHOST.&lt;BR /&gt;&lt;BR /&gt;How can I do this without having to delete and reenter all the printers using SAM?&lt;BR /&gt;&lt;BR /&gt;So this is really an lpadmin question, I think, unless there is a file I can edit.</description>
    <pubDate>Tue, 06 May 2003 12:41:31 GMT</pubDate>
    <dc:creator>Martin Robinson</dc:creator>
    <dc:date>2003-05-06T12:41:31Z</dc:date>
    <item>
      <title>Change printer destinations?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-printer-destinations/m-p/2966553#M119528</link>
      <description>I have a load of 'remote' printers defined, where the remote hosts are given as IP addresses.  I want to change the remote host name to a name, resolved using /etc/hosts, so that when we move the printserver, I don't have to redefine all the printers.&lt;BR /&gt;&lt;BR /&gt;I thought I could do this with lpadmin:&lt;BR /&gt;lpadmin -pPRINTER1 -ormPRINTHOST&lt;BR /&gt;and although it succeeded (or did not report an error), SAM still says my printer is on xx.xx.xx.xx, not on PRINTHOST.&lt;BR /&gt;&lt;BR /&gt;How can I do this without having to delete and reenter all the printers using SAM?&lt;BR /&gt;&lt;BR /&gt;So this is really an lpadmin question, I think, unless there is a file I can edit.</description>
      <pubDate>Tue, 06 May 2003 12:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-printer-destinations/m-p/2966553#M119528</guid>
      <dc:creator>Martin Robinson</dc:creator>
      <dc:date>2003-05-06T12:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change printer destinations?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-printer-destinations/m-p/2966554#M119529</link>
      <description>Simlpy edit the config file for each in;&lt;BR /&gt;&lt;BR /&gt;/var/spool/lp/interface/&lt;QUEUENAME&gt;&lt;BR /&gt;&lt;BR /&gt;Each one has the line;&lt;BR /&gt;&lt;BR /&gt;PERIPH=&lt;IP address=""&gt;&lt;BR /&gt;&lt;BR /&gt;Simply modify it, stop and start lp and youre done. Easy to do with a script if you have tons of printers (use sed).&lt;BR /&gt;&lt;/IP&gt;&lt;/QUEUENAME&gt;</description>
      <pubDate>Tue, 06 May 2003 12:48:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-printer-destinations/m-p/2966554#M119529</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-05-06T12:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change printer destinations?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-printer-destinations/m-p/2966555#M119530</link>
      <description>Stefan is correct.  Just to add a small note, you can use the hostname in the "PERIPH=" line instead of the IP address.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 06 May 2003 12:54:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-printer-destinations/m-p/2966555#M119530</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2003-05-06T12:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change printer destinations?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-printer-destinations/m-p/2966556#M119531</link>
      <description>Sorry, guys, this a REMOTE printer not NETWORK.</description>
      <pubDate>Tue, 06 May 2003 13:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-printer-destinations/m-p/2966556#M119531</guid>
      <dc:creator>Martin Robinson</dc:creator>
      <dc:date>2003-05-06T13:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change printer destinations?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-printer-destinations/m-p/2966557#M119532</link>
      <description>I very seldom use SAM for printers but this should work:&lt;BR /&gt;&lt;BR /&gt;I. SAM -&amp;gt; Printers and Plotters -&amp;gt; LP Spooler -&amp;gt; Save / Restore Spooler Configuration -&amp;gt; Actions -&amp;gt; Save Spooler Configuration&lt;BR /&gt;&lt;BR /&gt;2. Exit SAM&lt;BR /&gt;&lt;BR /&gt;C. cd /var/sam/lp&lt;BR /&gt;   edit the file, lpinfo, and make any changes to the remote printer lines that you like and save the file.&lt;BR /&gt;&lt;BR /&gt;IV. SAM -&amp;gt; Printers and Plotters -&amp;gt; LP Spooler -&amp;gt; Save / Restore Spooler Configuration -&amp;gt; Actions -&amp;gt; Restore Spooler Configuration&lt;BR /&gt;&lt;BR /&gt;----------------------------&lt;BR /&gt;&lt;BR /&gt;The actual lp data is stored in /var/spool/lp/pstatus but it's a binary file so that editing would require C or Perl.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 May 2003 17:52:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-printer-destinations/m-p/2966557#M119532</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-05-06T17:52:28Z</dc:date>
    </item>
  </channel>
</rss>

