Operating System - HP-UX
1843946 Members
2355 Online
110226 Solutions
New Discussion

write a script to install multiple depot with swinstall

 
Mohammed Ali_6
Occasional Contributor

write a script to install multiple depot with swinstall

Hi, this is very basic. I need to install ssh.depot, sudo.depot, hpppi.depot and few more depot on multiple server. I am trying to run swinstall non-interactively to install all those depots. How do I write a little script to do that?

Thanks,
MSA
5 REPLIES 5
RAC_1
Honored Contributor

Re: write a script to install multiple depot with swinstall

swinstall -s "sudo_depot_full_path" \* @ host1 host2 host3

Same for different depots.

Anil
There is no substitute to HARDWORK
Pete Randall
Outstanding Contributor

Re: write a script to install multiple depot with swinstall

cd /location_of_depots, then

for i in *.depot
do
swinstall -x patch_match_target=true -x autoreboot=true -s ${PWD}/$i
done


Pete

Pete
Pete Randall
Outstanding Contributor

Re: write a script to install multiple depot with swinstall

Oops, missed the mutiple server part. Add Anil's "@ host1 host2 host3" part to the swinstall command.


Pete

Pete
Geoff Wild
Honored Contributor

Re: write a script to install multiple depot with swinstall

Of course - adding autoreboot=true will reboot the servers if the depot requires it - you may want to try autoreboot=false first - and check the logs later to ensure everything installed correctly.

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.
Mohammed Ali_6
Occasional Contributor

Re: write a script to install multiple depot with swinstall

Thanks for your help.