标签:17.1 pow err 自动 ssh 关机 block power .sh
#!/bin/shssh js /bin/date
ssh js hostname -i
down.log
ssh js /sbin/poweroff >/dev/null 2>&1
state=echo $?
decide $state $ip $date
date=ssh cwgzxt -p1211 /bin/date
ip=ssh cwgzxt -p1211 hostname -i
ssh cwgzxt -p1211 /sbin/poweroff >/dev/null 2>&1
state=echo $?
decide $state $ip $date
date=gom /bin/date
ip=gom hostname -i
gom /sbin/poweroff >/dev/null 2>&1
state=echo $?
decide $state $ip $date
date=gos /bin/date
ip=gos hostname -i
gos /sbin/poweroff >/dev/null 2>&1
state=echo $?
decide $state $ip $date
date=ssh root@192.168.17.190 date
ip=192.168.17.190
ssh root@192.168.17.190 /bin/gj.sh >/dev/null 2>&1
state=echo $?
decide $state $ip $date
date=ssh root@192.168.17.195 date
ip=192.168.17.195
ssh root@192.168.17.195 /bin/gj.sh >/dev/null 2>&1
state=echo $?
decide $state $ip $date
那些年不上运维自动化 NO ZUO NO DIE 写下的关机脚本
标签:17.1 pow err 自动 ssh 关机 block power .sh
原文地址:http://blog.51cto.com/jdonghong/2165894