grep TP_S_SMSGW_HIGH ~/logs/`hostname`/common-info.log -c |awk '{print$1}' |awk 'BEGIN{sum=0}{sum+=$1}END{print sum/2}'