<?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: Change the target from command line in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865673#M821561</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The command you are trying to use work for the remote targets, but you are trying to run swinstall on alternate root.  You should:&lt;BR /&gt;&lt;BR /&gt;1. swinstall -x match_target @ target_name (for remote targets)&lt;BR /&gt;2. swinstall &lt;PRODUCT_NAME&gt; @ /home/isswork/nags (for alternate root)&lt;BR /&gt;&lt;BR /&gt;Note that you don't have to specify "-s /var/spool/sw" since SD uses this source by default (unless otherwise specified in /var/adm/sw/defaults)&lt;BR /&gt;&lt;BR /&gt;I hope this helps. Regards,&lt;BR /&gt;Mateja&lt;/PRODUCT_NAME&gt;</description>
    <pubDate>Tue, 17 Dec 2002 14:17:28 GMT</pubDate>
    <dc:creator>Mateja Bezjak</dc:creator>
    <dc:date>2002-12-17T14:17:28Z</dc:date>
    <item>
      <title>Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865663#M821551</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;I am facing a problem with chainging the target while installing using "swinstall". It works with the GUI in Actions-&amp;gt;Change Target. &lt;BR /&gt;Also, through GUI the SW_ROOT_DIRECTORY environment variable gives the changed target. This could be used in postinstall scripts or so. &lt;BR /&gt;&lt;BR /&gt;I want to perform same thing through command line. I tried -r and other options. Facing problems. &lt;BR /&gt;&lt;BR /&gt;Please help. &lt;BR /&gt;Note: I am on HP-UX 11.00.</description>
      <pubDate>Tue, 17 Dec 2002 13:00:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865663#M821551</guid>
      <dc:creator>Nagendar</dc:creator>
      <dc:date>2002-12-17T13:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865664#M821552</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How about&lt;BR /&gt;&lt;BR /&gt;# swinstall -s /target_dir/target.depot&lt;BR /&gt;&lt;BR /&gt;Hope it helps,&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Tue, 17 Dec 2002 13:07:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865664#M821552</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2002-12-17T13:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865665#M821553</link>
      <description>Hi Robert, &lt;BR /&gt;&lt;BR /&gt;No.. that is for source selection. Not the target. Thanks anyway.&lt;BR /&gt;&lt;BR /&gt;Expecting a working solution eagerly. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Nagendar</description>
      <pubDate>Tue, 17 Dec 2002 13:12:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865665#M821553</guid>
      <dc:creator>Nagendar</dc:creator>
      <dc:date>2002-12-17T13:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865666#M821554</link>
      <description>I'm not sure I understand fully what you're trying to do here but I would try using the @ at the end of you rcommand line to specify the target selection.  And in your target selection you can even specify a host if you want. &lt;BR /&gt;</description>
      <pubDate>Tue, 17 Dec 2002 13:19:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865666#M821554</guid>
      <dc:creator>Marco Santerre</dc:creator>
      <dc:date>2002-12-17T13:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865667#M821555</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Could you pls post an example of the command you're trying to execute? Especially when you specify the -r option.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Vincent</description>
      <pubDate>Tue, 17 Dec 2002 13:27:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865667#M821555</guid>
      <dc:creator>Vincent Stedema</dc:creator>
      <dc:date>2002-12-17T13:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865668#M821556</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;When I tried to use @ at the end of the command to specify target(Hers is the command: swinstall -x match_target=true -s /var/spool/sw/ @ /home/isswork/nags), &lt;BR /&gt;&lt;BR /&gt;I get the following error. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;=======  12/17/02 17:10:22 MST  BEGIN swinstall SESSION&lt;BR /&gt;         (non-interactive)&lt;BR /&gt;&lt;BR /&gt;       * Session started for user "root@lothar".&lt;BR /&gt;&lt;BR /&gt;       * Beginning Selection&lt;BR /&gt;       * "lothar:/home/isswork/nags":  This target does not exist and&lt;BR /&gt;         will be created.&lt;BR /&gt;       * Source connection succeeded for "lothar:/var/spool/sw/".&lt;BR /&gt;ERROR:   Could not access remote file "GLOBAL_INDEX" in software item&lt;BR /&gt;         "".  The file could not be found on the remote system.&lt;BR /&gt;ERROR:   There is currently no installed software on host "lothar" at&lt;BR /&gt;         location "/home/isswork/nags".  (Note that you need to use&lt;BR /&gt;         "swcopy" to manage depot software).&lt;BR /&gt;       * Source selection failed for "lothar:/home/isswork/nags".&lt;BR /&gt;ERROR:   Error code -1 returned from procedure IC_TargetSoftwareGet().&lt;BR /&gt;NOTE:    Cannot continue the "swinstall" task.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Dec 2002 13:34:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865668#M821556</guid>
      <dc:creator>Nagendar</dc:creator>
      <dc:date>2002-12-17T13:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865669#M821557</link>
      <description>Hi Vincent, &lt;BR /&gt;&lt;BR /&gt;Here is what I tried with -r option and the error I get. &lt;BR /&gt;&lt;BR /&gt;I wish this helps you to point out the error. &lt;BR /&gt;&lt;BR /&gt;Thanks, &lt;BR /&gt;Nagendar&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;# swinstall -x match_target=true  -s /var/spool/sw/ -r /home/isswork/nags&lt;BR /&gt;&lt;BR /&gt;=======  12/17/02 17:13:56 MST  BEGIN swinstall SESSION&lt;BR /&gt;         (non-interactive)&lt;BR /&gt;&lt;BR /&gt;       * Session started for user "root@lothar".&lt;BR /&gt;&lt;BR /&gt;       * Beginning Selection&lt;BR /&gt;       * "lothar:/export/shared_roots/OS_700":  This target does not&lt;BR /&gt;         exist and will be created.&lt;BR /&gt;       * Source connection succeeded for "lothar:/var/spool/sw/".&lt;BR /&gt;ERROR:   Could not apply the software selection "/home/isswork/nags";&lt;BR /&gt;         it is not available from depot or root&lt;BR /&gt;         "lothar:/var/spool/sw/".&lt;BR /&gt;       * Software selection failed for "lothar:/var/spool/sw/".&lt;BR /&gt;ERROR:   Could not access remote file "GLOBAL_INDEX" in software item&lt;BR /&gt;         "".  The file could not be found on the remote system.&lt;BR /&gt;ERROR:   There is currently no installed software on host "lothar" at&lt;BR /&gt;         location "/export/shared_roots/OS_700".  (Note that you need&lt;BR /&gt;         to use "swcopy" to manage depot software).&lt;BR /&gt;       * Source selection failed for&lt;BR /&gt;         "lothar:/export/shared_roots/OS_700".&lt;BR /&gt;ERROR:   Error code -1 returned from procedure IC_TargetSoftwareGet().&lt;BR /&gt;ERROR:   No software has been selected.&lt;BR /&gt;NOTE:    Cannot continue the "swinstall" task.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Dec 2002 13:39:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865669#M821557</guid>
      <dc:creator>Nagendar</dc:creator>
      <dc:date>2002-12-17T13:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865670#M821558</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you leave out -x match_target, the swinstall will work.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mateja</description>
      <pubDate>Tue, 17 Dec 2002 13:42:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865670#M821558</guid>
      <dc:creator>Mateja Bezjak</dc:creator>
      <dc:date>2002-12-17T13:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865671#M821559</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm not sure if this will work, but I think it's the correct syntax:&lt;BR /&gt;&lt;BR /&gt;#swinstall &lt;PRODUCT&gt; -s /var/spool/sw -r @ /home/isswork/nags&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Vincent&lt;BR /&gt;&lt;/PRODUCT&gt;</description>
      <pubDate>Tue, 17 Dec 2002 13:55:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865671#M821559</guid>
      <dc:creator>Vincent Stedema</dc:creator>
      <dc:date>2002-12-17T13:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865672#M821560</link>
      <description>Hi Mateja, &lt;BR /&gt;&lt;BR /&gt;No that option (match_target) is to dosallow the GUI. &lt;BR /&gt;&lt;BR /&gt;Let me simply my question. &lt;BR /&gt;&lt;BR /&gt;I want to change the target while installation through swinstall. &lt;BR /&gt;&lt;BR /&gt;Any help is highly appreciated. &lt;BR /&gt;&lt;BR /&gt;With Best Regards, &lt;BR /&gt;Nagendar</description>
      <pubDate>Tue, 17 Dec 2002 14:00:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865672#M821560</guid>
      <dc:creator>Nagendar</dc:creator>
      <dc:date>2002-12-17T14:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865673#M821561</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The command you are trying to use work for the remote targets, but you are trying to run swinstall on alternate root.  You should:&lt;BR /&gt;&lt;BR /&gt;1. swinstall -x match_target @ target_name (for remote targets)&lt;BR /&gt;2. swinstall &lt;PRODUCT_NAME&gt; @ /home/isswork/nags (for alternate root)&lt;BR /&gt;&lt;BR /&gt;Note that you don't have to specify "-s /var/spool/sw" since SD uses this source by default (unless otherwise specified in /var/adm/sw/defaults)&lt;BR /&gt;&lt;BR /&gt;I hope this helps. Regards,&lt;BR /&gt;Mateja&lt;/PRODUCT_NAME&gt;</description>
      <pubDate>Tue, 17 Dec 2002 14:17:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865673#M821561</guid>
      <dc:creator>Mateja Bezjak</dc:creator>
      <dc:date>2002-12-17T14:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865674#M821562</link>
      <description>Hi Mateja, &lt;BR /&gt;&lt;BR /&gt;Thanks alot! That cleared all the doubts. &lt;BR /&gt;I am facing one more problem. &lt;BR /&gt;&lt;BR /&gt;If I try to execute my request script, &lt;BR /&gt;&lt;BR /&gt;I get following error:&lt;BR /&gt;&lt;BR /&gt;# swinstall -x ask=true IFS @ /home/isswork/nags&lt;BR /&gt;&lt;BR /&gt;=======  12/18/02 11:18:49 MST  BEGIN swinstall SESSION&lt;BR /&gt;         (non-interactive)&lt;BR /&gt;&lt;BR /&gt;       * Session started for user "root@lothar".&lt;BR /&gt;&lt;BR /&gt;       * Beginning Selection&lt;BR /&gt;       * "lothar:/home/isswork/nags":  This target does not exist and&lt;BR /&gt;         will be created.&lt;BR /&gt;       * Source connection succeeded for "lothar:/var/spool/sw".&lt;BR /&gt;       * Software bin has a "request" script. It will be executed and&lt;BR /&gt;         corresponding "response" file will be generated.&lt;BR /&gt;&lt;BR /&gt;Inside request script ... ... ...&lt;BR /&gt;Please enter the name&lt;BR /&gt;test&lt;BR /&gt;test&lt;BR /&gt;       * Ask task succeeded.&lt;BR /&gt;&lt;BR /&gt;       * Source:                 /var/spool/sw&lt;BR /&gt;       * Targets:                lothar:/home/isswork/nags&lt;BR /&gt;       * Software selections:&lt;BR /&gt;             IFS.bin&lt;BR /&gt;             IFS.library&lt;BR /&gt;       * Selection succeeded.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;       * Beginning Analysis&lt;BR /&gt;       * Session selections have been saved in the file&lt;BR /&gt;         "/var/adm/sw/sessions/swinstall.last".&lt;BR /&gt;ERROR:   Could not access remote file "GLOBAL_INDEX" in software item&lt;BR /&gt;         "".  The file could not be found on the remote system.&lt;BR /&gt;ERROR:   There is currently no installed software on host "lothar" at&lt;BR /&gt;         location "/home/isswork/nags".  (Note that you need to use&lt;BR /&gt;         "swcopy" to manage depot software).&lt;BR /&gt;       * Analysis had errors.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE:    More information may be found in the agent logfile (location&lt;BR /&gt;         is lothar:/home/isswork/nags/var/adm/sw/swagent.log).&lt;BR /&gt;&lt;BR /&gt;=======  12/18/02 11:18:57 MST  END swinstall SESSION (non-interactive)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;===============================================&lt;BR /&gt;&lt;BR /&gt;The script is a simple shell script, it just reads a variable. Any pointers? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Dec 2002 07:46:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865674#M821562</guid>
      <dc:creator>Nagendar</dc:creator>
      <dc:date>2002-12-18T07:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change the target from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865675#M821563</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This operation fails, because swinstall is looking for the INDEX file in /home/isswork/nags/var/adm/sw/products/INDEX.  But INDEX doesn't exist.  You could run the same command without "-x ask=true" first to install the product (this will create an INDEX file at the above mentioned location) and then rerun swinstall:&lt;BR /&gt;swinstall -x reinstall=true -x ask=true IFS @ /home/isswork/nags&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mateja</description>
      <pubDate>Thu, 19 Dec 2002 08:33:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-the-target-from-command-line/m-p/2865675#M821563</guid>
      <dc:creator>Mateja Bezjak</dc:creator>
      <dc:date>2002-12-19T08:33:48Z</dc:date>
    </item>
  </channel>
</rss>

