Accessing Conduit AEP data usage logs
- This topic has 4 replies, 3 voices, and was last updated 9 years, 7 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You cannot reply to this topic.
Home › Forums › Conduit: AEP Model › Accessing Conduit AEP data usage logs
Is there a way to get at the cellular and Ethernet usage statistics (JSON file, I believe) from a terminal that is usually accessed via the Conduit AEP Gateway web interface (Status & Logs > Statistics > Download Logs)?
Take a look at the REST API, stats are available at localhost/api/stats. The endpoint reference is here: http://www.multitech.net/developer/software/mtr-api-reference/rcell_api_statistics/
For example:
# curl -k localhost/api/stats/ethHistory
Hi Peter,
For Conduits having the LORA card, can I pull the LORA statistics as well? Although the API link doesn’t have any end point related to LORA statistics, is there an end point that you can share that is not documented by the link above?
Thanks,
Ajay
The conduits with a LoRa card installed do have a stats/lora and a stats/loraNodes endpoint. Check those on the conduit itself with a curl request and see if they have the stats you’re looking for.
For example on my 1.3.3 conduit, a GET to stats/lora returns:
admin@mtcdt:~# curl -k localhost/api/stats/lora
{
"code" : 200,
"result" : {
"rxCrcErrors" : 23624,
"rxDups" : 0,
"rxJoinDups" : 0,
"rxJoins" : 163,
"rxMicFails" : 143,
"rxPkts" : 20956,
"txAckDups" : 0,
"txAckPkts" : 0,
"txJoins1stWnd" : 163,
"txJoins2ndWnd" : 0,
"txJoinsDropped" : 0,
"txPkts" : 7104,
"txPkts1stWnd" : 7104,
"txPkts2ndWnd" : 0,
"txPktsDropped" : 0
},
"status" : "success"
}
Thanks for the information Peter.