Versions Compared

Key

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

...

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.

Image Added