Due to business growth, we need to choose an IDC room managed access. Network quality requirements are relatively high. When IDC gives the test machine, it uses smokping to test, which is the package to be measured. Since we have access machines in all regions. Then from these access machines to test the IDC network quality, compared to the indicator: lost packets and RTT return time delay. And then use Excel, generate a graph, do not know whether the result is reasonable, welcome the colleague to correct AH
*.*.*.* refers to the IP address
#!/bin/bash#ping-f-C *.*.*.* >/root/shahexi/ping.txtlossl= ' cat/root/shahexi/ping.txt| grep Loss|awk ' {print $6} ' |awk-f% ' {print '} ' rtt= ' Cat/root/shahexi/ping.txt | grep RTT | awk ' {print $4} ' | Awk-f "/" ' {print $} ' echo ' ' date + '%y/%m/%d_%h:%m:%s ' $rtt ' >>/root/shahexi/rtt.txtecho ' ' date + '%y/%m/%d_%h:% m:%s "' $lossl" >>/root/shahexi/pkglosst.txt
This article is from the "Scattered People" blog, please be sure to keep this source http://zouqingyun.blog.51cto.com/782246/1690047
When selecting IDC Room, use the script to intercept the value of the lost packet and RTT for comparison