1825749 Members
2430 Online
109687 Solutions
New Discussion

Re: Automatic swinstall

 
Craig A. Sharp
Super Advisor

Automatic swinstall

How can I get swinstall to run in an automatic mode? I have a depot with only two things in it and both need to be installed. Is there a way that I can do this for my Jr. SA's? I dont want them to have interaction with swinstall.

Thanks,

Craig
5 REPLIES 5
Anshumali
Esteemed Contributor

Re: Automatic swinstall

swinstall -s \*
You may use various options of -x like mount_all_filesystems, auto_reboot

Man swinstall
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
James R. Ferguson
Acclaimed Contributor

Re: Automatic swinstall

Hi Craig:

# swinstall -s /patches/swdepot -x autoreboot=true -x patch_match_target=true

# swinstall -s /tmp/depot \*

Regards!

...JRF...
Craig A. Sharp
Super Advisor

Re: Automatic swinstall

I have tried the swinstall -s from the command line and it still brings up the interface. Is there something that I need to change to get swinstall to run unattended?
Srimalik
Valued Contributor

Re: Automatic swinstall

you need to give the name of package also to start in non-interactive mode.

Say your software location is /tmp/depots
and there is a package called bash in it.

swinstall -s /tmp/depots bash

if you want to install everything use:

swinstall -s /tmp/depot \*
abandon all hope, ye who enter here..
Bob E Campbell
Honored Contributor

Re: Automatic swinstall

The interface will always start if there are any unanswered questions. So:

1. When you build your depot make sure that all dependencies are included

2. If a reboot *might* be required add "-x autoreboot=true"

3. You must specify what is to be installed. "\*" says everything in depot, you can also use a number of other methods to identify bundles or collections.

4. Any other option that you might think is needed (including write_remote_files) starts to get into the big hammer world and should be thought through.