- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- swinstall is stuck because client gets hang
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2006 04:49 AM
тАО09-21-2006 04:49 AM
Please help. I have a script called sched.sh. This script is for distributing a product to around 200 clients using swinstall command from depot server.
I have an issue when one of the clients get hang, so swinstall will be stuck on that server and can not proceed to the next server. This is causing the script sched.sh will fail.
Is there any way to make the script more intelligent if a client get hang, so the swinstall will skip that client and proceed to the next server?
[root@DEPOT:]
# more secu005_create_acf.sh
.
swinstall -x job_title=${host}_secu_refresh -Q $day,$time -S $swoptionsfile -s$depot $product @ $host 2>&1
Solved! Go to Solution.
- Tags:
- swinstall
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2006 05:03 AM
тАО09-21-2006 05:03 AM
Re: swinstall is stuck because client gets hang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2006 05:31 AM
тАО09-21-2006 05:31 AM
Re: swinstall is stuck because client gets hang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2006 05:35 AM
тАО09-21-2006 05:35 AM
Re: swinstall is stuck because client gets hang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2006 05:38 AM
тАО09-21-2006 05:38 AM
SolutionThis (untested) script will launch 10 instances of swinstall in the bg, sleep for 10 seconds, and launch 10 more until ${hostlist} is exhausted:
#!/usr/bin/sh
typeset -i batchsize=10
typeset -i zzz=10
#set other vars here
typeset -i i=0
for host in $(cat hostlist)
do
swinstall -x job_title=${host}_secu_refresh -Q ${day},${time} -S ${swoptionsfile} -s${depot} ${product} @ ${host} 2>&1 &
i=$((i + 1))
if [[ ${i} -eq ${batchsize} ]]
then
sleep ${zzz}
i=1
fi
done
exit
PCS
- Tags:
- background
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2006 02:06 PM
тАО09-21-2006 02:06 PM
Re: swinstall is stuck because client gets hang
It looks to me that this is a great idea. Hope the script can skip the hang client and proceed with the next. I will test this script. Any other ideas are welcome. Thanks.