RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Telemetry is the automatic recording and transmission of data from remote or inaccessible sources to an IT system in a different location for monitoring and analysis. A cron utility is used to schedule the Telemetry feature with a configured frequency and / or configured date and time.
Raspberry-pi board will connect to Xconf Server to get the device configuration information, telemetry profile information, telemetry upload schedule and log upload repository (ip address of tftp server). It will search for the markers (contents mentioned in the permanent profile) in the mentioned log file. If it is found in the log file, it will process those information and create a text file and upload that file in the tftp server. This way all the critical data related to device health will be available on timely basis in the tftp server for further analysis.
1. i) Login to Xconf server and go to "Common" → "Models"
ii) Add a unique model name (Id) for your device and provide a description.
2. Login to Xconf Server and go to DCM menu item and click on “Formulas” sub menu
3. Click on Create button
4. i) Provide a unique “Name”, along with “Description”, and build conditions and save the formula.
ii) Verify Percentage and Priority field(normally it displays the sequence number of formula, can be changed to make the formula higher/lower priority) is auto field up with their respective values
iii) Go to “Build condition” section and click on the first empty field to get all the available field displayed there
iv) Select estbMacAddress and provide the MAC address of Rpi board.
v) Add an "AND" operator and click on the first empty field
vi) Select "model" and provide the unique "Model name" used in step 1 above.
5. Verify the created formula (ex. RPI_formula22Aug) displayed in the formula list.
6. Click on Edit formula for the created formula (ex. RPI_formula_22Aug).
7. Edit formula page opens.
8. Click on “Create Device Settings” and fill up the fields as displayed in the screen below and click on save button:
9. Click on DCM menu then “Upload repository” submenu and click on “Create” button
10. Provide inputs as mentioned below screen and save the upload repository.
11. Click on Formula and go back to the Edit formula page of the created formula (ex. RPI_formula_22Aug) and click on “Create Log Upload settings” button. Upload repository drop down menu field will show all the upload repositories including the created one (ex. Chennai_22Aug_repo)
12. Provide inputs as mentioned in the screen below:
13. Save the “Edit Formula” page
14. Verify the Formula page for the created formula (ex. RPI_formula_22Aug) where View Settings column displays the “Device” and “LogUpload”
15. Go to Telemetry menu and click on “Permanent Profile”
16. Click on “Create” button to create permanent profile with different markers.
Name – Give an unique name for the Telemetry permanent profile
Schedule – This gives the information about the schedule log upload frequency and / or date and time for the telemetry upload schedule.
For ex.
*/10 * * * * :- This will schedule the telemetry log upload at every 10 min.
Below is the format for this field.
Upload repository – This gives the URL for the server where the Telemetry logs need to be uploaded.
Telemetry profile entries -
First field is “Header” - This is the name for the particular logs collection. This is a custom name and can be decided based on the use case or error condition or any other scenario.
Second field is “Content” - This is the "log message string" that appears in the RDK logs.
Third field is “type” - This is the name of the log file where the above log message string needs to be searched.
Fourth field is “Skip frequency” - This is a skip frequency. It can have values like 0, 1, 2 etc.
0 - This particular log message is never skipped.
1 - Skip every alternate occurrence of this log message.
2 - Skip 2 consecutive log message occurrences and then collect 1 occurrence and then again skip 2 occurrences.
Based on the R-Pi board supported markers available, we have selected few of them as mentioned below:
Header | Content | Type |
Firewall | starting firewall service | FirewallDebug.txt |
Firewall-1 | Inside firewall service_init() | FirewallDebug.txt |
Wi-Fi | Wifi Agent loaded successfully... | WiFilog.txt.0 |
Armconsole | get_PartnerID - Failed Get factoryPartnerId | ArmConsolelog.txt.0 |
swupdate | image itself not downloaded from TFTP, | swupdate.log |
17. Save Permanent profile (ex. Perm_Prof_22Aug) and it will display in the Permanent profiles page
18. Click on “Telemetry” and then click on “Targeting Rules”
19. Click on “Create” button, provide Rule name and select different rule parameters and map the Permanent profile with this rule by selecting “Bound profile” drop down menu. Save the Targeting rule.
20. Verify the created Targeting rule displayed on the Targeting rule page
Below steps needed after flashing for the first time:
For ex. In include.properties file:
CLOUDURL=http://35.155.171.121:9092/xconf/swu/stb?eStbMac=
In dcm.properties file:
DCM_LOG_SERVER_URL=http://35.155.171.121:9092/loguploader/getSettings
DCM_HTTP_SERVER_URL=http://35.155.171.121/xconf/telemetry_upload.php
DCM_LA_SERVER_URL=http://35.155.171.121/xconf/logupload.php
3. Configure MODEL_NAME parameter in "/etc/device.properties", by providing a unique model name of the device.
This model name should be same as that used in Xconf server.
For ex. In device.properties file:
MODEL_NAME=RPI
4. After board boot up, disable log rotation by using the command:
Log Monitor Disable
systemctl disable rdkbLogMonitor |
5. Verify the image version: cat /version.txt
6. Perform reboot: reboot -f
Important Note:
Disabling log monitor is required because log rotation feature will wipe out logs when threshold reached, due to which telemetry feature can't able to identify the event count.
Telemetry functionality requires rdk logs.
To bring both log rotation and telemetry feature at same time, user needs to increase the threshold size of max size which is used by log rotation feature . Please follow Log Rotation Support in RPI User manual - Broadband - 2019 M8 to change threshold size of log rotation.
Below steps are to check telemetry log whenever box boots up ( after first time boot ) :