登录主机,将三个文件:1. [login to view URL]及2. [login to view URL]以及所有3. 需要被控的机器的私钥(所有机器均已上传相同的公钥,可以批量登录)上传至主机A,其中,[login to view URL]分为两列,第一列是被控机器的IP,第二列是被控机器需要执行的命令。要求在主机执行 bash ./[login to view URL]后,主机能自动登录csv中的每台被控机,并后台执行第二列的命令(注意,一定要后台),然后退出登录,继续登录下一台机器。重复此过程,直到所有的ip和命令执行完毕。
Hi, i can help you in preparing the script to login to the servers based on ip address reading from the CSV file and execute commands, please reach to me and can discuss [login to view URL]