LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-12-2010, 10:35 AM   #1
justnil
LQ Newbie
 
Registered: Oct 2010
Location: New York, NY
Posts: 1

Rep: Reputation: 0
Unhappy how to find a least busy host given a hardcoded host list?


Hi,

I got a bunch of machines (~10) that I share with my co-workers. I have appropriate .ssh file(s) set up so I don't get prompt for password when I try to ssh.

Currently I ssh into these hosts and then do a top to check the load before I start using the machine. Because I don't want to be on a busy host..

Can someone show me how to write a script that find a least-busy host given a list of hosts to check? (hardcoded is fine)

Please help...

Many thanks!
 
Old 10-12-2010, 10:53 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,699

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by justnil View Post
Hi,
I got a bunch of machines (~10) that I share with my co-workers. I have appropriate .ssh file(s) set up so I don't get prompt for password when I try to ssh.
Currently I ssh into these hosts and then do a top to check the load before I start using the machine. Because I don't want to be on a busy host..
Can someone show me how to write a script that find a least-busy host given a list of hosts to check? (hardcoded is fine)
We can help....post what you've written so far, and where you're getting stuck.

Otherwise, you can take a look at one of the thousands of bash scripting tutorials you can find via Google, and start there.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS Error -- recoverable: Network host 'sandler' is busy; will retry in 30 seconds.. runnerbrian Red Hat 4 12-03-2011 05:26 AM
telnet: Unable to connect to remote host: No route to host grob115 Linux - Networking 3 07-30-2010 10:18 AM
try install host ; bind9-host uninstalled , how to undo sudo apt-get install host? shojaru Linux - Newbie 0 06-11-2009 12:45 AM
Required to achieve host to host communication via USB file transfer cable may1284 Linux - General 1 03-14-2007 04:02 PM
'Network host is busy' message in CUPS kiwidoc66 Linux - Networking 2 02-18-2007 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration