Operating System - HP-UX
1835228 Members
8345 Online
110078 Solutions
New Discussion

Re: Swinstall command line

 

Swinstall command line

Hi, trying to install items like java1.4 & unzip on 20+ boxes. Trying to use command line rather than TUI so it can be scripted. If I use "swinstall -x patch_match_target=true -s /tmp/file.depot" then nothing selected so therefore fails. Every other combinations invokes TUI. Software will install as passes analysis no problem. depot is registered.

Having the same problem with a patch bundle. Any ideas?
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: Swinstall command line

Chris,

swinstall -x autoreboot=true -x patch_match_target=true -s /full_path_name_to_depot

should work.


Pete

Pete
Sanjay Kumar Suri
Honored Contributor

Re: Swinstall command line

Try the other way:

swinstall -s /tmp/file.depot -x patch_match_target=true

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.

Re: Swinstall command line

Sorry guys, but the patch_match_target =true doesn't select the software.

Infact, just found the answer myself.

if you do a swinstall -x patch_match_target=false -s /tmp/file.dept \*

Note the space between the path and the escaped splat - it's vital

Thanks for the help though.
Geoff Wild
Honored Contributor

Re: Swinstall command line

I do it like this:

swinstall -x autoreboot=true -x mount_all_filesystems=false -s sha1:/var/software/CFG2HTML-HP \* @ `uname -n`

NOTE: sha1 is a software depot server....if local, then just the path....

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.