I need to connect remotely to 800 servers using a user which is having sudo access  n do points(in order 1,2,3)check status of syslogIf running go to step 2If not restart d serviceMake entry in /etc/sudoers of remote machinelike sudo echo ABC >> /etc/sudoersMake an entry in local file of local machine (in which i am executing script) of what has been done in scriptI managed to create a script which starts a service remotely.for i in `cat test1`do {echo ********************************************$i***************************************************sshpass -p '<password>' ssh -t abc@$i sudo /etc/init.d/httpd start}doneNote: Servers which are to be connected are in test1 filePls let me know how to integrate above three in a single script
Check the status of many remote servers
shell script;ssh;sudo;syslog