RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
subdoc_name : privatessid
...
subdoc_name : lan
subdoc_data :
...
MAC : CPE_MAC (Ex : d83add3c5cc3)
2. In CPE , trigger the ForceSync as "root"
3. Using dmcli to check the DM
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
root@RaspberryPi-Gateway:/# dmcli eRT getv Device.DHCPv4.Server.Pool.1.MinAddress CR component name is: eRT.com.cisco.spvtg.ccsp.CR subsystem_prefix eRT. getv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.DHCPv4.Server.Pool.1.MinAddress Execution succeed. Parameter 1 name: Device.DHCPv4.Server.Pool.1.MinAddress type: string, value: 10.0.0.8 root@RaspberryPi-Gateway:/# dmcli eRT getv Device.DHCPv4.Server.Pool.1.LeaseTime CR component name is: eRT.com.cisco.spvtg.ccsp.CR subsystem_prefix eRT. getv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.DHCPv4.Server.Pool.1.LeaseTime Execution succeed. Parameter 1 name: Device.DHCPv4.Server.Pool.1.LeaseTime type: int, value: 7200 root@RaspberryPi-Gateway:/# dmcli eRT getv Device.DHCPv4.Server.Pool.1.MaxAddress CR component name is: eRT.com.cisco.spvtg.ccsp.CR subsystem_prefix eRT. getv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.DHCPv4.Server.Pool.1.MaxAddress Execution succeed. Parameter 1 name: Device.DHCPv4.Server.Pool.1.MaxAddress type: string, value: 10.0.0.240 |
44. Success Logs
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
240423-06:06:16.534327 [mod=WEBCONFIG, lvl=INFO] [tid=3692] WEBCONFIG: doc lan is updated to version 627376240 status pending error_details none error_code 0 trans_id 0 temp->retry_count 0 240423-06:06:16.534921 [mod=WEBCONFIG, lvl=INFO] [tid=3692] WEBCONFIG: subdoc_name: lan, version: 627376240, transaction_id: 8517 240423-06:06:16.535035 [mod=WEBCONFIG, lvl=INFO] [tid=3692] WEBCONFIG: doc lan is updated to version 627376240 status pending error_details none error_code 0 trans_id 8517 temp->retry_count 0 240423-06:06:16.535104 [mod=WEBCONFIG, lvl=INFO] [tid=3692] WEBCONFIG: Request:> param[0].name = Device.DHCPv4.Server.Lan, type = 5 240423-06:06:16.538867 [mod=WEBCONFIG, lvl=INFO] [tid=2793] WEBCONFIG: Received msg lan,8517,627376240,ACK,13 from topic webconfigSignal 240423-06:06:16.538964 [mod=WEBCONFIG, lvl=INFO] [tid=2793] WEBCONFIG: Received webconfig event signal Info lan,8517,627376240,ACK,13 240423-06:06:16.539538 [mod=WEBCONFIG, lvl=INFO] [tid=3699] WEBCONFIG: TIMEOUT EVENT: lan,8517,627376240,ACK,13 (doc apply need time) 240423-06:06:16.539607 [mod=WEBCONFIG, lvl=INFO] [tid=3699] WEBCONFIG: doc apply need time, start timer. 240423-06:06:16.539665 [mod=WEBCONFIG, lvl=INFO] [tid=3699] WEBCONFIG: Timer list is empty 240423-06:06:16.539725 [mod=WEBCONFIG, lvl=INFO] [tid=3699] WEBCONFIG: new_node->subdoc_name lan new_node->txid 8517 new_node->timeout 13 status 1 added to list 240423-06:06:16.539780 [mod=WEBCONFIG, lvl=INFO] [tid=3699] WEBCONFIG: startWebcfgTimer success 240423-06:06:16.540403 [mod=WEBCONFIG, lvl=INFO] [tid=3693] WEBCONFIG: dest is event:subdoc-report/lan/mac:d83add3c5cc3/ack 240423-06:06:16.540489 [mod=WEBCONFIG, lvl=INFO] [tid=3693] WEBCONFIG: stringifiedNotifyPayload is {"device_id":"mac:d83add3c5cc3","namespace":"lan","application_status":"pending","timeout":13,"transaction_uuid":"bc673958-91ea-4b7b-b068-1c7d9252417f","version":"627376240"} 240423-06:06:16.540695 [mod=WEBCONFIG, lvl=INFO] [tid=3693] WEBCONFIG: Notification successfully sent to Webconfig.Upstream 240423-06:06:16.540700 [mod=WEBCONFIG, lvl=INFO] [tid=3692] WEBCONFIG: The ret status for rbus_setMulti is 0 240423-06:06:16.541295 [mod=WEBCONFIG, lvl=INFO] [tid=3692] WEBCONFIG: ccspRetStatus is 100 240423-06:06:16.541364 [mod=WEBCONFIG, lvl=INFO] [tid=3692] WEBCONFIG: setValues success. ccspStatus : 100 |
...
subdoc_name: wan
subdoc_data :
...
MAC : CPE_MAC (Ex : d83add3c5cc3)
22. In CPE , trigger root as ForceSync
33. Using dmcli to check the DM,
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
root@RaspberryPi-Gateway:/usr/www2# dmcli eRT getv Device.NAT.X_CISCO_COM_DMZ.Enable CR component name is: eRT.com.cisco.spvtg.ccsp.CR subsystem_prefix eRT. getv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.NAT.X_CISCO_COM_DMZ.Enable Execution succeed. Parameter 1 name: Device.NAT.X_CISCO_COM_DMZ.Enable type: bool, value: true root@RaspberryPi-Gateway:/usr/www2# dmcli eRT getv Device.NAT.X_CISCO_COM_DMZ.InternalIP CR component name is: eRT.com.cisco.spvtg.ccsp.CR subsystem_prefix eRT. getv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.NAT.X_CISCO_COM_DMZ.InternalIP Execution succeed. Parameter 1 name: Device.NAT.X_CISCO_COM_DMZ.InternalIP type: string, value: 10.0.0.17 |
4. Success Logs
...
subdoc_name : port_forwardingportforwarding
subdoc_data :
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[ { "InternalClient": "10.0.0.111", "ExternalPortEndRange": "23", "Enable": "true", "Protocol": "TCP/UDP", "Description": "telnet", "ExternalPort": "23" }, { "InternalClient": "10.0.0.112", "ExternalPortEndRange": "25", "Enable": "true", "Protocol": "TCP/UDP", "Description": "mail", "ExternalPort": "25" }, { "InternalClient": "10.0.0.102", "ExternalPortEndRange": "443", "Enable": "true", "Protocol": "TCP/UDP", "Description": "https", "ExternalPort": "443" } ] |
...
MAC : CPE_MAC (Ex : d83add3c5cc3)
2. In CPE, trigger ForceSync as root
3 3. Using dmcli to check the DM
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
root@RaspberryPi-Gateway:~# dmcli eRT getv Device.NAT. CR component name is: eRT.com.cisco.spvtg.ccsp.CR subsystem_prefix eRT. getv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.NAT. Execution succeed. Parameter 1 name: Device.NAT.X_CISCO_COM_TCPTimeout type: uint, value: 0 Parameter 2 name: Device.NAT.X_CISCO_COM_UDPTimeout type: uint, value: 0 Parameter 3 name: Device.NAT.X_CISCO_COM_ICMPTimeout type: uint, value: 0 Parameter 4 name: Device.NAT.X_Comcast_com_EnablePortMapping type: bool, value: true Parameter 5 name: Device.NAT.X_Comcast_com_EnableHSPortMapping type: bool, value: true Parameter 6 name: Device.NAT.X_Comcast_com_EnableNATMapping type: bool, value: false Parameter 7 name: Device.NAT.PortMappingNumberOfEntries type: uint, value: 3 Parameter 8 name: Device.NAT.X_CISCO_COM_DMZ.Enable type: bool, value: false Parameter 9 name: Device.NAT.X_CISCO_COM_DMZ.RemoteIPStart type: string, value: Parameter 10 name: Device.NAT.X_CISCO_COM_DMZ.RemoteIPEnd type: string, value: Parameter 11 name: Device.NAT.X_CISCO_COM_DMZ.InternalIP type: string, value: 0.0.0.0 Parameter 12 name: Device.NAT.X_CISCO_COM_DMZ.InternalMAC type: string, value: Parameter 13 name: Device.NAT.X_CISCO_COM_DMZ.IPv6Host type: string, value: Parameter 14 name: Device.NAT.X_CISCO_COM_DMZ.Data type: string, value: Parameter 15 name: Device.NAT.PortMapping.1.Enable type: bool, value: true Parameter 16 name: Device.NAT.PortMapping.1.Status type: string, value: Enabled Parameter 17 name: Device.NAT.PortMapping.1.Alias type: string, value: Parameter 18 name: Device.NAT.PortMapping.1.AllInterfaces type: bool, value: true Parameter 19 name: Device.NAT.PortMapping.1.LeaseDuration type: uint, value: 0 Parameter 20 name: Device.NAT.PortMapping.1.ExternalPort type: uint, value: 23 Parameter 21 name: Device.NAT.PortMapping.1.ExternalPortEndRange type: uint, value: 23 Parameter 22 name: Device.NAT.PortMapping.1.InternalPort type: uint, value: 0 Parameter 23 name: Device.NAT.PortMapping.1.Protocol type: string, value: BOTH Parameter 24 name: Device.NAT.PortMapping.1.InternalClient type: string, value: 10.0.0.111 Parameter 25 name: Device.NAT.PortMapping.1.RemoteHost type: string, value: 0.0.0.0 Parameter 26 name: Device.NAT.PortMapping.1.X_Comcast_com_PublicIP type: string, value: 0.0.0.0 Parameter 27 name: Device.NAT.PortMapping.1.Description type: string, value: telnet Parameter 28 name: Device.NAT.PortMapping.1.Interface type: string, value: Parameter 29 name: Device.NAT.PortMapping.1.X_CISCO_COM_InternalClientV6 type: string, value: x Parameter 30 name: Device.NAT.PortMapping.2.Enable type: bool, value: true Parameter 31 name: Device.NAT.PortMapping.2.Status type: string, value: Enabled Parameter 32 name: Device.NAT.PortMapping.2.Alias type: string, value: Parameter 33 name: Device.NAT.PortMapping.2.AllInterfaces type: bool, value: true Parameter 34 name: Device.NAT.PortMapping.2.LeaseDuration type: uint, value: 0 Parameter 35 name: Device.NAT.PortMapping.2.ExternalPort type: uint, value: 25 Parameter 36 name: Device.NAT.PortMapping.2.ExternalPortEndRange type: uint, value: 25 Parameter 37 name: Device.NAT.PortMapping.2.InternalPort type: uint, value: 0 Parameter 38 name: Device.NAT.PortMapping.2.Protocol type: string, value: BOTH Parameter 39 name: Device.NAT.PortMapping.2.InternalClient type: string, value: 10.0.0.112 Parameter 40 name: Device.NAT.PortMapping.2.RemoteHost type: string, value: 0.0.0.0 Parameter 41 name: Device.NAT.PortMapping.2.X_Comcast_com_PublicIP type: string, value: 0.0.0.0 Parameter 42 name: Device.NAT.PortMapping.2.Description type: string, value: mail Parameter 43 name: Device.NAT.PortMapping.2.Interface type: string, value: Parameter 44 name: Device.NAT.PortMapping.2.X_CISCO_COM_InternalClientV6 type: string, value: x Parameter 45 name: Device.NAT.PortMapping.3.Enable type: bool, value: true Parameter 46 name: Device.NAT.PortMapping.3.Status type: string, value: Enabled Parameter 47 name: Device.NAT.PortMapping.3.Alias type: string, value: Parameter 48 name: Device.NAT.PortMapping.3.AllInterfaces type: bool, value: true Parameter 49 name: Device.NAT.PortMapping.3.LeaseDuration type: uint, value: 0 Parameter 50 name: Device.NAT.PortMapping.3.ExternalPort type: uint, value: 443 Parameter 51 name: Device.NAT.PortMapping.3.ExternalPortEndRange type: uint, value: 443 Parameter 52 name: Device.NAT.PortMapping.3.InternalPort type: uint, value: 0 Parameter 53 name: Device.NAT.PortMapping.3.Protocol type: string, value: BOTH Parameter 54 name: Device.NAT.PortMapping.3.InternalClient type: string, value: 10.0.0.102 Parameter 55 name: Device.NAT.PortMapping.3.RemoteHost type: string, value: 0.0.0.0 Parameter 56 name: Device.NAT.PortMapping.3.X_Comcast_com_PublicIP type: string, value: 0.0.0.0 Parameter 57 name: Device.NAT.PortMapping.3.Description type: string, value: https Parameter 58 name: Device.NAT.PortMapping.3.Interface type: string, value: Parameter 59 name: Device.NAT.PortMapping.3.X_CISCO_COM_InternalClientV6 type: string, value: x Parameter 60 name: Device.NAT.X_RDK_PortMapping.Data type: string, value: Parameter 61 name: Device.NAT.X_CISCO_COM_PortTriggers.Enable type: bool, value: false Parameter 62 name: Device.NAT.X_CISCO_COM_PortTriggers.TriggerNumberOfEntries type: uint, value: 0 |
4. Success Logs
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
root@RaspberryPi-Gateway:/nvram/.t2reportprofiles# webcfg_decoder -m profiles.msgpack rbus_open for component webcfg_decoder rbus_init is success. ret is 0 msgpack decoded data is: {"profiles":[{"name":"DM_DEVICEINFO_PROFILE", "versionHash":"cf3d1060", "value":{"Protocol":"HTTP", "EncodingType":"JSON", "ReportingInterval":600.000000, "ActivationTimeOut":1800.000000, "Parameter":[{"reference":"Device.DeviceInfo.X_COMCAST-COM_CM_MAC", "type":"dataModel", "name":"CmMacT1"}, {"type":"dataModel", "name":"ClearResetCount", "reference":"Device.DeviceInfo.ClearResetCount"}, {"type":"dataModel", "name":"Desc", "reference":"Device.DeviceInfo.Description"}, {"reference":"Device.DeviceInfo.FactoryResetCount", "type":"dataModel"}, {"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"}, {"name":"Uptime", "reference":"Device.DeviceInfo.UpTime", "type":"dataModel"}], "Version":"1", "TimeReference":"0001-01-01T00:00:00Z", "HTTP":{"Compression":"None", "Method":"POST", "RequestURIParameter":[{"Name":"deviceId", "Reference":"Device.DeviceInfo.X_COMCAST-COM_CM_MAC"}, {"Name":"profileName", "Reference":"Profile.Name"}], "URL":"https://xconf.rdkcentral.com/xconf/telemetry_upload.php"}, "JSONEncoding":{"ReportFormat":"NameValuePair", "ReportTimestamp":"None"}}}, {"name":"RDKB-RPI-SELFHEALPROFILE", "versionHash":"de899a23", "value":{"Protocol":"HTTP", "EncodingType":"JSON", "ReportingInterval":600.000000, "HTTP":{"URL":"https://xconf.rdkcentral.com/xconf/telemetry_upload.php", "Compression":"None", "Method":"POST", "RequestURIParameter":[{"Name":"deviceId", "Reference":"Device.DeviceInfo.X_COMCAST-COM_CM_MAC"}, {"Name":"profileName", "Reference":"Profile.Name"}]}, "Description":"Report to check SelfHeal Parameters", "TimeReference":"0001-01-01T00:00:00Z", "ActivationTimeOut":1800.000000, "Parameter":[{"type":"dataModel", "name":"Profile", "reference":"Device.DeviceInfo.X_RDK.RDKProfileName"}, {"type":"dataModel", "name":"Time", "reference":"Device.Time.CurrentLocalTime"}, {"reference":"Device.DeviceInfo.X_COMCAST-COM_WAN_MAC", "type":"dataModel", "name":"mac"}, {"type":"dataModel", "name":"erouterIpv4", "reference":"Device.DeviceInfo.X_COMCAST-COM_WAN_IP"}, {"type":"dataModel", "name":"erouterIpv6", "reference":"Device.DeviceInfo.X_COMCAST-COM_WAN_IPv6"}, {"type":"dataModel", "name":"PartnerId", "reference":"Device.DeviceInfo.X_RDKCENTRAL-COM_Syndication.PartnerId"}, {"name":"Version", "reference":"Device.DeviceInfo.SoftwareVersion", "type":"dataModel"}, {"type":"dataModel", "name":"AccountId", "reference":"Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AccountInfo.AccountID"}, {"type":"dataModel", "name":"MAC", "reference":"Device.DeviceInfo.X_COMCAST-COM_CM_MAC"}, {"type":"dataModel", "reference":"Profile.Name"}, {"type":"dataModel", "reference":"Profile.Version"}, {"reference":"Device.DeviceInfo.UpTime", "use":"absolute", "type":"dataModel", "name":"UpTime"}, {"type":"event", "eventName":"SYS_ERROR_AdvSecurity_NotRunning", "component":"test_and_diagnostics", "use":"absolute"}, {"type":"event", "eventName":"SYS_SH_lighttpdCrash", "component":"test_and_diagnostics", "use":"count", "reportEmpty":false}, {"reportEmpty":false, "type":"event", "name":"FirmwareStart_Time", "eventName":"Firmware upgrade start time :", "component":"test_and_diagnostics", "use":"count"}, {"name":"WAN_SSH_STATUS", "reference":"Device.DeviceInfo.X_RDKCENTRAL-COM_Syndication.WANsideSSH.Enable", "use":"absolute", "type":"dataModel"}], "JSONEncoding":{"ReportFormat":"NameValuePair", "ReportTimestamp":"None"}, "Version":"1"}}, {"versionHash":"3f7b4f1b", "value":{"ReportingInterval":600.000000, "Parameter":[{"type":"dataModel", "name":"Profile", "reference":"Device.DeviceInfo.X_RDK.RDKProfileName"}, {"logFile":"BootTime.log", "use":"absolute", "type":"grep", "marker":"bootuptime_Ethernet_split", "search":"boot_to_ETH_uptime"}, {"marker":"bootuptime_wifi_split", "search":"boot_to_WIFI_uptime", "logFile":"BootTime.log", "use":"absolute", "type":"grep"}, {"marker":"bootuptime_tr069_split", "search":"boot_to_tr069_uptime", "logFile":"BootTime.log", "use":"absolute", "type":"grep"}, {"search":"Waninit_complete", "logFile":"BootTime.log", "use":"absolute", "type":"grep", "marker":"waninit_split"}, {"search":"boot_to_WEBPA_READY_uptime", "logFile":"BootTime.log", "use":"absolute", "type":"grep", "marker":"bootuptime_webpa_split"}, {"type":"grep", "marker":"bootuptime_meshagent_split", "search":"boot_to_meshagent_uptime", "logFile":"BootTime.log", "use":"absolute"}, {"type":"dataModel", "name":"MAC", "reference":"Device.DeviceInfo.X_COMCAST-COM_CM_MAC"}, {"type":"dataModel", "reference":"Profile.Name"}, {"reference":"Profile.Version", "type":"dataModel"}, {"name":"UpTime", "reference":"Device.DeviceInfo.UpTime", "use":"absolute", "type":"dataModel"}, {"component":"test_and_diagnostics", "use":"absolute", "type":"event", "eventName":"SYS_ERROR_AdvSecurity_NotRunning"}, {"component":"test_and_diagnostics", "use":"count", "reportEmpty":false, "type":"event", "eventName":"SYS_SH_lighttpdCrash"}, {"type":"event", "name":"FirmwareStart_Time", "eventName":"Firmware upgrade start time :", "component":"test_and_diagnostics", "use":"count", "reportEmpty":false}], "HTTP":{"URL":"https://xconf.rdkcentral.com/xconf/telemetry_upload.php", "Compression":"None", "Method":"POST", "RequestURIParameter":[{"Name":"deviceId", "Reference":"Device.DeviceInfo.X_COMCAST-COM_CM_MAC"}, {"Name":"profileName", "Reference":"Profile.Name"}]}, "Description":"Report to check BootTime Parameters", "Version":"1", "TimeReference":"0001-01-01T00:00:00Z", "ActivationTimeOut":1800.000000, "JSONEncoding":{"ReportFormat":"NameValuePair", "ReportTimestamp":"None"}, "Protocol":"HTTP", "EncodingType":"JSON"}, "name":"RDKB-RPI-BootTime-Logs"}], "subdoc_name":"telemetry", "version":3672340881, "transaction_id":30695} root@RaspberryPi-Gateway:/nvram/.t2reportprofiles# |
77. Check the telemetry logs to confirm whether JSON report is generated properly or not (here, created 3 profiles in xconf server i,e
...