Operating System - HP-UX
1833040 Members
2466 Online
110049 Solutions
New Discussion

changing target with swinstall

 
SOLVED
Go to solution
Catherine Forget
Frequent Advisor

changing target with swinstall

Hi,
I need to push an installation to my w/s' but the install has to be done in the target /local. I tried with the @ /local at the end (/usr/sbin/swinstall -x autoreboot=true -x patch_match_target=true -s wcalqa1z:/var/spool/sw/11.11/java1.5 java15 @ /local) but it does not work.
Anyone has an idea?
6 REPLIES 6
Jozef_Novak
Respected Contributor

Re: changing target with swinstall

Hello Catherine,

if you are running swinstall from the w/s, just leave the target portion empty. The software will be installed from the remote system into its location on the local system.

e.g.

#/usr/sbin/swinstall -x autoreboot=true -x patch_match_target=true -s wcalqa1z:/var/spool/sw/11.11/java1.5 java15

J.
Catherine Forget
Frequent Advisor

Re: changing target with swinstall

I can't leave it install in / (target) because it will go in /opt and there is not enought space in /opt. I just have 35 w/s having the space problem and do not have time to reload them all. There is no online JFS so I can't reduce (unless you know another commande besides fsadm to adjust file systems.
Thanks
Jozef_Novak
Respected Contributor

Re: changing target with swinstall

Hello Catherine,

okay so then you may try to specify the target location as @ localhost:/local as suggested by the man pages. However I am not sure about the functionality of the software when it is installed outside of its default location.

If I understood you correctly, you are not able to extend /opt due to lack of diskspace in the vg00, right ?

J.
Sagar Sirdesai
Trusted Contributor
Solution

Re: changing target with swinstall

Hi
Use the below command
/usr/sbin/swinstall -x autoreboot=true -x patch_match_target=true -s wcalqa1z:/var/spool/sw/11.11/java1.5 java15,l=/local

This will install it in /local and not in /opt.

Sagar

Catherine Forget
Frequent Advisor

Re: changing target with swinstall

Hi,
Sagar, your solution worked. many thanks.
Jozef : hello, don't know why but I got the following errors:
ERROR: There is currently no installed software on host "localhost"
at location "/local". (Note that you need to use "swcopy" to
manage depot software).
* Source selection failed for "localhost:/local".
ERROR: Error code -1 returned from procedure CLUI_PatchMatchTarget().
ERROR: No software has been selected.
Do not worry about it. I am closing the thread now. Thanks again
Catherine Forget
Frequent Advisor

Re: changing target with swinstall

Just a comment, when we close the thread, it should assign the points given automatically...