Open API 'client-stat-detail' no reporting values
I am trying to identify strange traffic patterns (huge amount of traffic uploaded from my Lan) and for that I am trying to get per client data.
According to the Open API documentation, I should be able to get 5min/hourly/daily aggregated info per client, and I can access the entry, but the statistical data is empty (hourly data for the last 24 hours:
{
"errorCode": 0,
"msg": "Success.",
"result": {
"totalDown": 0,
"totalUp": 0,
"avgDownRate": 0,
"avgUpRate": 0,
"avgTxR": 0,
"avgRxR": 0,
"avgSignal": 0,
"totalTxFP": 0,
"stats": [
{
"time": 1770397200
},
(...)
{
"time": 1770480000
},
{
"mac": "04-B8-6A-**-**-**",
"wireless": false,
"time": 1770483600,
"down": 0,
"up": 0,
"downRate": 0,
"upRate": 0,
"txR": 0,
"rxR": 0,
"signal": 0,
"txFP": 0
}
]
}
}
So, I get the response but not the data. But if I get the xxx, then I can see traffic stats, but I have no time reference, so I'm not sure when these counters were cleared last time.
{
"mac": "04-B8-6A-**-**-**",
"name": "Sky",
"vendor": "Unknown",
"deviceType": "Streaming Dongle",
"deviceCategory": "Audio & Video",
"osName": "Unknown",
"model": "Unknown",
"ip": "192.168.0.134",
"connectType": 1,
"connectDevType": "ap",
"connectedToWirelessRouter": false,
"wireless": true,
"ssid": "conair",
"signalLevel": 85,
"signalRank": 5,
"wifiMode": 6,
"apName": "APazoUR",
"apMac": "78-20-51-**-**-**",
"radioId": 1,
"channel": 52,
"rxRate": 1201000,
"txRate": 1201000,
"powerSave": true,
"rssi": -56,
"snr": 39,
"vid": 0,
"dot1xIdentity": "",
"activity": 0,
"uploadActivity": 0,
"trafficDown": 353057323883,
"trafficUp": 3098966735,
"uptime": 52330,
"lastSeen": 1770481322330,
"authStatus": 0,
"blocked": false,
"guest": false,
"active": true,
"manager": false,
"downPacket": 240581528,
"upPacket": 28359510,
"support5g2": false,
"multiLink": [],
"authInfo": []
}
Per client stats request: curl "${baseURL}/v1/${omadac_id}/sites/${site_id}/client-stat-detail/${mac}/hourly" -H "Authorization:AccessToken=${accessToken}" -d "{\"startSec\":\"${Time1}\",\"endSec\":\"${Time2}\"}" -H 'content-type:application/json' -X POST -s -k --insecure
Clients list request: curl "${baseURL}/v1/${omadac_id}/sites/${site_id}/clients?page=1&pageSize=100" -H "Authorization:AccessToken=${accessToken}" -H 'content-type:application/json' -X GET -s -k --insecure
I have enabled 'Deep Oacket Inspection', but there is no visible change with it enabled or disabled.
Any idea what's going on?
Thanks
Thanks
