RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Configure the below details to dcm.properties
BD-1004 : Removed IP/Links for open sourcing
# DCM properties file
# Log server details
LOG_SERVER=xconf.rdkcentral.com
# Log upload server details
DCM_LOG_SERVER=http://52.0.158.162:8080/telemetry-collector/rdkv-collector
DCM_LOG_SERVER_URL=https://xconf.rdkcentral.com:19092/loguploader/getT2Settings
# SCP server details
DCM_SCP_SERVER=xconf.rdkcentral.com
# LA server details
DCM_LA_SERVER_URL=http://52.0.158.162:8080/telemetry-collector/rdkv-collector
2. Set the Required RFC values
tr181 -s -t boolean -v true Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.Enable
tr181 -s -t string -v 2.0.1 Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.Version
tr181 -s -t string -v https://xconf.rdkcentral.com:19092/loguploader/getT2Settings Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.ConfigURL
3. Verify RFC values are loaded
root@mediaclient-mediabox:~# tr181 Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.Enable
true
root@mediaclient-mediabox:~# tr181 Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.Version
2.0.1
root@mediaclient-mediabox:~# tr181 Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.ConfigURL
https://xconf.rdkcentral.com:9092/loguploader/getT2Setting
4. Reboot the device
5. Check the telemetry service and pid of telemetry
systemctl status telemetry2_0.service
pidof telemetry2_0
6. Set the telemetry profile with Rbuscli command in the /opt/.t2reportprofiles
rbuscli setvalues Device.X_RDKCENTRAL-COM_T2.ReportProfiles string '{
"profiles": [
{
"name": "RDKV-Profile",
"hash": "hash1",
"value": {
"Name": "RDKV-Profile",
"Description": "Report to check Eth Parameters",
"Version": "1",
"Protocol": "HTTP",
"EncodingType": "JSON",
"ReportingInterval": 60,
"TimeReference": "0001-01-01T00:00:00Z",
"Parameter": [
{
"type": "event",
"eventName": "FREE_MEM_split",
"component": "sysint",
"use": "absolute"
},
{
"type": "dataModel",
"name": "CmMac",
"reference": "Device.DeviceInfo.X_COMCAST-COM_CM_MAC"
},
{
"type": "dataModel",
"name": "ClearResetCount",
"reference": "Device.DeviceInfo.ClearResetCount"
},
{
"type": "dataModel",
"name": "Desc",
"reference": "Device.DeviceInfo.Description"
},
{
"type": "dataModel",
"reference": "Device.DeviceInfo.FactoryResetCount"
},
{
"type": "dataModel",
"name": "MemFree",
"reference": "Device.DeviceInfo.Hardware_MemFree"
},
{
"type": "dataModel",
"name": "MemUsed",
"reference": "Device.DeviceInfo.Hardware_MemUsed"
},
{
"type": "dataModel",
"name": "HwVer",
"reference": "Device.DeviceInfo.HardwareVersion"
},
{
"type": "dataModel",
"name": "MemStatFree",
"reference": "Device.DeviceInfo.MemoryStatus.Free"
},
{
"type": "dataModel",
"name": "MemStatTotal",
"reference": "Device.DeviceInfo.MemoryStatus.Total"
},
{
"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"
},
{
"type": "event",
"eventName": "FREE_MEM_split",
"component": "sysint",
"use": "absolute"
},
{
"type": "event",
"eventName": "USED_MEM_split",
"component": "sysint",
"use": "absolute"
},
{
"type": "event",
"eventName": "cpuinfo_split",
"component": "sysint",
"use": "absolute"
},
{
"type": "event",
"eventName": "vmstats_split",
"component": "sysint",
"use": "absolute"
},
{
"type": "grep",
"marker": "USED_MEM_split",
"search": "USED_MEM:",
"logFile": "messages.txt"
},
{
"type": "grep",
"marker": "prev_reboot_split",
"search": "PreviousRebootInfo:",
"logFile": "parodus.log"
},
{
"type": "grep",
"marker": "Load_Average",
"search": "load average: ",
"logFile": "messages.txt"
},
{
"type": "dataModel",
"name": "mac",
"reference": "Device.DeviceInfo.X_COMCAST-COM_STB_MAC"
},
{
"type": "dataModel",
"name": "Time",
"reference": "Device.Time.X_RDK_CurrentUTCTime"
}
],
"HTTP": {
"URL": "http://52.0.158.162:8080/telemetry-collector/rdkv-collector",
"Compression": "None",
"Method": "POST",
"RequestURIParameter": [
{
"Name": "deviceId",
"Reference": "Device.DeviceInfo.MACAddress"
},
{
"Name": "reportName",
"Reference": "Profile.Name"
}
]
},
"JSONEncoding": {
"ReportFormat": "NameValuePair",
"ReportTimestamp": "Unix-Epoch"
}
}
}
]
}'
7. Verify the profile using Rbuscli get command
rbuscli get Device.X_RDKCENTRAL-COM_T2.ReportProfiles
8. Edit /etc/debug.ini and add the DEBUG ERROR
vi /etc/debug.ini
-LOG.RDK.T2 = ALL FATAL ERROR WARNING NOTICE !INFO DEBUG +LOG.RDK.T2 = ALL FATAL ERROR WARNING NOTICE INFO DEBUG ERROR
9. Verify the cjson report is generating in the /opt/logs/telemetry2_0.txt.0
2024-11-08T10:23:44.082Z telemetry2_0[4032]: 241108-10:23:44.082313 [mod=T2, lvl=INFO] [tid=8684] cJSON Report = {"Report":[{"Desc":"TR-181, TR-135 and Comcast specific Datamodel Configuration"},{"HwVer":"c03114"},{"MemStatFree":"3403132"},{"MemStatTotal":"3896640"},{"CpuUsage":"7"},{"Uptime":"752"},{"mac":"E45F016AB68C"}]}
2024-11-08T10:23:44.597Z telemetry2_0[4032]: 241108-10:23:44.597497 [mod=T2, lvl=INFO] [tid=8684] Report Sent Successfully over HTTP : 200
10. Verify the configured markers are showing in the telemetry Dashboard.
Following parameters are showing in the dashboard