[SOLVED] i have linux server client env. and thus i want one script
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have linux server client env. and thus i want one script
Hi ,
I have server name x on that server i want to run the script which connect to the all client with cron job and check that procee on client is runing or not add details client wise in one txt file date and time stamp.
e.g on server 10.112.97.101
i am taking ssh 10.112.97.102 -- client.
and execute the ps -wef | grep Process name
which do automatically on every 10 min use of the script and cronjob.
onthe serever datatime.txt and contain of the
datetime.txt is
client1 - service is ok
client2 - service is down with time ....
client3 - service is ok
This is not the approach that will give you a good result. LinuxQuestions users are not in the habit of providing ready to go solutions but are at their best resolving problems.
Keeping that in mind, best thing for you to do is post what you have tried so far, where it's failing, what processes you want to monitor, what distributions you are using (all the same or different), and so on.
The more information you provide the better we can help you.
This is not the approach that will give you a good result. LinuxQuestions users are not in the habit of providing ready to go solutions but are at their best resolving problems.
Keeping that in mind, best thing for you to do is post what you have tried so far, where it's failing, what processes you want to monitor, what distributions you are using (all the same or different), and so on.
The more information you provide the better we can help you.
Ok, and how about answering the other questions like what distro / version, same on all remote machines or different, what form of connection (SSH, Telnet, directly to DB server, ...), authentication depending on form of connection, ...
And most important, what have you written/tried/tested yourself and where and how is it failing?
As stated before, YOU will have to put in most of the work, don't expect a ready made solution from LQ users.
Ok, and how about answering the other questions like what distro / version, same on all remote machines or different, what form of connection (SSH, Telnet, directly to DB server, ...), authentication depending on form of connection, ...
And most important, what have you written/tried/tested yourself and where and how is it failing?
As stated before, YOU will have to put in most of the work, don't expect a ready made solution from LQ users.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.