目錄
用於評估機房線路.
ping.lst
202.96.134.133 202.96.128.68 ... ...
測試腳本
#!/bin/bash
for addr in `cat ping.lst`
do
ping -c 5 -s 128 -W 5 $addr
echo
echo
done > ping_report.txt &
將不同機房的出ping_report.txt檔案彙總,然後用是diff對比。例如 vimdiff report1.txt report2.txt.
#!/bin/bash
for addr in `cat ping.lst`
do
traceroute $addr
echo
echo
done > traceroute_report.txt &