摘要:
[root@web03 scripts]# cat prevent_arp.sh #!/bin/bash lo_ip=$(ip a s lo|grep "10.0.0.1[3]/32"|wc -l) if [ $lo_ip -eq 0 ] then ip addr add 10.0.0.13/32 dev lo fi ip_cnf=$(egrep "net.ipv4.conf" ... 阅读全文
摘要:
[root@lb04 scripts]# cat ha_lv.sh #!/bin/bash while true do check_count=$(nmap 10.0.0.13|grep "Host is up"|wc -l) if [ ${check_count} -ne 1 ] then sh /server/scripts/lv_... 阅读全文