Guys
If someone could help me? Basically I want to connect from my central server and run the script to remote servers (in our environment we do not need a username/password to connect); like below
ssh <server_name_1> /ora/rman/scripts/bk2.sh 2>/dev/null >> /tmp/an.log
ssh <server_name_2> /ora/rman/scripts/bk2.sh 2>/dev/null >> /tmp/an.log
..
..
ssh <server_name_n> /ora/rman/scripts/bk2.sh 2>/dev/null >> /tmp/an.log
I have all these servers name in one file.....so basically I need to loop through all these servers/hosts and run above command
Also while making connection to server I also want to scp my script (i.e. bk2.sh) to all these servers
Could anyone please help?