How to Download Thing PCAP File?
This guide will show you how you can download Thing PCAP file for connection and SIM usage analysis.
To view download Thing PCAP file, please use the following request:
1
curl -X GET "https://console.monogoto.io/thing/ThingId_ICCID_<<<_ICCID_HERE_>>>/pcap?From=<<<_START_DATE/TIME_>>>&To=<<<_END_DATE/TIME_>>>" -H "accept: application/json" -H "Authorization: Bearer <<<_TOKEN_HERE_>>>" -H "apikey: <<<_CUSTOMER_ID_>>>"
Copied!
Please note that the above shown command needs to be replaced with information: <<<_TOKEN_HERE_>>> - replace with your token. You may obtain Token, by running Login Token API command. <<<_THING_ICCID_>>> - replace with your Monogoto thing ICCID number <<<_START_DATE/TIME_>>> - replace with the timestamp of start period date/time in Epoch format. You may use a converter that can be found following this link <<<_END_DATE/TIME_>>> - replace with the timestamp of end period date/time in Epoch format. You may use a converter that can be found following this link. <<<_EVEN_MESSAGE_TYPE_>>> - replace with the Event message type to be displayed. <<<_CUSTOMER_ID_>>> - replace with your customer ID. You may obtain Customer ID when running Login Token API command. If needed this API can be tested and used in the Monogoto portal following this path: Thing GET /{Id}/pcap
Example of request that will show PCAP results for our SIM card (date/time range is from 2020 December 1st 00:00:01 GMT+0 to 2020 December 31st 23:59:59 GMT+0):
1
curl -X GET "https://console.monogoto.io/thing/ThingId_ICCID_8912372646888991/pcap?From=1606780801&To=1609459199" -H "accept: application/json" -H "Authorization: Bearer eyJhb6IkpXVCJ9.eyJSb2xlIjoiVXN4lclByb2ZpbGVJZF9kZGM2MThhNC0wNTI1LTQ2MmUtYWN3NzhhMGQxYmbSI6Im4zgFkbWluIiwiQ3VzdG9tsbCwiVXNlcklkIjoiVklkXzg5Yj5Y2OGEyUtNDQThhLTEzZjA0MzJhZDE3YyINTAzgZmUtZGI51My00ZjRiLTktN2U5Yjc0ZWU1ZThlIiwiaWNzM3MjI5L2MDY3NTE2Mjl9.99aSLzP7kTgK6TZGW-xalrMu0GkW6viunt3XxbNng" -H "apikey: cid_ecs1d3a5-f5e62a1-fe8af468wf"
Copied!
Result should generate you a link for PCAP file download:
1
https://console.monogoto.io/123example456pcap
Copied!
Last modified 2mo ago
Copy link