LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-07-2007, 01:19 PM   #1
bong.mau
Member
 
Registered: Apr 2004
Posts: 290

Rep: Reputation: 30
multiple linux machines


hi
ENV: two hw machines (test and prod) each one with own linux loaded...conneted using lan...
is there a product able to forward execution of jobs on one of the two machines ?

thanksd in advance

Maurizio
 
Old 06-07-2007, 02:23 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
Depends on what you mean.

You can execute a command on a remote system by using ssh:
e.g. From your prod:
ssh devhost ls

Would do an ls. Of course this will ask you for a password. You can get around that by setting up an ssh trust. (Adding public key of user on the prodhost to the $HOME/.ssh/authorized_keys file for the user on the devhost.

A couple of cautions:
1) You probably should think long and hard before establishing a trust from root to root. If someone hacks one host they've hacked both.
2) You call them prod and dev. Always for your own sanity make sure you only allow trust FROM prod TO dev and not vice versa. You typically allow many more users to do all sorts of crazy things on a dev host that you don't want to do on a prod host (or even give them access to).

There are many other ways of doing such remote command execution. There are even commercial packages such as Tivoli's Workload Manager that are designed to run jobs across multiple servers and even wait for specific steps to complete on one server before executing another on another server.
 
Old 06-09-2007, 05:52 AM   #3
bong.mau
Member
 
Registered: Apr 2004
Posts: 290

Original Poster
Rep: Reputation: 30
to further clarify..

Hi jlightner

thanks for the answer

to be more precise ......

my env is this.....
Prod machine internet connected protected by a firewall..
Test machine and Prod machine are connected using a lan....
Test has not a firewall istalled ,and i opened the Prod firewall to use the internal lan network....
Test Machine cames on starting up the sshd and the proftpd daemaons.....
Test has not a console connected....
so using Prod ssh i'm able to execute jobs on the test machine using as output the video attached to the Prod machine that can act as the console of the whole system....

"You can get around that by setting up an ssh trust. (Adding public key of user on the prodhost to the $HOME/.ssh/authorized_keys file for the user on the devhost. "

this will permit to me to skip to eneter the password ...!

"2) You call them prod and dev. Always for your own sanity make sure you only allow trust FROM prod TO dev and not vice versa"

thanks also for this info.!

"There are even commercial packages such as Tivoli's Workload Manager that are designed to run jobs across multiple servers and even wait for specific steps to complete on one server before executing another on another server."


this is very interesting...i have a further question ...

are only availables commencial packages doing such functions.....
or also some opensource packages are doing the same functions ?

thanks in advance

Maurizio
 
Old 06-09-2007, 08:54 AM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
Not saying there aren't any free ones but I've never run across any that are full packages such as described for TWS/Maestro. On a quick Google search I found many that claim they work on Linux/OSS but none that say they are "free".

Note that there are "job scheduling" tools for Linux. The most common (which is also available in UNIX) is "cron". This allows you to schedule jobs on a single host. If you created shell scripts that do remote execution (e.g. doing the ssh mentioned above) you can use cron on one machine to kick off jobs on another one. cron is used for scheduling recurring jobs. There is another command called "at" which is used for scheduling jobs once. We have one HP-UX (UNIX) environment where we use the cron on one system to submit an "at" job on another system. Another tool available on Linux is anacron which is similar to cron but allows you to schedule tasks for systems that aren't running all the time (such as laptops).

You can get more details on above commands by reading the man page. Just type "man" and the command name:
man cron
man crontab
(additional detail for how to configure crontab files used by cron)
man at

(Or info cron, info crontab, info at).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Rsync between multiple machines Maeltor Linux - General 7 07-31-2006 11:22 PM
Manage multiple linux-machines through one linux-machine howto ? Satriani Linux - Networking 18 06-10-2003 09:54 AM
Multiple Linux Machines using sendmail... needamiracle Linux - General 13 08-28-2002 02:38 PM
Seti on multiple machines. Sean Moores Linux - General 5 08-22-2002 11:32 AM
Linux and multiple windows machines artman62 Linux - Networking 3 11-12-2001 09:50 PM


All times are GMT -5. The time now is 06:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration