//  以下针对本单位的网络,涉及到的IP地址都是骨干网交换机的管理IP;
echo "校园骨干网
";
$count = 1;
$psize = 65;
$deadline = 1;
echo "   线路测试,请等待...\n

";
flush();
exec("ping -c $count -s $psize -w $deadline '192.168.255.252'", $list);
if (substr($list[1],0,2)=="73")
print "南校区线路正常"."\n";
else print " 南校区线路异常----"."\n";
echo "

";
unset($list);
exec("ping -c $count -s $psize -w $deadline '192.168.255.241'", $list);
if (substr($list[1],0,2)=="73")
print "北校区线路正常"."\n";
else print "北校区线路异常----"."\n";
echo "

";
unset($list);
exec("ping -c $count -s $psize -w $deadline '192.168.255.233'", $list);
if (substr($list[1],0,2)=="73")
print "市区--大学城线路正常"."\n";
else print "市区--大学城线路异常----"."\n";
echo "

";
unset($list);
exec("ping -c $count -s $psize -w $deadline '192.168.255.226'", $list);
//print $list[6];
if (substr($list[1],0,2)=="73")
print "1#教学楼线路正常"."\n";
else print "1#教学楼线路异常----"."\n";
echo "

";
unset($list);
exec("ping -c $count -s $psize -w $deadline '192.168.255.218'", $list);
if (substr($list[1],0,2)=="73")
print "4#教学楼线路正常"."\n";
else print "4#教学楼线路异常----"."\n";
echo "

";
unset($list);
exec("ping -c $count -s $psize -w $deadline '192.168.255.210'", $list);
if (substr($list[1],0,2)=="73")
print "5#教学楼线路正常"."\n";
else print "5#教学楼线路异常----"."\n";
?>

flush();
sleep(3);

?>