RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
Panel | ||
---|---|---|
| ||
b. Verification via curl command
The curl command mocks the request being sent from an STB like below and sample response is also given. It can be given as a curl command or as a get request via postman or browser. The same url used for logupload verification can be used here too, the response will have telemetry settings data like below (urn:settings:TelemetryProfile)
The new API for Telemetry is getT2Settings. It will take the same parameters as the current API, /loguploader/getSettings.
If the component name has been defined for an entry, the response will be in the new format. The second and third columns for that entry will not be used in the response. The content field comes from the fifth column (component name). The type field will be a constant string "<event>".
Example for getT2Settings:
{"header":"MEDIA_ERROR_NETWORK_ERROR","content":"com.cisco.spvtg.ccsp.meshagent","type":"<event>","pollingFrequency":"0"}
If the component name has not been defined for an entry, the response will be in the current format.
Example for getSettings:
{"header":"MEDIA_ERROR_NETWORK_ERROR","content":"onMediaError NETWORK ERROR(10)","type":"receiver.log","pollingFrequency":"0"}
...
Code Block |
---|
{ "urn:settings:GroupName": "RDKM_TEST", "urn:settings:CheckOnReboot": true, "urn:settings:CheckSchedule:cron": "2 1 2 1 1", "urn:settings:CheckSchedule:DurationMinutes": 0, "urn:settings:LogUploadSettings:Message": null, "urn:settings:LogUploadSettings:Name": "RDKM_TEST", "urn:settings:LogUploadSettings:NumberOfDays": 1, "urn:settings:LogUploadSettings:UploadRepositoryName": "RDKM_TEST", "urn:settings:LogUploadSettings:RepositoryURL": "http://xconf.rdkcentral.com/xconf/logupload.php", "urn:settings:LogUploadSettings:UploadOnReboot": true, "urn:settings:LogUploadSettings:UploadImmediately": false, "urn:settings:LogUploadSettings:upload": true, "urn:settings:LogUploadSettings:UploadSchedule:cron": "2 1 1 1 1", "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": "69e37757-b463-47aa-94a8-2ce438e26a50", "telemetryProfile": [ { "header": "Firewall", "content": "starting firewall service", "type": "FirewallDebug.txt", "pollingFrequency": "1" }, { "header": "MEDIA_ERROR_NETWORK_ERROR", "content": "onMediaError NETWORK ERROR(10)", "type": "receiver.log", "pollingFrequency": "1" } ], "schedule": "3", "expires": 0, "telemetryProfile:name": "RDKM_TEST", "uploadRepository:URL": "http://xconf.rdkcentral.com/xconf/logupload.php", "uploadRepository:uploadProtocol": "HTTP" } } |
eg :
$ curl 'http://<XCONF_IP>: 19092/loguploader/getT2Settings?estbMacAddress=B8:27:EB:BE:D7:12’
...