标签:探测局域网.在线主机
[root@snlinux1 ~]# vim wlan.sh #!/bin/bash # ping check scripts for IP in 192.168.9.{1..254} do ping -c 2 -i 0.1 -W 1 $IP &> /dev/null if [ $? -eq 0 ] then echo "Host $IP is up." else echo "Host $IP is down." fi done 探测局域网内存活主机:192.168.9.0网段
本文出自 “a-Snow_欢迎您!” 博客,谢绝转载!
标签:探测局域网.在线主机
原文地址:http://snlinux.blog.51cto.com/9114162/1549224