Versions Compared

Key

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

...

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":"http://35.161.239.220/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":"http://35.161.239.220/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

...

    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":"http://35.161.239.220/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

...