...
| No Format |
|---|
root@raspberrypi4-64-rdke:/opt/persistent# curl -d '{"jsonrpc":"2.0","id":"3","method": "org.rdk.System.setTimeZoneDST","params": {"timeZone": "America/New_York"}}' http://127.0.0.1:9998/jsonrpc
{"jsonrpc":"2.0","id":3,"result":{"success":true}}
root@raspberrypi4-64-rdke:/opt/persistent# cat timeZoneDST
America/New_York
root@raspberrypi4-64-rdke:/opt/persistent#
|
4) Set Get the Telemetry URL
| No Format |
|---|
tr181 -s -t string -v https://xconf.rdkcentral.com/loguploader/getT2Settings g Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.ConfigURL https://xconf.rdkcentral.com/loguploader/getT2Settings tr181 -g Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.ConfigURL tr181 -s -t string -v Version 2.0.1 Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.Version tr181 -g Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.Version |
5) Restart telemetry2_0
| Code Block | ||
|---|---|---|
| ||
systemctl restart telemetry2_0.service |
Telemetry2_0 adds support for RDK Components to send their telemetry data to the T2 component for reporting. This allows for moving away from the CPU-intensive process of searching through log files for telemetry strings.
For Configuring T2
...
profiles in XCONF UI, webconfig support is mandatory. Currently telemetry2 is validated using rbuscli command.
| Jira | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
Example :
| Code Block |
|---|
rbuscli setvalues Device.X_RDKCENTRAL-COM_T2.ReportProfiles string '{
"profiles": [
{
"name": "RDKE_TEST_Profile",
"hash": "hash1",
"value": {
"Name": "RDKE_TEST_Profile",
"Description": "Report to check Parameters",
"Version": "0.1",
"Protocol": "HTTP",
"EncodingType": "JSON",
"ReportingInterval": 30,
"TimeReference": "0001-01-01T00:00:00Z",
"Parameter": [
{
"type": "dataModel",
"name": "NTPServer3",
"reference": "Device.Time.NTPServer3"
},
{
"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": "event",
"eventName": "Xi_wifiMAC_split",
"component": "sysint", "use": "absolute"
},
{
"type": "event",
"eventName": "SYST_ERR_LogUpload_Failed",
"component": "sysint",
"use": "count",
"reportEmpty": false
},
{
"type": "grep",
"marker": "NW_DNSMASQ",
"search": "starting /usr/bin/dnsmasq",
"logFile": "NetworkManager.log",
"use": "absolute"
},
{
"type": "dataModel",
"name": "CpuUsage",
"reference": "Device.DeviceInfo.ProcessStatus.CPUUsage"
},
{
"type": "dataModel",
"name": "Uptime",
"reference": "Device.DeviceInfo.UpTime"
}
],
"HTTP": {
"URL": "https://xconf.rdkcentral.com/logTelemetryServer/telemetry_upload.php",
"Compression": "None",
"Method": "POST",
"RequestURIParameter": [
{
"Name": "device",
"Reference": "Device.DeviceInfo.X_COMCAST-COM_STB_MAC"
}
]
},
"JSONEncoding": {
"ReportFormat": "NameValuePair",
"ReportTimestamp": "Unix-Epoch"
}
}
}
]
}' |
Once this is configured, you can see the profile available in path /opt/.t2reportprofiles
| Code Block |
|---|
root@raspberrypi4-64-rdke:~# cat /opt/.t2reportprofiles/RDKE_test_profile
{"Name":"RDKE_TEST_Profile","Description":"Report to check Parameters","Version":"0.1","Protocol":"HTTP","EncodingType":"JSON","ReportingInterval":30,"TimeReference":"0001-01-01T00:00:00Z","Parameter":[{"type":"dataModel", |
...
| Code Block |
|---|
root@raspberrypi4-64-rdke:~# cat /opt/.t2reportprofiles/RDKE_test_profile {"EncodingType":"JSON","HTTP":{"Compression":"None","Method":"POST","RequestURIParameter":[{"Name":"device","Reference":"Device.DeviceInfo.X_COMCAST-COM_CM_MAC"}],"URL":"https://xconf.rdkcentral.com/logTelemetryServer/telemetry_upload.php"},"JSONEncoding":{"ReportFormat":"NameValuePair","ReportTimestamp":"None"},"Parameter":[{"name":"NTPServer3","reference":"Device.Time.NTPServer3"},{"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"},{"componenttype":"sysintevent","eventName":"Xi_wifiMAC_split","typecomponent":"eventsysint","use":"absolute"},{"componenttype":"sysintevent","eventName":"SYST_ERR_LogUpload_Failed","reportEmpty":false,"typecomponent":"eventsysint","use":"count","reportEmpty":false},{"logFiletype":"NetworkManager.loggrep","marker":"NW_DNSMASQ","search":"starting /usr/bin/dnsmasq","typelogFile":"grepNetworkManager.log","use":"absolute"},{"type":"dataModel","name":"CpuUsage","reference":"Device.DeviceInfo.ProcessStatus.CPUUsage"},{"type":"dataModel"},{"name":"Uptime","reference":"Device.DeviceInfo.UpTime"}],"type"HTTP":{"URL":"https://xconf.rdkcentral.com/logTelemetryServer/telemetry_upload.php","Compression":"dataModelNone"}],"ProtocolMethod":"HTTPPOST","ReportingInterval"RequestURIParameter":[{"Name":30"device","TimeReferenceReference":"0001-01-01T00:00:00ZDevice.DeviceInfo.X_COMCAST-COM_STB_MAC"}]},"JSONEncoding":{"ReportFormat":"NameValuePair","VersionReportTimestamp":"0.1"Unix-Epoch"},"Hash":"dca68b4fhash1"}root@raspberrypi4-64-rdke:~# root@raspberrypi4-64-rdke:~# |
...