Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents

Introduction

While migrating to Telemetry2.0 from  DCA telemetry, the traditional log grepping is targetted to reduce as much as possible by instrumenting the  markers coming from RDKB components.To achieve this, RDKB components are supposed make required changes with the use of APIs from Telemetry 2.0 shared library.

RDKB Telemetry Components

  1.   Xconf Server
  2.   RPI with rdkb image
  3.   telemetry2_0

Environment Setup

2.1.  Build procedure

Follow the wiki page to make yocto's RDK-B image from yocto workspace in your PC.

...

Note: Proceed the build procedure in Ubuntu18 version VM

2.2.  Pre- requisites for enabling Telemetry2_0 (Version : 2) - Single profile

Telemetry Version : 2 (by default telemetry version as 1)

...

Sample Successful logs for Telemetry 2 process Initialization in /rdklogs/logs/telemetry2_0.txt.0 ,

 Xconf server

Configuring Telemetry on Xconf server

Change Application to stb in top right corner of the window

     

Create Formula

 Login to Xconf Server and go to DCM menu item and click on “Formulas” sub menu and create Formula


Create Device Settings

Xconf Server → DCM → Device Settings 

Create Upload Repository

Xconf Server → DCM → Upload Repository

...

Repository URL:  https://xconf.rdkcentral.com/xconf/telemetry_upload.php

Create LogUpload Settings

Xconf Server → DCM → LogUpload Settings

Test Page

Xconf Server → DCM → Test Page

In the Test Page, give estbMacAddress(B8:27:EB:1B:56:4C → Mac Address of RPI) and ensure the parameters that has been configured in the DCM.

Create Permanent Profiles

The markers are of 3 types .
1.Split based markers. 
2. Count based markers
3. TR-181 based markers.

...

 2. Once you save the permanent profile, you will get a message overlay ‘Profile added to the pending changes’. Then go to Changes -> select the profile you create -> Click on “Approve selected changes”.
Then the permanent profile will be listed under Telemetry - > Permanent profiles

Create Targeting Rules

Create targeting rule via Telemetry -> Targeting rules. Targeting rules is to map the profiles with rules.


Test Page

Xconf Server → Telemetry → Test page

...

In the Test Page, give estbMacAddress(B8:27:EB:1B:56:4C→ Mac Address of RPI) 

JSON Response

https://xconf.rdkcentral.com:19092/loguploader/getT2Settings?estbMacAddress=b8:27:eb:1b:56:4c&firmwareVersion=rdkb-generic-broadband-image_rdk-next_20210329055811&model=&partnerId=RDKM&accountId=&ecmMacAddress=B8:27:EB:1B:56:4C&env=dev&controllerId=2504&channelMapId=2345&vodId=15660&version=2


RAW data Response

RAW Data Response of T1


https://xconf.rdkcentral.com:9092/loguploader/getSettings?estbMacAddress=b8:27:eb:1b:56:4c&firmwareVersion=rdkb-generic-broadband-image_rdk-next_20210329055811&model=&partnerId=RDKM&accountId=&ecmMacAddress=B8:27:EB:1B:56:4C&env=dev&controllerId=2504&channelMapId=2345&vodId=15660&version=2


RPI(target) devices Response's

DCMresponse Text Data


Code Block
languagebash
themeDJango
titleDCMresponse.txt
collapsetrue
root@RaspberryPi-Gateway:~# cat /tmp/DCMresponse.txt 
"urn:settings:GroupName":"RDKB-RPI-TEST"
"urn:settings:CheckOnReboot":true
"urn:settings:CheckSchedule:cron":"2 2 * * *"
"urn:settings:CheckSchedule:DurationMinutes":0
"urn:settings:LogUploadSettings:Message":null
"urn:settings:LogUploadSettings:Name":"RDKB-RPI-TEST"
"urn:settings:LogUploadSettings:NumberOfDays":0
"urn:settings:LogUploadSettings:UploadRepositoryName":"RDKB-RPI-TEST"
"urn:settings:LogUploadSettings:UploadRepository:URL":"https://xconf.rdkcentral.com/xconf/telemetry_upload.php"
"urn:settings:LogUploadSettings:UploadRepository:uploadProtocol":"HTTP"
"urn:settings:LogUploadSettings:UploadOnReboot":true
"urn:settings:LogUploadSettings:UploadImmediately":false
"urn:settings:LogUploadSettings:upload":true
"urn:settings:LogUploadSettings:UploadSchedule:cron":"2 2 * * *"
"urn:settings:LogUploadSettings:UploadSchedule:levelone:cron":null
"urn:settings:LogUploadSettings:UploadSchedule:leveltwo:cron":null
"urn:settings:LogUploadSettings:UploadSchedule:levelthree:cron":null
"urn:settings:LogUploadSettings:UploadSchedule:DurationMinutes":0
"urn:settings:VODSettings:Name":null
"urn:settings:VODSettings:LocationsURL":null
"urn:settings:VODSettings:SRMIPList":null
"urn:settings:TelemetryProfile":{"id":"04e97048-4b56-4680-b88a-7dc73dc794d0","telemetryProfile":[{"header":"PAM","content":"enteredhotspot_update_circuit_ids","type":"PAMlog.txt.0","pollingFrequency":"2"},{"header":"Total_online_clients_split","content":"RDKB_CONNECTED_CLIENTS:Total_Online_Clients=","type":"LM.txt.0","pollingFrequency":"0"},{"header":"Total_online_clients_split","content":"ccsp-lm-lite","type":"<event>","pollingFrequency":"0"},{"header":"Total_Hosts_Count_split","content":"ccsp-wifi-agent","type":"<event>","pollingFrequency":"0"},{"header":"bootuptime_wifi_split","content":"boot_to_WIFI_uptime=","type":"BootTime.log","pollingFrequency":"0"},{"header":"bootuptime_Ethernet_split","content":"boot_to_ETH_uptime=","type":"BootTime.log","pollingFrequency":"0"},{"header":"bootuptime_ClientConnectComplete_split","content":"ccsp-lm-lite","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_INFO_clientdisconnect","content":"ccsp-lm-lite","type":"<event>","pollingFrequency":"0"},{"header":"UPDays_split","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"UPTIME_split","content":"Device.DeviceInfo.UpTime","type":"<message_bus>","pollingFrequency":"24"},{"header":"CMMAC_split","content":"Device.DeviceInfo.X_COMCAST-COM_CM_MAC","type":"<message_bus>","pollingFrequency":"24"},{"header":"XDNS_split","content":"Device.DeviceInfo.X_RDKCENTRAL-COM_EnableXDNS","type":"<message_bus>","pollingFrequency":"48"},{"header":"xwifi2g_split","content":"Device.WiFi.SSID.5.Enable","type":"<message_bus>","pollingFrequency":"4"},{"header":"xwifienable_split","content":"Device.DeviceInfo.X_COMCAST_COM_xfinitywifiEnable","type":"<message_bus>","pollingFrequency":"4"},{"header":"2G_Radio_Status_split","content":"Device.WiFi.Radio.1.Status","type":"<message_bus>","pollingFrequency":"24"},{"header":"5G_Radio_Status_split","content":"Device.WiFi.Radio.2.Status","type":"<message_bus>","pollingFrequency":"24"},{"header":"HWREV_split","content":"Device.DeviceInfo.HardwareVersion","type":"<message_bus>","pollingFrequency":"96"},{"header":"FT_split","content":"Device.DeviceInfo.FirstUseDate","type":"<message_bus>","pollingFrequency":"80"},{"header":"LT_split","content":"Device.Time.CurrentLocalTime","type":"<message_bus>","pollingFrequency":"0"},{"header":"LoadAvg_split","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"SYS_ERROR_PSMCrash_reboot","content":"Psm_crash","type":"BootTime.log","pollingFrequency":"0"},{"header":"SYS_INFO_Hostname_changed","content":"ccsp-lm-lite","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_ERROR_PSM_GetRecordFail","content":"ccsp-wifi-agent","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_INFO_CosaWifiinit","content":"ccsp-wifi-agent","type":"<event>","pollingFrequency":"0"},{"header":"SYS_INFO_CaptivePortal","content":"WiFi SSID and Passphrase are not modified","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"btime_moca_split","content":"boot_to_MOCA_uptime=","type":"BootTime.log","pollingFrequency":"0"},{"header":"bootuptime_SNMPV2Ready_split","content":"boot_to_snmp_subagent_v2_uptime","type":"BootTime.log","pollingFrequency":"0"},{"header":"btime_wcpenter_split","content":"Enter_WiFi_Personalization_captive_mode:","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_SH_RDKB_FIREWALL_RESTART","content":"LAN HANDLER : Triggering RDKB_FIREWALL_RESTART after nfqhandler","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"btime_laninit_split","content":"Lan_init_complete:","type":"ArmConsolelog.txt.0","pollingFrequency":"0"},{"header":"btime_laninit_split","content":"Laninit_complete=","type":"BootTime.log","pollingFrequency":"0"},{"header":"btime_waninit_split","content":"Waninit_complete=","type":"BootTime.log","pollingFrequency":"0"},{"header":"btime_waninit_split","content":"Wan_init_complete:","type":"ArmConsolelog.txt.0","pollingFrequency":"0"},{"header":"btime_wanup_split","content":"boot_to_wan_uptime=","type":"BootTime.log","pollingFrequency":"0"},{"header":"btime_webpa_split","content":"boot_to_WEBPA_READY_uptime=","type":"WEBPAlog.txt.0","pollingFrequency":"0"},{"header":"btime_webpa_split","content":"boot_to_WEBPA_READY_uptime=","type":"BootTime.log","pollingFrequency":"0"},{"header":"MAXRX_1_split","content":"ccsp-wifi-agent","type":"<event>","pollingFrequency":"0"},{"header":"MAXTX_1_split","content":"ccsp-wifi-agent","type":"<event>","pollingFrequency":"0"},{"header":"SYS_SH_DhcpArpProcess_restart","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"SYS_SH_PAM_CRASH_RESTART","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"SYS_ERROR_5min_avg_cpu_100","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_INFO_2GPrivateSSID_OFF","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"SYS_SH_WebPA_restart","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_ERROR_WIFI_Not_Registered","content":"ccsp-cr","type":"<event>","pollingFrequency":"0"},{"header":"SYS_ERROR_PSM_Not_Registered","content":"ccsp-cr","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_ERROR_WifiDmCliError","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"RF_ERROR_IPV4PingFailed","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"RF_ERROR_IPV4IPV6PingFailed","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_INFO_2G_DISABLED","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"SYS_INFO_LOGS_UPLOADED","content":"sysint-broadband","type":"<event>","pollingFrequency":"0"},{"header":"SYS_ERROR_DHCP_RANGE_CORRUPTION","content":"bad dhcp-range at line","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_SegFault","content":"Segmentation fault","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_ip_address_recovered","content":"sysevent_set_wr: ipv4_wan_ipaddr","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"RF_INFO_RDKB_FIREWALL_RESTART","content":"Triggering RDKB_FIREWALL_RESTART","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_Factory_reset","content":"Received reboot_reason as:factory-reset","type":"BootTime.log","pollingFrequency":"0"},{"header":"SYS_INFO_SW_upgrade_reboot","content":"Software_upgrade","type":"BootTime.log","pollingFrequency":"0"},{"header":"XCONF_Dwld_failed","content":"ccsp-xconf","type":"<event>","pollingFrequency":"0"},{"header":"bootuptime_EnterWifiCaptivemode_split","content":"Enter_WiFi_Personalization_captive_mode:","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_WANSSH_enabled","content":"FillPartnerIDValues - Enabling SSH on WAN side","type":"PAMlog.txt.0","pollingFrequency":"0"},{"header":"Log_upload_disabled","content":"Log upload is disabled","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_ParodusDown","content":"Unable to connect to server since interface is down","type":"PARODUSlog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_ParodusCurlOK","content":"PARODUS: cURL success","type":"PARODUSlog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_TR69_Not_Registered","content":"ccsp-cr","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_ACS_2_split","content":"Device.WiFi.Radio.2.AutoChannelEnable","type":"<message_bus>","pollingFrequency":"4"},{"header":"WIFI_INFO_Zero_5G_Clients","content":"ccsp-wifi-agent","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_INFO_Zero_2G_Clients","content":"ccsp-wifi-agent","type":"<event>","pollingFrequency":"0"},{"header":"UsedMem_split","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"UsedCPU_split","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_NF_2_split","content":"Device.WiFi.Radio.2.Stats.X_COMCAST-COM_NoiseFloor","type":"<message_bus>","pollingFrequency":"24"},{"header":"WIFI_NF_1_split","content":"Device.WiFi.Radio.1.Stats.X_COMCAST-COM_NoiseFloor","type":"<message_bus>","pollingFrequency":"24"},{"header":"HWREV_split","content":"Device.DeviceInfo.HardwareVersion","type":"<message_bus>","pollingFrequency":"24"},{"header":"WIFI_ERROR_Wifi_query_timeout","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"SYS_INFO_Create_GRE_Tunnel","content":"ccsp-hotspot","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_INFO_Hotspot_client_disconnected","content":"ccsp-hotspot","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_INFO_Hotspot_client_connected","content":"ccsp-hotspot","type":"<event>","pollingFrequency":"0"},{"header":"SYS_INFO_Hotspot_MaxClients","content":"ccsp-hotspot","type":"<event>","pollingFrequency":"0"},{"header":"WIFI_INFO_ClientTransitionToXfininityWifi","content":"ccsp-hotspot","type":"<event>","pollingFrequency":"0"},{"header":"Total_Ethernet_Clients_split","content":"ccsp-lm-lite","type":"<event>","pollingFrequency":"0"},{"header":"Total_online_clients_split","content":"ccsp-lm-lite","type":"<event>","pollingFrequency":"0"},{"header":"Total_devices_connected_split","content":"ccsp-lm-lite","type":"<event>","pollingFrequency":"0"},{"header":"Total_offline_clients_split","content":"ccsp-lm-lite","type":"<event>","pollingFrequency":"0"},{"header":"Total_wifi_clients_split","content":"ccsp-lm-lite","type":"<event>","pollingFrequency":"0"},{"header":"Total_moca_clients_split","content":"ccsp-lm-lite","type":"<event>","pollingFrequency":"0"},{"header":"SYS_ERROR_CPU100","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"}],"schedule":"2","expires":0,"telemetryProfile:name":"RDKB-RPI-TEST","uploadRepository:URL":"http://xconf.rdkcentral.com/xconf/telemetry_upload.php","uploadRepository:uploadProtocol":"HTTP"}
root@RaspberryPi-Gateway:~# 

RPI device Logs

Successful communication logs between device and xconf server in /rdklogs/logs/telemetry2_0.txt.0,

...

In T2, Receiving events from RDKB components  and comparing those events in Uploaded Makers list in xconf in /rdklogs/logs/telemetry2_0.txt.0,

JSON Report

Successful logs for sending the JSON report to xconf server in /rdklogs/logs/telemetry2_0.txt.0,

Configuration file

  • Once the profile details are successfully retrieved , the conf file will be created under /nvram/.t2persistentfolder/DCMresponse.txt which has the server configurations 


Log File

$ cat /rdklogs/logs/telemetry2_0.txt.0

...

$ cat /rdklogs/logs/dcmscript.log

Log upload onto HTTPS Server

Verify that Json file  displayed in HTTPS server → https://xconf.rdkcentral.com/xconf/upload/display.php?mode=telemetry

JSON file upload

  • open the uploaded json file and ensure the parameters

...

https://xconf.rdkcentral.com/xconf/upload/e45f010d7886_TELE_01-03-2023-09-35AM.json


       


Telemetry Version : 2.0.1 - Multiprofile

 

Pre- requisites for enabling Telemetry2_0

Telemetry Version : 2.0.1 (by default telemetry version as 1)

...

Below screenshot for enabling the T2 process of version 2.0.1 in rpi,


After reboot the device,

Telemetry 2.0 Report Profiles

Telemetry 2 brings multi-profile support to RDK telemetry. This allows for multiple report profiles to be active on a device at one time, each with their own data and reporting configuration. Specific profiles may be targeted to data for specific purposes, such as WiFi Happiness, Deviceinfo information or many other areas.  Telemetry 2.0 Report Profiles are supported along with legacy Telemetry 1.0/1.1 configurations, so that T2.0 Report Profiles can be actively added and removed without disturbing legacy telemetry. 

...

Telemetry 2.0 allows for an RDK device to be updated with a set of T2 profiles at any time.

T2 DataModel

There are 2 parameters under T2 report profiles,

S.NODMDescription
1Device.X_RDKCENTRAL-COM_T2.ReportProfiles Value must be JSON configuration blob in string
2Device.X_RDKCENTRAL-COM_T2.ReportProfilesMsgPackValue must be JSON configuration blob in base 64 encoded msgpack format

DMCLI SET Command for T2 Report Profile 


Code Block
languagebash
themeDJango
titledmcli command
collapsetrue
dmcli eRT setv Device.X_RDKCENTRAL-COM_T2.ReportProfiles string '{"profiles":[{"name":"RDKB_CCSPWiFi_Profile","hash":"hash1","value":{"Name":"RDKB_CCSPWifi_Profile","Description":"Report to check WiFi Parameters","Version":"1","Protocol":"HTTP","EncodingType":"JSON","ReportingInterval":180,"TimeReference":"0001-01-01T00:00:00Z","ActivationTimeOut":1800,"Parameter":[{"type":"dataModel","reference":"Profile.Name"},{"type":"dataModel","reference":"Profile.Version"},{"type":"dataModel","reference":"Device.WiFi.Radio.1.Stats.X_COMCAST-COM_NoiseFloor"},{"type":"event","eventName":"2GclientMac_split","component":"wifihealth","use":"absolute"},{"type":"event","eventName":"5GclientMac_split","component":"wifihealth","use":"absolute"},{"type":"event","name":"wifiradio WIFI_COUNT","eventName":"WIFI_MAC_1_TOTAL_COUNT:0","component":"wifiradio","use":"count","reportEmpty":false},{"type":"dataModel","name":"UPTIME","reference":"Device.DeviceInfo.UpTime","use":"absolute"}],"HTTP":{"URL":"https://xconf.rdkcentral.com/xconf/telemetry_upload.php","Compression":"None","Method":"POST","RequestURIParameter":[{"Name":"deviceId","Reference":"Device.DeviceInfo.X_COMCAST-COM_CM_MAC"},{"Name":"reportName","Reference":"Profile.Name"}]},"JSONEncoding":{"ReportFormat":"NameValuePair","ReportTimestamp":"None"}}},{"name":"RDKB_SelfHeal_Profile","hash":"hash2","value":{"Name":"RDKB_SelfHeal_Profile","Description":"Report to check SelfHeal Parameters","Version":"2","Protocol":"HTTP","EncodingType":"JSON","ReportingInterval":180,"TimeReference":"0001-01-01T00:00:00Z","ActivationTimeOut":1800,"Parameter":[{"type":"dataModel","reference":"Profile.Name"},{"type":"dataModel","reference":"Profile.Version"},{"type":"dataModel","name":"UPTIME","reference":"Device.DeviceInfo.UpTime","use":"absolute"},{"type":"dataModel","reference":"Device.DeviceInfo.UpTime","use":"absolute"},{"type":"event","eventName":"SYS_ERROR_AdvSecurity_NotRunning","component":"SELF_HEAL","use":"absolute"},{"type":"event","eventName":"SYS_SH_lighttpdCrash","component":"test-and-diagnostic","use":"count","reportEmpty":false},{"type":"dataModel","name":"WAN_SSH_STATUS","reference":"Device.DeviceInfo.X_RDKCENTRAL-COM_Syndication.WANsideSSH.Enable","use":"absolute"}],"HTTP":{"URL":"https://xconf.rdkcentral.com/xconf/telemetry_upload.php","Compression":"None","Method":"POST","RequestURIParameter":[{"Name":"deviceId","Reference":"Device.DeviceInfo.X_COMCAST-COM_CM_MAC"},{"Name":"reportName","Reference":"Profile.Name"}]},"JSONEncoding":{"ReportFormat":"NameValuePair","ReportTimestamp":"None"}}}]}'

Dmcli Get 


RPI Device Logs

cJSON Report

Log Upload

https://xconf.rdkcentral.com/xconf/upload/_TELE_05-27-2021-11-27AM.json

...

https://xconf.rdkcentral.com/xconf/upload/_TELE_05-27-2021-11-26AM.json

Telemtry 2.0 ProfileMsgPack

The Telemetry 2.0 Component must support T2 report profiles in msgPack format.

...

    1. Type: base64 (base64-encoded msgPack)
      Access: Read and Write access
      Persistence: Not persisted
      Factory default: Null string
      Usage: When set, T2.0 will use the value of this parameter to configure its T2 active report profiles, as defined in Configuring Active T2.0 Profiles, below.
  1. The T2.0 Parameter Device.X_RDKCENTRAL-COM_T2.ReportProfiles that accepts T2 report profiles in JSON format will be deprecated. While deprecated, if report profiles are received via both ReportProfiles and ReportProfilesMsgPack, the last configuration received will be respected.
  2. The T2.0 Component must continue to concurrently support the legacy telemetry report profile received from XConf DCM response in JSON format.

Sample JSON Profile


Code Block
languagebash
themeRDark
titleJSON
collapsetrue
{
  "profiles": [
    {
    "name": "RDKB_WIFI_DM_PROFILE",
    "hash": "hash1",
    "value": {
    "Description": "Report to DeviceInfo",
    "Version":"2",
    "Protocol":"HTTP",
    "EncodingType":"JSON",
    "ReportingInterval":60,
    "TimeReference":"0001-01-01T00:00:00Z",
    "ActivationTimeout": 120,
    "Parameter": [
        {"type":"dataModel","reference":"Profile.Name"},{"type":"dataModel","reference":"Profile.Version"},
        {
            "type": "dataModel", "name": "CmMac",
            "reference": "Device.DeviceInfo.X_COMCAST-COM_CM_MAC"
        }, {
            "type": "dataModel", "name": "2G-SSID",
            "reference": "Device.WiFi.SSID.1.SSID"
        }, {
            "type": "dataModel", "name": "5G-SSID",
            "reference": "Device.WiFi.SSID.2.SSID"
        }, {
            "type": "dataModel", "name": "2G-Name",
            "reference": "Device.WiFi.Radio.1.Name"
        }, {
            "type": "dataModel", "name": "5G-Name",
            "reference": "Device.WiFi.Radio.2.Name"
        }, {
            "type": "dataModel", "name": "2G-PWD",
            "reference": "Device.WiFi.AccessPoint.1.Security.KeyPassphrase"
        }, {
            "type": "dataModel", "name": "5G-PWD",
            "reference": "Device.WiFi.AccessPoint.2.Security.KeyPassphrase"
        }, {
            "type": "dataModel", "name": "2G-Mode",
            "reference": "Device.WiFi.AccessPoint.1.Security.ModeEnabled"
        }, {
            "type": "dataModel", "name": "5G-Mode",
            "reference": "Device.WiFi.AccessPoint.2.Security.ModeEnabled"
        }, {
            "type": "dataModel", "name": "MemStatUsed",
            "reference": "Device.DeviceInfo.MemoryStatus.Used"
        }, {
            "type": "dataModel", "name": "FrMemThrshld",
            "reference": "Device.DeviceInfo.MemoryStatus.X_RDKCENTRAL-COM_FreeMemThreshold"
        }, {
            "type": "dataModel", "name": "CpuUsage",
            "reference": "Device.DeviceInfo.ProcessStatus.CPUUsage"
        }, {
            "type": "dataModel", "name": "Uptime",
            "reference": "Device.DeviceInfo.UpTime"
        }],
    "HTTP": {
        "URL":"https://xconf.rdkcentral.com/xconf/telemetry_upload.php",
        "Compression":"None",
        "Method":"POST",
        "RequestURIParameter": [
            {
              "Name": "deviceId",
              "Reference": "Device.DeviceInfo.X_COMCAST-COM_CM_MAC"
            },
            {
              "Name": "reportName",
              "Reference": "Profile.Name"
            }
        ]
    },
    "JSONEncoding": {
        "ReportFormat":"NameValuePair",
        "ReportTimestamp": "None"
    }
   }
   }
  ]
}

Convert JSON into base-64

                T2 Report Profiles can still be authored in JSON. They will just need to be sent through a msgPack and base64 process, like at https://toolslick.com/conversion/data/json-to-messagepack#, to get msgPacked data that has been base64 encoded. Choose Output Type "Base 64".

dmcli set


dmcli eRT setv Device.X_RDKCENTRAL-COM_T2.ReportProfilesMsgPack string 3wAAAAGocHJvZ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lcmVuY2WsUHJvZmlsZS5OYW1lrEpTT05FbmNvZGluZ98AAAACrFJlcG9ydEZvcm1hdK1OYW1lVmFsdWVQYWlyr1JlcG9ydFRpbWVzdGFtcKROb25l

Image Modified

dmcli Get


profiles.msgpack


Telemetry 2 Log data

cJSON Report

Image ModifiedLog upload


Telemetry 2.0 Report Profiles Generation in xconf,

  1. In xconf > Telemetry > Telemetry 2.0 Profiles > create

Image Modified

 2. In xconf > Telemetry > Telemetry 2.0 Rules > create

...

https://xconf.rdkcentral.com:9092/loguploader/getTelemetryProfiles?estbMacAddress=b8:27:eb:1b:56:4c&firmwareVersion=rdkb-generic-broadband-image_rdk-next_20210329055811&model=&partnerId=RDKM&accountId=&ecmMacAddress=B8:27:EB:1B:56:4C&env=dev&controllerId=2504&channelMapId=2345&vodId=15660&version=2

Report Profiles Validation through WebPA Commands

check the webpa running status before executing the T2 Report Profiles commands,

root@RaspberryPi-Gateway:~# ps aux | grep webpa
 5046 root      0:00 /usr/bin/parodus --hw-model=RPI --hw-serial-number=00000000a31b564c --hw-manufacturer=Raspberry --hw-last-reboot-reason=unknown --fw-name=rdkb-generic-broadband-image_TDK_rdk-next_20210526115302 --boot-time=1622141278 --hw-mac=B8:27:EB:1B:56:4C --webpa-ping-time=180 --webpa-interface-used=erouter0 --webpa-url=http://54.148.37.189:8080 --webpa-backoff-max=9 --parodus-local-url=tcp://127.0.0.1:6666 --partner-id=comcast --ssl-cert-path=/etc/ssl/certs/ca-certificates.crt --force-ipv4
 5070 root      0:00 /usr/bin/webpa &
 5632 root      0:00 grep webpa
root@RaspberryPi-Gateway:~# 

ReportProfilesMsgPack

Webpa Set



Webpa Get 

Device Logs

Limitations

                      The above screenshots and test logs are generated in dbus mode because rbus is not supported in rpi.

Also, webconfig support is not available in RPI . So T2 related testing with webconfig are not validated yet.

References


  https://github.com/rdkcentral/xconfserver/blob/main/README.md

...