<?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: HP-UX Jetadmin in Batch mode in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983208#M122491</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think you can't use a file under jetadmin.&lt;BR /&gt;But you can prepare a answers file for jetadmin :&lt;BR /&gt;&lt;BR /&gt;File LIST looks like :&lt;BR /&gt;IP1:NAME1&lt;BR /&gt;IP2:NAME2&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Then in a script :&lt;BR /&gt;&lt;BR /&gt;# Prepare the file&lt;BR /&gt;echo "1" &amp;gt; jetadmin_global&lt;BR /&gt;cat LIST | while read LINE&lt;BR /&gt;do&lt;BR /&gt;  IP=`echo $LINE | cut -d: -f1`&lt;BR /&gt;  NAME=`echo $LINE | cut -d: -f2`&lt;BR /&gt;  cat &amp;lt;&amp;lt;-% &amp;gt;&amp;gt; jetadmin_global&lt;BR /&gt;      3&lt;BR /&gt;      $IP&lt;BR /&gt;      1&lt;BR /&gt;      $NAME            &lt;BR /&gt;      5&lt;BR /&gt;      q&lt;BR /&gt;      0&lt;BR /&gt;      y&lt;BR /&gt;      %&lt;BR /&gt;  fi&lt;BR /&gt;done&lt;BR /&gt;echo "q" &amp;gt;&amp;gt; jetadmin_global&lt;BR /&gt;echo "q" &amp;gt;&amp;gt; jetadmin_global&lt;BR /&gt; &lt;BR /&gt;# Creation des imprimantes&lt;BR /&gt;/opt/hpnp/bin/jetadmin &amp;lt; jetadmin_global &amp;gt; jetadmin_global.log&lt;BR /&gt;lpsched&lt;BR /&gt;lpstat -a&lt;BR /&gt;&lt;BR /&gt;It should work.&lt;BR /&gt;&lt;BR /&gt;The other way is to save the spooler on the first server :&lt;BR /&gt;# /usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp&lt;BR /&gt;Transfert the directory /var/sam/lp on the other server :&lt;BR /&gt;# tar cf - /var/sam/lp | rexec server2 "tar xvf -"&lt;BR /&gt;&lt;BR /&gt;Then on the server 2, restore the spooler :&lt;BR /&gt;# /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Fr??d??ric&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 28 May 2003 12:45:53 GMT</pubDate>
    <dc:creator>Frederic Sevestre</dc:creator>
    <dc:date>2003-05-28T12:45:53Z</dc:date>
    <item>
      <title>HP-UX Jetadmin in Batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983206#M122489</link>
      <description>Hello,&lt;BR /&gt;I've the problems to generate printer queue on a new HP-UX servers from an existing one with jetadmin. Modelscripts are available /etc/hosts is prepared. Can I use jetadmin 11D621 in batch or script mode ? The steps in illustration attachment should go automatically</description>
      <pubDate>Wed, 28 May 2003 11:14:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983206#M122489</guid>
      <dc:creator>Thomas Bahr</dc:creator>
      <dc:date>2003-05-28T11:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX Jetadmin in Batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983207#M122490</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think you can't use a file under jetadmin.&lt;BR /&gt;But you can prepare a answers file for jetadmin :&lt;BR /&gt;&lt;BR /&gt;File LIST looks like :&lt;BR /&gt;IP1:NAME1&lt;BR /&gt;IP2:NAME2&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Then in a script :&lt;BR /&gt;&lt;BR /&gt;# Prepare the file&lt;BR /&gt;echo "1" &amp;gt; jetadmin_global&lt;BR /&gt;cat LIST | while read LINE&lt;BR /&gt;do&lt;BR /&gt;  IP=`echo $LINE | cut -d: -f1`&lt;BR /&gt;  NAME=`echo $LINE | cut -d: -f2`&lt;BR /&gt;  cat &amp;lt;&amp;lt;-% &amp;gt;&amp;gt; jetadmin_global&lt;BR /&gt;      3&lt;BR /&gt;      $IP&lt;BR /&gt;      1&lt;BR /&gt;      $NAME            &lt;BR /&gt;      5&lt;BR /&gt;      q&lt;BR /&gt;      0&lt;BR /&gt;      y&lt;BR /&gt;      %&lt;BR /&gt;  fi&lt;BR /&gt;done&lt;BR /&gt;echo "q" &amp;gt;&amp;gt; jetadmin_global&lt;BR /&gt;echo "q" &amp;gt;&amp;gt; jetadmin_global&lt;BR /&gt; &lt;BR /&gt;# Creation des imprimantes&lt;BR /&gt;/opt/hpnp/bin/jetadmin &amp;lt; jetadmin_global &amp;gt; jetadmin_global.log&lt;BR /&gt;lpsched&lt;BR /&gt;lpstat -a&lt;BR /&gt;&lt;BR /&gt;It should work.&lt;BR /&gt;&lt;BR /&gt;The other way is to save the spooler on the first server :&lt;BR /&gt;# /usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp&lt;BR /&gt;Transfert the directory /var/sam/lp on the other server :&lt;BR /&gt;# tar cf - /var/sam/lp | rexec server2 "tar xvf -"&lt;BR /&gt;&lt;BR /&gt;Then on the server 2, restore the spooler :&lt;BR /&gt;# /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Fr??d??ric&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 May 2003 12:44:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983207#M122490</guid>
      <dc:creator>Frederic Sevestre</dc:creator>
      <dc:date>2003-05-28T12:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX Jetadmin in Batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983208#M122491</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think you can't use a file under jetadmin.&lt;BR /&gt;But you can prepare a answers file for jetadmin :&lt;BR /&gt;&lt;BR /&gt;File LIST looks like :&lt;BR /&gt;IP1:NAME1&lt;BR /&gt;IP2:NAME2&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Then in a script :&lt;BR /&gt;&lt;BR /&gt;# Prepare the file&lt;BR /&gt;echo "1" &amp;gt; jetadmin_global&lt;BR /&gt;cat LIST | while read LINE&lt;BR /&gt;do&lt;BR /&gt;  IP=`echo $LINE | cut -d: -f1`&lt;BR /&gt;  NAME=`echo $LINE | cut -d: -f2`&lt;BR /&gt;  cat &amp;lt;&amp;lt;-% &amp;gt;&amp;gt; jetadmin_global&lt;BR /&gt;      3&lt;BR /&gt;      $IP&lt;BR /&gt;      1&lt;BR /&gt;      $NAME            &lt;BR /&gt;      5&lt;BR /&gt;      q&lt;BR /&gt;      0&lt;BR /&gt;      y&lt;BR /&gt;      %&lt;BR /&gt;  fi&lt;BR /&gt;done&lt;BR /&gt;echo "q" &amp;gt;&amp;gt; jetadmin_global&lt;BR /&gt;echo "q" &amp;gt;&amp;gt; jetadmin_global&lt;BR /&gt; &lt;BR /&gt;# Creation des imprimantes&lt;BR /&gt;/opt/hpnp/bin/jetadmin &amp;lt; jetadmin_global &amp;gt; jetadmin_global.log&lt;BR /&gt;lpsched&lt;BR /&gt;lpstat -a&lt;BR /&gt;&lt;BR /&gt;It should work.&lt;BR /&gt;&lt;BR /&gt;The other way is to save the spooler on the first server :&lt;BR /&gt;# /usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp&lt;BR /&gt;Transfert the directory /var/sam/lp on the other server :&lt;BR /&gt;# tar cf - /var/sam/lp | rexec server2 "tar xvf -"&lt;BR /&gt;&lt;BR /&gt;Then on the server 2, restore the spooler :&lt;BR /&gt;# /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Fr??d??ric&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 May 2003 12:45:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983208#M122491</guid>
      <dc:creator>Frederic Sevestre</dc:creator>
      <dc:date>2003-05-28T12:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX Jetadmin in Batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983209#M122492</link>
      <description>I suggest dropping jetadmin and using HPPI.&lt;BR /&gt;JetAdmin and WebJetAdmin are now designed for Windows systms and are dogs on unix.&lt;BR /&gt;HPPI works and is easily updated.&lt;BR /&gt;The transder_queues command is excellant in maintaining print queues among multiple systems.&lt;BR /&gt;&lt;BR /&gt;Model scripts under the HP-UX approved JetAdmin did NOT always add-in as expected.&lt;BR /&gt;I have had no problem with HPPI.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Tony&lt;BR /&gt;</description>
      <pubDate>Thu, 29 May 2003 12:58:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983209#M122492</guid>
      <dc:creator>Tony Willis_1</dc:creator>
      <dc:date>2003-05-29T12:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX Jetadmin in Batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983210#M122493</link>
      <description>JetAdmin and HPPI both have the required batch command: &lt;BR /&gt;&lt;BR /&gt;addqueue&lt;BR /&gt;&lt;BR /&gt;Just create a script with the queuename and the host or IP address as in:&lt;BR /&gt;&lt;BR /&gt;/opt/hpnpl/bin/addqueue -q printqueue_name -h hostname&lt;BR /&gt;&lt;BR /&gt;Repeat as needed.  With the (long) obsolete JetAdmin, the path is /opt/hpnp/bin/addqueue. If you need more options, look at multiaddqueue. There are man pages for all the batch commands:&lt;BR /&gt;&lt;BR /&gt;addqueue&lt;BR /&gt;multiaddqueue&lt;BR /&gt;removequeue&lt;BR /&gt;multiremovequeue&lt;BR /&gt;transferqueue&lt;BR /&gt;&lt;BR /&gt;Note that with the batch commends, the printer must be turned on and connected to the LAN so it can be queried as to model number. The printer does not have to be online, just powered up.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 May 2003 13:26:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983210#M122493</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-05-29T13:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX Jetadmin in Batch mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983211#M122494</link>
      <description>Dear all,&lt;BR /&gt;many ThanX for this answers, these are exactly the hints&lt;BR /&gt;I need I will test, if I have further infos I will come back.&lt;BR /&gt;You are TOP ;-)&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jun 2003 09:14:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-jetadmin-in-batch-mode/m-p/2983211#M122494</guid>
      <dc:creator>Thomas Bahr</dc:creator>
      <dc:date>2003-06-02T09:14:38Z</dc:date>
    </item>
  </channel>
</rss>

