LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   multiple linux machines (https://www.linuxquestions.org/questions/linux-software-2/multiple-linux-machines-559978/)

bong.mau 06-07-2007 01:19 PM

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

MensaWater 06-07-2007 02:23 PM

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.

bong.mau 06-09-2007 05:52 AM

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

MensaWater 06-09-2007 08:54 AM

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).


All times are GMT -5. The time now is 05:48 PM.