for m in `seq 11 11` do for n in `seq 2 254` do ping -c 3 -W 3 192.168.$m.$n &>/dev/null if [ $? -eq 0 ];then echo 192.168.$m.$n is up else echo 192.168.$m.$n is down fi done done wait
开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发. |
for m in `seq 11 11` do for n in `seq 2 254` do ping -c 3 -W 3 192.168.$m.$n &>/dev/null if [ $? -eq 0 ];then echo 192.168.$m.$n is up else echo 192.168.$m.$n is down fi done done wait
|