摘要:
#!/bin/bash #by wwp 2020-10-14 for ip in `cat ip.list` do { ping -c1 -W1 $ip &>/dev/null if [ $? -eq 0 ];then ssh $ip "sed -ri '/^#UseDNS/cUseDNS no' 阅读全文
posted @ 2020-10-17 13:50
王维鹏qaq
阅读(99)
评论(0)
推荐(0)
摘要:
#!/bin/bash #by wwp Obtain hostname >hostname.txt ip=`cat ip.list` for i in $ip do Hostname=`ssh -t $i hostname` echo -e "$i \t $Hostname" >> hostname 阅读全文
posted @ 2020-10-17 12:36
王维鹏qaq
阅读(98)
评论(0)
推荐(0)
摘要:
#!/bin/bash #by wwp 2020-10-14 #for openssh >ip.list passwd=6 rpm -q expect &>/dev/null if [ $? -ne 0 ] ; then yum -y install expect >/dev/null && ech 阅读全文
posted @ 2020-10-17 11:31
王维鹏qaq
阅读(94)
评论(0)
推荐(0)

浙公网安备 33010602011771号