Open caiwang opened 9 years ago
Comment by unissoft-bj
Wednesday Jan 14, 2015 at 09:22 GMT
echo " select netid, count(distinct(mac)) as cnt, concat(left(optime,14),'30:00') as timebyhour from wlsta where optime>='2015-1-12 00:00:00' and optime<='2015-1-14 16:00:00' and netid<>'catarc' group by netid,timebyhour;" | mysql -uroot -p wlsp > wlsta.txt
Comment by unissoft-bj
Wednesday Jan 14, 2015 at 09:42 GMT
echo " select netid, count(distinct(mac)) as cnt, concat(left(optime,14),'30:00') as timebyhour from wlsta where optime>='2014-12-10 00:00:00' and netid<>'catarc' and netid<>'ihost-home' group by netid,timebyhour;" | mysql -uroot -p wlsp > wlsta.txt
Comment by unissoft-bj
Wednesday Jan 14, 2015 at 10:04 GMT
echo " select netid, count(distinct(mac)) as cnt, left(optime,10) as timebyday from wlsta where optime>='2014-12-10 00:00:00' and netid<>'catarc' and netid<>'ihost-home' group by netid,timebyday;" | mysql -uroot -p wlsp > wlsta.txt
Comment by unissoft-bj
Wednesday Jan 14, 2015 at 14:57 GMT
一个月毛客流(月间隔,rssi>=-75)
echo " select netid, count(distinct(mac)) as cnt, left(optime,10) as timebyday from wlsta where optime>='2014-12-10 00:00:00' and netid<>'catarc' and netid<>'ihost-home' and rssi>='-75' group by netid,timebyday;" | mysql -uroot -p wlsp > wlsta.txt
Comment by unissoft-bj
Wednesday Jan 14, 2015 at 15:16 GMT
echo " select netid, count(distinct(mac)) as cnt, left(optime,10) as timebyday from wlsta where optime>='2014-12-10 00:00:00' and netid<>'catarc' and netid<>'ihost-home' and rssi>='-65' group by netid,timebyday;" | mysql -uroot -p wlsp > wlsta.txt
Comment by unissoft-bj
Wednesday Jan 14, 2015 at 15:23 GMT
echo " select netid, count(distinct(mac)) as cnt, left(optime,10) as timebyday from wlsta where optime>='2014-12-10 00:00:00' and netid<>'catarc' and netid<>'ihost-home' and rssi>='-60' group by netid,timebyday;" | mysql -uroot -p wlsp > wlsta.txt
Comment by unissoft-bj
Wednesday Jan 14, 2015 at 15:23 GMT
echo " select netid, count(distinct(mac)) as cnt, left(optime,10) as timebyday from wlsta where optime>='2014-12-10 00:00:00' and netid<>'catarc' and netid<>'ihost-home' and rssi>='-55' group by netid,timebyday;" | mysql -uroot -p wlsp > wlsta.txt
Comment by unissoft-bj
Wednesday Jan 14, 2015 at 15:33 GMT
echo " select netid, count(distinct(mac)) as cnt, left(optime,10) as timebyday from wlsta where optime>='2014-12-10 00:00:00' and netid<>'catarc' and netid<>'ihost-home' and rssi>='-50' group by netid,timebyday;" | mysql -uroot -p wlsp > wlsta.txt
10分钟间隔的毛客流曲线
echo " select netid, count(distinct(mac)) as cnt, concat(left(optime,15),'0:00') as timebyten from wlsta where optime>='2015-1 -12 06:00:00' and optime<='2015-1-14 16:00:00' and netid<>'catarc' group by netid,timebyten;" | mysql -uroot -p wlsp > wlsta.txt