#!/bin/bash


host_ip_list=(192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6)

for server in "${host_ip_list[@]}";do

  ssh  root@$server "echo yes !"
  ssh  root@$server "curl -s http://172.29.137.125"
  ssh  root@$server "echo /n/n"

done







#  scp  /usr/local/bin/agent-wdd root@"$server":/usr/local/bin/agent-wdd
#  ssh  root@"$server" "chmod +x /usr/local/bin/agent-wdd"
#  ssh  root@"$server" "/usr/local/bin/agent-wdd info all"
#  ssh  root@"$server" "/usr/local/bin/agent-wdd base swap"
#  ssh  root@"$server" "/usr/local/bin/agent-wdd base firewall"
#  ssh  root@"$server" "/usr/local/bin/agent-wdd base selinux"
#  ssh  root@"$server" "/usr/local/bin/agent-wdd base sysconfig"


ssh root@${server} "mkdir /root/wdd"
scp /root/wdd/disk.sh root@${server}:/root/wdd/
ssh root@${server} "bash /root/wdd/disk.sh"

scp /roo/wdd/docker.sh root@${server}:/root/wdd/
ssh root@${server} "bash /root/wdd/docker.sh"
