You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


Introduction

While migrating to Telemetry2.0 from  DCA telemetry, the traditional log grepping is targetted to reduce as much as possible by instrumenting the  markers coming from RDKB components.To achieve this, RDKB components are supposed make required changes with the use of APIs from Telemetry 2.0 shared library.

RDKB Telemetry Components

  1.   Xconf Server
  2.   BPI with rdkb image
  3.   telemetry2_0

Environment Setup

2.1.  Pre- requisites for Single Profile


Pre-requisites
root@Filogic-GW:~# dmcli eRT getv Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
Execution succeed.
Parameter    1 name: Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.Enable
               type:       bool,    value: true 
Parameter    2 name: Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.ConfigURL
               type:     string,    value: https://xconf.rdkcentral.com:19092/loguploader/getT2Settings 
Parameter    3 name: Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.Version
               type:     string,    value: 2.0.1 
Parameter    4 name: Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.MessageBusSource.Enable
               type:       bool,    value: true 
Parameter    5 name: Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.Telemetry.MTLS.Enable
               type:       bool,    value: false 


2. touch /nvram/enable_t2_debug

Note : After board boot up, disable log rotation by using the command: 

$ systemctl disable rdkbLogMonitor


2. Refer below url to configure xconf for Telemetry

Feature Validation : Xconf Server#FeatureValidation:Telemetry

3. Restart the Telemetry Service

systemctl restart CcspTelemetry


T2 Process
root@Filogic-GW:~# systemctl status CcspTelemetry
● CcspTelemetry.service - CcspTelemetry service
     Loaded: loaded (/lib/systemd/system/CcspTelemetry.service; enabled; vendor preset: enabled)
     Active: active (exited) since Mon 2024-09-02 05:39:56 UTC; 1min 16s ago
    Process: 3449 ExecStartPre=/bin/sh -c /bin/touch /rdklogs/logs/dcmscript.log (code=exited, status=0/SUCCESS)
    Process: 3470 ExecStartPre=/bin/sh -c sleep 2 (code=exited, status=0/SUCCESS)
    Process: 4595 ExecStart=/bin/sh -c /lib/rdk/StartDCM.sh >> /rdklogs/logs/telemetry.log & (code=exited, status=0/SUCCESS)
   Main PID: 4595 (code=exited, status=0/SUCCESS)
     CGroup: /system.slice/CcspTelemetry.service
             ├─  4597 /bin/sh /lib/rdk/StartDCM.sh
             ├─  4818 /usr/bin/telemetry2_0
             └─ 39562 sleep 5

4. Check the below path whether DCMresponse txt file is created or not

DCMresponse.txt
root@Filogic-GW:/nvram/.t2persistentfolder# cat DCMresponse.txt 
{"urn:settings:GroupName":"RPI4-MINIMAL-TEST","urn:settings:CheckOnReboot":true,"urn:settings:CheckSchedule:cron":"2 1 1 1 1","urn:settings:CheckSchedule:DurationMinutes":0,"urn:settings:LogUploadSettings:Message":null,"urn:settings:LogUploadSettings:Name":"RPI4-MINIMAL-TEST","urn:settings:LogUploadSettings:NumberOfDays":1,"urn:settings:LogUploadSettings:UploadRepositoryName":"RPI-MINIMAL-TEST-LOGUPLOAD","urn:settings:LogUploadSettings:UploadRepository:URL":"https://xconf.rdkcentral.com/xconf/telemetry_upload.php","urn:settings:LogUploadSettings:UploadRepository:uploadProtocol":"HTTPS","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":"04e97048-4b56-4680-b88a-7dc73dc794d0","telemetryProfile":[{"header":"PAM","content":"enteredhotspot_update_circuit_ids","type":"PAMlog.txt.0","pollingFrequency":"0"},{"header":"Total_Hosts_Count_split","content":"RDK_LOG_WARN, Total Hosts Count is","type":"WiFilog.txt.0","pollingFrequency":"0"},{"header":"bootuptime_wifi_split","content":"boot_to_WIFI_uptime=","type":"BootTime.log","pollingFrequency":"0"},{"header":"bootuptime_Ethernet_split","content":"boot_to_ETH_uptime=","type":"BootTime.log","pollingFrequency":"0"},{"header":"bootuptime_ClientConnectComplete_split","content":"Client_Connect_complete:","type":"LM.txt.0","pollingFrequency":"0"},{"header":"WIFI_INFO_clientdisconnect","content":"HostName gone offline","type":"LM.txt.0","pollingFrequency":"0"},{"header":"UPDays_split","content":"UPTIMEDAY:","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"UPTIME_split","content":"Device.DeviceInfo.UpTime","type":"<message_bus>","pollingFrequency":"0"},{"header":"CMMAC_split","content":"Device.DeviceInfo.X_COMCAST-COM_CM_MAC","type":"<message_bus>","pollingFrequency":"0"},{"header":"XDNS_split","content":"Device.DeviceInfo.X_RDKCENTRAL-COM_EnableXDNS","type":"<message_bus>","pollingFrequency":"0"},{"header":"2G_Radio_Status_split","content":"Device.WiFi.Radio.1.Status","type":"<message_bus>","pollingFrequency":"0"},{"header":"5G_Radio_Status_split","content":"Device.WiFi.Radio.2.Status","type":"<message_bus>","pollingFrequency":"0"},{"header":"FT_split","content":"Device.DeviceInfo.FirstUseDate","type":"<message_bus>","pollingFrequency":"0"},{"header":"LT_split","content":"Device.Time.CurrentLocalTime","type":"<message_bus>","pollingFrequency":"0"},{"header":"SYS_ERROR_PSMCrash_reboot","content":"Psm_crash","type":"BootTime.log","pollingFrequency":"0"},{"header":"SYS_INFO_Hostname_changed","content":"Hostname Changed","type":"LM.txt.0","pollingFrequency":"0"},{"header":"WIFI_ERROR_PSM_GetRecordFail","content":"PSM_Get_Record_Value2 Faliled for BSSTransitionActivated on wlanIndex:","type":"WiFiLog.txt.0","pollingFrequency":"0"},{"header":"WIFI_INFO_CosaWifiinit","content":"RDKB_SYSTEM_BOOT_UP_LOG : CosaWifiInit","type":"WiFiLog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_CaptivePortal","content":"WiFi SSID and Passphrase are not modified","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"btime_moca_split","content":"boot_to_MOCA_uptime=","type":"BootTime.log","pollingFrequency":"0"},{"header":"bootuptime_SNMPV2Ready__split","content":"boot_to_snmp_subagent_v2_uptime=","type":"BootTime.log","pollingFrequency":"0"},{"header":"btime_wcpenter_split","content":"Enter_WiFi_Personalization_captive_mode:","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_SH_RDKB_FIREWALL_RESTART","content":"LAN HANDLER : Triggering RDKB_FIREWALL_RESTART after nfqhandler","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"btime_laninit_split","content":"Lan_init_complete:","type":"ArmConsolelog.txt.0","pollingFrequency":"0"},{"header":"btime_laninit_split","content":"Laninit_complete=","type":"BootTime.log","pollingFrequency":"0"},{"header":"btime_waninit_split","content":"Waninit_complete=","type":"BootTime.log","pollingFrequency":"0"},{"header":"btime_waninit_split","content":"Wan_init_complete:","type":"ArmConsolelog.txt.0","pollingFrequency":"0"},{"header":"btime_wanup_split","content":"boot_to_wan_uptime=","type":"BootTime.log","pollingFrequency":"0"},{"header":"btime_webpa_split","content":"boot_to_WEBPA_READY_uptime=","type":"WEBPAlog.txt.0","pollingFrequency":"0"},{"header":"btime_webpa_split","content":"boot_to_WEBPA_READY_uptime=","type":"BootTime.log","pollingFrequency":"0"},{"header":"MAXRX_1_split","content":"WIFI_MAX_RXCLIENTS_1:","type":"wifihealth.txt","pollingFrequency":"0"},{"header":"MAXTX_1_split","content":"WIFI_MAX_TXCLIENTS_1:","type":"wifihealth.txt","pollingFrequency":"0"},{"header":"SYS_SH_DhcpArpProcess_restart","content":"DhcpArp_process is not running","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"SYS_SH_PAM_CRASH_RESTART","content":"RDKB_PROCESS_CRASHED : PAM_process is not running, need restart","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_5min_avg_cpu_100","content":"5 minutes of CPU Avg monitor window is 100","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"WIFI_INFO_2GPrivateSSID_OFF","content":"2.4G private SSID (ath0) is off","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"SYS_SH_WebPA_restart","content":"WebPA_process is not running","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"WIFI_ERROR_WIFI_Not_Registered","content":"wifi' v1 NotRegistered","type":"CRlog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_PSM_Not_Registered","content":"psm' v1 NotRegistered","type":"CRlog.txt.0","pollingFrequency":"0"},{"header":"WIFI_ERROR_WifiDmCliError","content":"Parameter cannot be found on WiFi subsystem","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"RF_ERROR_IPV4PingFailed","content":"Ping to IPv4 Gateway Address failed","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"RF_ERROR_IPV4IPV6PingFailed","content":"Ping to both IPv4 and IPv6 Gateway Address failed","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"WIFI_INFO_2G_DISABLED","content":"SSID 2.4GHZ is disabled","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_LOGS_UPLOADED","content":"LOGS UPLOADED SUCCESSFULLY, RETURN CODE: 200","type":"ArmConsolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_DHCP_RANGE_CORRUPTION","content":"bad dhcp-range at line","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_SegFault","content":"Segmentation fault","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_ip_address_recovered","content":"sysevent_set_wr: ipv4_wan_ipaddr","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"RF_INFO_RDKB_FIREWALL_RESTART","content":"Triggering RDKB_FIREWALL_RESTART","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_Factory_reset","content":"Received reboot_reason as:factory-reset","type":"BootTime.log","pollingFrequency":"0"},{"header":"bootuptime_EnterWifiCaptivemode_split","content":"Enter_WiFi_Personalization_captive_mode:","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_WANSSH_enabled","content":"FillPartnerIDValues - Enabling SSH on WAN side","type":"PAMlog.txt.0","pollingFrequency":"0"},{"header":"Log_upload_disabled","content":"Log upload is disabled","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_ParodusDown","content":"Unable to connect to server since interface is down","type":"PARODUSlog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_ParodusCurlOK","content":"PARODUS: cURL success","type":"PARODUSlog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_TR69_Not_Registered","content":"tr069pa' v1 NotRegistered","type":"CRlog.txt.0","pollingFrequency":"0"},{"header":"WIFI_ACS_2_split","content":"Device.WiFi.Radio.2.AutoChannelEnable","type":"<message_bus>","pollingFrequency":"0"},{"header":"WIFI_INFO_Zero_5G_Clients","content":"WIFI_MAC_2_TOTAL_COUNT:0","type":"wifihealth.txt","pollingFrequency":"0"},{"header":"WIFI_INFO_Zero_2G_Clients","content":"WIFI_MAC_1_TOTAL_COUNT:0","type":"wifihealth.txt","pollingFrequency":"0"},{"header":"UsedMem_split","content":"USED_MEM:","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"UsedCPU_split","content":"USED_CPU:","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"WIFI_NF_2_split","content":"Device.WiFi.Radio.2.Stats.X_COMCAST-COM_NoiseFloor","type":"<message_bus>","pollingFrequency":"0"},{"header":"WIFI_NF_1_split","content":"Device.WiFi.Radio.1.Stats.X_COMCAST-COM_NoiseFloor","type":"<message_bus>","pollingFrequency":"0"},{"header":"HWREV_split","content":"Device.DeviceInfo.HardwareVersion","type":"<message_bus>","pollingFrequency":"0"},{"header":"WIFI_ERROR_Wifi_query_timeout","content":"Wifi query timeout","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"Total_Ethernet_Clients_split","content":"RDKB_CONNECTED_CLIENTS:Total_Ethernet_Clients=","type":"LM.txt.0","pollingFrequency":"0"},{"header":"Total_online_clients_split","content":"RDKB_CONNECTED_CLIENTS:Total_Online_Clients=","type":"LM.txt.0","pollingFrequency":"0"},{"header":"Total_devices_connected_split","content":"RDKB_CONNECTED_CLIENTS:Total_Clients_Connected=","type":"LM.txt.0","pollingFrequency":"0"},{"header":"Total_offline_clients_split","content":"RDKB_CONNECTED_CLIENTS:Total_Offline_Clients=","type":"LM.txt.0","pollingFrequency":"0"},{"header":"Total_wifi_clients_split","content":"RDKB_CONNECTED_CLIENTS:Total_WiFi_Clients=","type":"LM.txt.0","pollingFrequency":"0"},{"header":"Total_moca_clients_split","content":"RDKB_CONNECTED_CLIENTS:Total_MoCA_Clients=","type":"LM.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_CPU100","content":"RDKB_CPU_USAGE : CPU usage is 100","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_WaitingFor_Stack_Init","content":"Waiting for stack to come up completely to upload logs","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_LOGS_UPLOADED","content":"LOGS UPLOADED SUCCESSFULLY, RETURN CODE: 200","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_LogFile_truncated","content":"File to be uploaded is","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_INFO_bootup","content":"Device is up after reboot","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"WIFI_ERRORSSENT_1","content":"Device.WiFi.AccessPoint.1.AssociatedDevice.1.","type":"wifihealth.txt","pollingFrequency":"0"},{"header":"WIFI_ERRORSSENT_2","content":"Device.WiFi.AccessPoint.2.AssociatedDevice.1.","type":"wifihealth.txt","pollingFrequency":"0"},{"header":"cpuinfo","content":"Device.DeviceInfo.ProcessStatus.CPUUsage","type":"<message_bus>","pollingFrequency":"0"},{"header":"memnfo","content":"Device.DeviceInfo.MemoryStatus.Used","type":"<message_bus>","pollingFrequency":"0"},{"header":"rdkb_rebootreason_split","content":"Received reboot_reason as","type":"BootTime.log","pollingFrequency":"0"},{"header":"Total_2G_clients_split","content":"RDKB_CONNECTED_CLIENTS:Total_WiFi-2.4G_Clients=","type":"LM.txt.0","pollingFrequency":"0"},{"header":"Total_5G_clients_split","content":"RDKB_CONNECTED_CLIENTS:Total_WiFi-5.0G_Clients=","type":"LM.txt.0","pollingFrequency":"0"},{"header":"memfree","content":"Device.DeviceInfo.MemoryStatus.Free","type":"<message_bus>","pollingFrequency":"0"},{"header":"bootup_time","content":"Device.DeviceInfo.X_RDKCENTRAL-COM_BootTime","type":"<message_bus>","pollingFrequency":"0"},{"header":"NTP_enabled","content":"Service_NTP : Enabling Network Time Sync","type":"PAMlog.txt.0","pollingFrequency":"0"},{"header":"2GSSIDAdv_split","content":"Device.WiFi.AccessPoint.1.SSIDAdvertisementEnabled","type":"<message_bus>","pollingFrequency":"0"},{"header":"5GSSIDAdv_split","content":"Device.WiFi.AccessPoint.2.SSIDAdvertisementEnabled","type":"<message_bus>","pollingFrequency":"0"},{"header":"WIFI_INFO_skipSSID","content":"WiFi Agent is not running skipping getSsidNames","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_Factory_reset","content":"Received reboot_reason as:factory-reset","type":"BootTime.log","pollingFrequency":"0"},{"header":"SYS_ERROR_NoSpaceLeft","content":"No space left on device","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_cpuUSG100","content":"RDKB_SELFHEAL : CPU usage is 100","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_CCSP_Deadlock","content":"CCSP Deadlock happened","type":"PAMlog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_Tempfs_full","content":"100% tmp","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_PeerDown_reboot","content":"Received reboot_reason as:Peer_down","type":"BootTime.log","pollingFrequency":"0"},{"header":"SYS_ERROR_erouter_restart","content":"erouter0 does not have ipv6 address","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_KernelPanic_reboot","content":"Received reboot_reason as:kernel-panic","type":"BootTime.log","pollingFrequency":"0"},{"header":"SYS_ERROR_Parodus_curl_timeout","content":"unable to connect to remote host","type":"PARODUSlog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_Parodus_http400","content":"400 Bad Request: invalid header value","type":"PARODUSlog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_Erouter_not_created","content":"fconfig: erouter0: error fetching interface information: Device not found","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_OutOfMemory_reboot","content":"out_of_memory","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"WIFI_ERROR_WifiReboot","content":"WiFi is going to reboot now","type":"PAMlog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_nvram_readonly","content":"nvram2logswifihealth.txt: Read-only file system","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_snmp_reboot","content":"snmp-reboot","type":"BootTime.log","pollingFrequency":"0"},{"header":"SYS_ERROR_WEBPA_reboot","content":"webpa-reboot","type":"BootTime.log","pollingFrequency":"0"},{"header":"SYS_ERROR_WEBPASetFailure","content":"WEBPA: Failed to do atomic set hence rollbacking the changes","type":"WEBPAlog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_Webpareconnect_PingMiss","content":"Received reconnect_reason as:Ping_Miss","type":"PARODUSlog.txt.0","pollingFrequency":"0"},{"header":"SYS_ERROR_ParodusInit_error","content":"Error on libparodus init. Registration failed","type":"WEBPAlog.txt.0","pollingFrequency":"0"},{"header":"RF_ERROR_Wan_down","content":"wan_service-status is stopped, take log back up","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"RF_ERROR_wan_restart","content":"wan_service-status is started again, upload logs","type":"Consolelog.txt.0","pollingFrequency":"0"},{"header":"RF_ERROR_erouter_ip_loss","content":"Cannot get ipv4 address of netdev:erouter0","type":"PAMlog.txt.0","pollingFrequency":"0"},{"header":"Sys-info-captive-portal-status","content":"Device.DeviceInfo.X_RDKCENTRAL-COM_CaptivePortalEnable","type":"<message_bus>","pollingFrequency":"0"},{"header":"Host1RSSI","content":"Device.Hosts.Host.1.X_CISCO_COM_RSSI","type":"<message_bus>","pollingFrequency":"0"},{"header":"Host2RSSI","content":"Device.Hosts.Host.2.X_CISCO_COM_RSSI","type":"<message_bus>","pollingFrequency":"0"},{"header":"5gClient1RSSI","content":"Device.WiFi.AccessPoint.2.AssociatedDevice.1.X_COMCAST-COM_RSSI","type":"<message_bus>","pollingFrequency":"0"},{"header":"2gClient1RSSI","content":"Device.WiFi.AccessPoint.1.AssociatedDevice.1.X_COMCAST-COM_RSSI","type":"<message_bus>","pollingFrequency":"0"},{"header":"2GSSID_split","content":"Device.WiFi.SSID.1.SSID","type":"<message_bus>","pollingFrequency":"0"},{"header":"5GSSID_split","content":"Device.WiFi.SSID.2.SSID","type":"<message_bus>","pollingFrequency":"0"},{"header":"BM_split","content":"Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanMode","type":"<message_bus>","pollingFrequency":"0"},{"header":"WIFI_ACS_1_split","content":"Device.WiFi.Radio.2.AutoChannelEnable","type":"<message_bus>","pollingFrequency":"0"},{"header":"WIFI_CHANNEL_1","content":"Device.WiFi.Radio.1.Channel","type":"<message_bus>","pollingFrequency":"0"},{"header":"WIFI_CHANNEL_2","content":"Device.WiFi.Radio.2.Channel","type":"<message_bus>","pollingFrequency":"0"},{"header":"loadavg_test_split","content":"load average:","type":"dcmrfc.log","pollingFrequency":"0"},{"header":"currentCpu_split","content":"RDKB_SELFHEAL : Current CPU load is","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"HWMAN_split","content":"Device.DeviceInfo.Manufacturer","type":"<message_bus>","pollingFrequency":"0"},{"header":"MeshEnable","content":"Device.DeviceInfo.X_RDKCENTRAL-COM_xOpsDeviceMgmt.Mesh.Enable","type":"<message_bus>","pollingFrequency":"0"},{"header":"DeviceMode","content":"Device.X_CISCO_COM_DeviceControl.DeviceMode","type":"<message_bus>","pollingFrequency":"0"},{"header":"ParentalControlManageDevice_Enable","content":"Device.X_Comcast_com_ParentalControl.ManagedDevices.Enable","type":"<message_bus>","pollingFrequency":"0"},{"header":"ParentalControlManageSite_Enable","content":"Device.X_Comcast_com_ParentalControl.ManagedSites.Enable","type":"<message_bus>","pollingFrequency":"0"},{"header":"ParentalControlManageService_Enable","content":"Device.X_Comcast_com_ParentalControl.ManagedServices.Enable","type":"<message_bus>","pollingFrequency":"0"},{"header":"FirewallLevel","content":"Device.X_CISCO_COM_Security.Firewall.FirewallLevel","type":"<message_bus>","pollingFrequency":"0"},{"header":"PortForwarding_Enable","content":"Device.NAT.X_Comcast_com_EnablePortMapping","type":"<message_bus>","pollingFrequency":"0"},{"header":"DMZ_Enable","content":"Device.NAT.X_CISCO_COM_DMZ.Enable","type":"<message_bus>","pollingFrequency":"0"},{"header":"CWMP_Enable","content":"Device.ManagementServer.EnableCWMP","type":"<message_bus>","pollingFrequency":"0"},{"header":"CPUProcAnalyzer_Enable","content":"Device.SelfHeal.CPUProcAnalyzer.Enable","type":"<message_bus>","pollingFrequency":"0"},{"header":"ForwardSSH_Enable","content":"Device.DeviceInfo.X_RDKCENTRAL-COM_xOpsDeviceMgmt.ForwardSSH.Enable","type":"<message_bus>","pollingFrequency":"0"},{"header":"ReverseSSH_Status","content":"Device.DeviceInfo.X_RDKCENTRAL-COM_xOpsDeviceMgmt.ReverseSSH.xOpsReverseSshStatus","type":"<message_bus>","pollingFrequency":"0"},{"header":"SYS_INFO_SW_upgrade_reboot","content":"Software_upgrade","type":"BootTime.log","pollingFrequency":"0"},{"header":"SYS_ERROR_brlan0_not_created","content":"test-and-diagnostic","type":"<event>","pollingFrequency":"0"},{"header":"SYS_SH_lighttpdCrash","content":"lighttpd is not running, restarting it","type":"SelfHeal.txt.0","pollingFrequency":"0"},{"header":"SYS_SH_lighttpdCrash1","content":"core.prog_lighttpd.signal","type":"SelfHeal.txt.0","pollingFrequency":"0"}],"schedule":"*/5 * * * *","expires":0,"telemetryProfile:name":"RDKB-RPI-TEST","uploadRepository:URL":"https://xconf.rdkcentral.com/xconf/telemetry_upload.php","uploadRepository:uploadProtocol":"HTTPS"}}

5.  Telemetry logs for single Profile

Logs
root@Filogic-GW:/nvram/.t2persistentfolder# cat /rdklogs/logs/telemetry2_0.txt.0
240902-05:57:28.209105 [mod=T2, lvl=INFO] [tid=483247] Starting Telemetry 2.0 Process
240902-05:57:28.210295 [mod=T2, lvl=INFO] [tid=483257] Initializing Telemetry 2.0 Component
240902-05:57:28.210783 [mod=T2, lvl=INFO] [tid=483257] rbus.c:2771 rbus open for component: telemetry2_0

240902-05:57:28.210929 [mod=T2, lvl=INFO] [tid=483257] rbuscore.c:2326 RBus Enabled

240902-05:57:28.210999 [mod=T2, lvl=INFO] [tid=483257] rbuscore.c:643 Broker address: unix:///tmp/rtrouted

240902-05:57:28.211958 [mod=T2, lvl=INFO] [tid=483257] rbus.c:2847  rbus open (telemetry2_0) success

240902-05:57:28.213886 [mod=T2, lvl=ERROR] [tid=483257] getParameterValue partner id failed
240902-05:57:28.214050 [mod=T2, lvl=INFO] [tid=483257] rbuscore.c:2326 RBus Enabled

240902-05:57:28.214147 [mod=T2, lvl=INFO] [tid=483257] rbus_subscriptions.c:447 file /tmp/rbus_subs_telemetry2_0

240902-05:57:28.218551 [mod=T2, lvl=INFO] [tid=483257] NonRoot feature is enabled, dropping root privileges for Telemetry 2.0 Process
240902-05:57:28.221405 [mod=T2, lvl=INFO] [tid=483269] process_rp_thread: Waiting for event from tr-181 
240902-05:57:28.221468 [mod=T2, lvl=INFO] [tid=483257] rbuscore.c:2326 RBus Enabled

240902-05:57:28.221482 [mod=T2, lvl=INFO] [tid=483271] process_tmprp_thread: Waiting for event from tr-181 
240902-05:57:28.229742 [mod=T2, lvl=INFO] [tid=483257] rbuscore.c:2326 RBus Enabled

240902-05:57:28.229836 [mod=T2, lvl=INFO] [tid=483257] rbus.c:2771 rbus open for component: telemetry2_0_wbcfg

240902-05:57:28.230034 [mod=T2, lvl=INFO] [tid=483257] rbus.c:2847  rbus open (telemetry2_0_wbcfg) success

240902-05:57:28.230303 [mod=T2, lvl=ERROR] [tid=483257] rbus.c:3793 set by telemetry2_0_wbcfg failed; Received error 17 from RBUS Daemon for the object webconfigSignal

240902-05:57:28.236655 [mod=T2, lvl=INFO] [tid=483257] loadReportProfilesFromDisk 
240902-05:57:28.236739 [mod=T2, lvl=INFO] [tid=483257] JSON: loadReportProfilesFromDisk 
240902-05:57:28.238326 [mod=T2, lvl=INFO] [tid=483257] Returning 0 local configurations 
240902-05:57:28.238391 [mod=T2, lvl=INFO] [tid=483257] Completed processing 0 profiles on the disk,trying to fetch new/updated profiles
240902-05:57:28.242373 [mod=T2, lvl=INFO] [tid=483257] Returning 0 local configurations 
240902-05:57:28.242455 [mod=T2, lvl=INFO] [tid=483257] Init ReportProfiles Successful
240902-05:57:28.242573 [mod=T2, lvl=INFO] [tid=483257] Init Xconf Client Success
240902-05:57:28.242601 [mod=T2, lvl=INFO] [tid=483257] Telemetry 2.0 Component Init Success
240902-05:57:28.243210 [mod=T2, lvl=INFO] [tid=483290] Setting config URL base location to : https://xconf.rdkcentral.com:19092/loguploader/getT2Settings
240902-05:57:28.250621 [mod=T2, lvl=INFO] [tid=483290] doHttpGet with url https://xconf.rdkcentral.com:19092/loguploader/getT2Settings?estbMacAddress=a6:3e:00:03:22:04&firmwareVersion=rdkb-generic-broadband-image_rdk-next_20240902053956&model=BananapiBPI-R4&partnerId=RDKM&accountId=&ecmMacAddress=a6:3e:00:03:22:04&env=dev&controllerId=2504&channelMapId=2345&vodId=15660&version=2 
240902-05:57:28.251058 [mod=T2, lvl=INFO] [tid=483290] TR181_DEVICE_CURRENT_WAN_IFNAME -- erouter0
240902-05:57:28.251408 [mod=T2, lvl=ERROR] [tid=483290] getParameterValue partner id failed
240902-05:57:28.254300 [mod=T2, lvl=INFO] [tid=483295] TR181_DEVICE_CURRENT_WAN_IFNAME ---- erouter0
240902-05:57:29.565101 [mod=T2, lvl=INFO] [tid=483295] doHttpGet:608, T2:Telemetry XCONF communication success
240902-05:57:29.573325 [mod=T2, lvl=INFO] [tid=483290] Received profile name : RDKB-RPI-TEST with interval of : 300 secs and upload url : https://xconf.rdkcentral.com/xconf/telemetry_upload.php 
240902-05:57:29.573654 [mod=T2, lvl=INFO] [tid=483290] Number of tr181params/markers successfully added in profile = 140 
240902-05:57:29.577670 [mod=T2, lvl=INFO] [tid=483290] Starting TimeoutThread for profile : RDKB-RPI-TEST
240902-05:57:29.577866 [mod=T2, lvl=INFO] [tid=483290] Successfully set profile : RDKB-RPI-TEST
240902-05:57:29.577895 [mod=T2, lvl=INFO] [tid=483290] T2ER isn't initialized or dispatch thread isn't running
240902-05:57:29.577899 [mod=T2, lvl=INFO] [tid=483874] Waiting for 300 sec for next TIMEOUT for profile as reporting interval is taken - RDKB-RPI-TEST
240902-05:57:29.577921 [mod=T2, lvl=INFO] [tid=483290] rbuscore.c:2326 RBus Enabled

240902-05:57:29.577937 [mod=T2, lvl=INFO] [tid=483874] Waiting for timeref or reporting interval for the profile - RDKB-RPI-TEST is started
240902-05:57:29.577960 [mod=T2, lvl=INFO] [tid=483290] No data elements present to unregister240902-05:57:29.578685 [mod=T2, lvl=INFO] [tid=483290] Successfully set new profile : RDKB-RPI-TEST
240902-05:57:29.577895 [mod=T2, lvl=INFO] [tid=483290] T2ER isn't initialized or dispatch thread isn't running
240902-05:57:29.577899 [mod=T2, lvl=INFO] [tid=483874] Waiting for 300 sec for next TIMEOUT for profile as reporting interval is taken - RDKB-RPI-TEST
240902-05:57:29.577921 [mod=T2, lvl=INFO] [tid=483290] rbuscore.c:2326 RBus Enabled

240902-05:57:29.577937 [mod=T2, lvl=INFO] [tid=483874] Waiting for timeref or reporting interval for the profile - RDKB-RPI-TEST is started
240902-05:57:29.577960 [mod=T2, lvl=INFO] [tid=483290] No data elements present to unregister240902-05:57:29.578685 [mod=T2, lvl=INFO] [tid=483290] Successfully set new profile : RDKB-RPI-TEST
240902-08:40:52.859101 [mod=T2, lvl=INFO] [tid=483874] TIMEOUT for profile - RDKB-RPI-TEST
240902-08:40:52.859157 [mod=T2, lvl=INFO] [tid=483874] ReportProfiles_TimeoutCb ++in
240902-08:40:52.859290 [mod=T2, lvl=INFO] [tid=483874] ReportProfiles_TimeoutCb --out
240902-08:40:52.859313 [mod=T2, lvl=INFO] [tid=483874] Waiting for 300 sec for next TIMEOUT for profile as reporting interval is taken - RDKB-RPI-TEST
240902-08:40:52.859335 [mod=T2, lvl=INFO] [tid=483874] Waiting for timeref or reporting interval for the profile - RDKB-RPI-TEST is started
240902-08:40:52.859394 [mod=T2, lvl=INFO] [tid=524435] CollectAndReportXconf while Loop -- START 
240902-08:40:52.859415 [mod=T2, lvl=INFO] [tid=524435] CollectAndReportXconf ++in profileName : RDKB-RPI-TEST
240902-08:40:52.866160 [mod=T2, lvl=ERROR] [tid=524435] rbus.c:3676 Discover component names failed with error 5 and counts 1/0

240902-08:40:52.866207 [mod=T2, lvl=ERROR] [tid=524435] Failed to retrieve param : Device.DeviceInfo.X_RDKCENTRAL-COM_EnableXDNS
240902-08:40:53.928850 [mod=T2, lvl=ERROR] [tid=524435] rbus.c:3649 error parsing response 2

240902-08:40:53.928893 [mod=T2, lvl=ERROR] [tid=524435] Failed to retrieve param : Device.Hosts.Host.2.X_CISCO_COM_RSSI
240902-08:40:53.932877 [mod=T2, lvl=ERROR] [tid=524435] rbus.c:3649 error parsing response 2

240902-08:40:53.932934 [mod=T2, lvl=ERROR] [tid=524435] Failed to retrieve param : Device.WiFi.AccessPoint.2.AssociatedDevice.1.X_COMCAST-COM_RSSI
240902-08:40:53.937021 [mod=T2, lvl=ERROR] [tid=524435] rbus.c:3649 error parsing response 2

240902-08:40:53.937060 [mod=T2, lvl=ERROR] [tid=524435] Failed to retrieve param : Device.WiFi.AccessPoint.1.AssociatedDevice.1.X_COMCAST-COM_RSSI
240902-08:40:53.941562 [mod=T2, lvl=ERROR] [tid=524435] rbus.c:3676 Discover component names failed with error 5 and counts 1/0

240902-08:40:53.941608 [mod=T2, lvl=ERROR] [tid=524435] Failed to retrieve param : Device.DeviceInfo.X_RDKCENTRAL-COM_xOpsDeviceMgmt.Mesh.Enable
240902-08:40:53.946131 [mod=T2, lvl=ERROR] [tid=524435] rbus.c:3676 Discover component names failed with error 5 and counts 1/0

240902-08:40:53.946181 [mod=T2, lvl=ERROR] [tid=524435] Failed to retrieve param : Device.ManagementServer.EnableCWMP
240902-08:40:53.956417 [mod=T2, lvl=INFO] [tid=524435] Fetch complete for TR-181 Object/Parameter Values for parameters 
240902-08:40:53.980096 [mod=T2, lvl=INFO] [tid=524435] Grep complete for 98 markers 
240902-08:40:53.980364 [mod=T2, lvl=INFO] [tid=524435] cJSON Report = {"searchResult":[{"T2":"1.0"},{"Profile":"RDKB"},{"Time":"2024-09-02 08:40:52"},{"mac":"a6:3e:00:03:22:04"},{"erouterIpv4":"192.168.2.209"},{"PartnerId":"RDKM"},{"Version":"rdkb-generic-broadband-image_rdk-next_20240902053956"},{"UPTIME_split":"1174"},{"CMMAC_split":"a6:3e:00:03:22:04"},{"2G_Radio_Status_split":"Up"},{"5G_Radio_Status_split":"Up"},{"FT_split":"2013-11-22T00:00:00Z"},{"LT_split":"2024-09-02T08:40:51Z"},{"WIFI_ACS_2_split":"true"},{"WIFI_NF_2_split":"-99"},{"WIFI_NF_1_split":"-99"},{"HWREV_split":"1.0"},{"cpuinfo":"10"},{"memnfo":"555"},{"memfree":"3374"},{"bootup_time":"1725265278"},{"2GSSIDAdv_split":"true"},{"5GSSIDAdv_split":"true"},{"Sys-info-captive-portal-status":"true"},{"Host1RSSI":"-200"},{"2GSSID_split":"BPI_RDKB-AP0"},{"5GSSID_split":"BPI_RDKB-AP1"},{"BM_split":"router"},{"WIFI_ACS_1_split":"true"},{"WIFI_CHANNEL_1":"1"},{"WIFI_CHANNEL_2":"44"},{"HWMAN_split":"Mediatek Inc."},{"DeviceMode":"Dualstack"},{"ParentalControlManageDevice_Enable":"false"},{"ParentalControlManageSite_Enable":"false"},{"ParentalControlManageService_Enable":"true"},{"FirewallLevel":"Low"},{"PortForwarding_Enable":"true"},{"DMZ_Enable":"false"},{"CPUProcAnalyzer_Enable":"false"},{"ForwardSSH_Enable":"true"},{"ReverseSSH_Status":"INACTIVE"},{"bootuptime_wifi_split":"32"},{"bootuptime_Ethernet_split":"14"},{"btime_laninit_split":"30"},{"btime_webpa_split":"227"},{"rdkb_rebootreason_split":":unknown"},{"SYS_INFO_CaptivePortal":"6"},{"btime_wcpenter_split":"28"},{"bootuptime_EnterWifiCaptivemode_split":"28"},{"SYS_ERROR_LogFile_truncated":"1"},{"SYS_INFO_bootup":"1"},{"SYS_ERROR_Erouter_not_created":"5"},{"PAM":"1"},{"RF_ERROR_erouter_ip_loss":"12"},{"SYS_ERROR_Parodus_curl_timeout":"6"},{"SYS_ERROR_ParodusInit_error":"12"},{"loadavg_test_split":" 1.38, 0.93, 0.42"}]}
240902-08:40:53.980422 [mod=T2, lvl=INFO] [tid=524435] Report Size = 1793
240902-08:40:53.981428 [mod=T2, lvl=ERROR] [tid=524435] getParameterValue partner id failed
240902-08:40:54.823668 [mod=T2, lvl=INFO] [tid=524435] The return status from the child with pid 525064 is CurlStatus : 1
240902-08:40:54.823761 [mod=T2, lvl=INFO] [tid=524435] The return status from the child with pid 525064 SetopCode: No error; ResponseCode : No error; HTTP_CODE : 200; Line Number : 357 
240902-08:40:54.823777 [mod=T2, lvl=INFO] [tid=524435] Report Sent Successfully over HTTP : 200
240902-08:40:54.823806 [mod=T2, lvl=INFO] [tid=524435] Elapsed Time for : RDKB-RPI-TEST = 1.964363077 (Sec.NanoSec)
240902-08:40:54.823826 [mod=T2, lvl=INFO] [tid=524435] CollectAndReportXconf while Loop -- END 
240902-08:40:54.823837 [mod=T2, lvl=INFO] [tid=524435] CollectAndReportXconf --out

7. check the below url to verify whether your telemetry logs are uploaded or not

https://xconf.rdkcentral.com/xconf/upload/display.php?mode=telemetry

Create Permanent Profiles

The markers are of 3 types .
1.Split based markers. 
2. Count based markers
3. TR-181 based markers.

Marker Type

Sample configuration from xconf

Description with respect to sample configuration

Count based markers 
{"header":"RF_ERROR_IPV4PingFailed","content":"Ping to IPv4 Gateway Address are failed","type":"SelfHeal.txt.0","pollingFrequency":"0"}
Expects the occurrence count of content "Ping to IPv4 Gateway Address are failed"
Split based markers
{"header":"bootuptime_ClientConnectComplete_split","content":"Client_Connect_complete:","type":"LM.txt.log","pollingFrequency":"0"}
Expects the value after content "Client_Connect_complete:"
TR-181 based markers{"header" : "CMMAC_split","content" : "Device.DeviceInfo.X_COMCAST-COM_CM_MAC","type" : "<message_bus>","pollingFrequency":"48"}Markers whose type is configured as "<message_bus>"

In T2.0,  the aim is to instrument possible number of split and count based markers from component side. These are termed as event markers. Can be classified as one more type under the classification of  markers.
Once a marker is instrumented from component side, its configuration on xconf will be changed  from the configured file name to "<event>" in   'type:' section.

Example: 

{"header":"bootuptime_ClientConnectComplete_split","content":"ccsp-lm-lite","type":<event>","pollingFrequency":"0"}




 










Log File

$ cat /rdklogs/logs/telemetry2_0.txt.0

Telemetry2 Logs

 




Log upload onto HTTPS Server





        



Telemetry Version : 2.0.1 - Multiprofile

 





Limitations

                      The above screenshots and test logs are generated in dbus mode because rbus is not supported in rpi.

Also, webconfig support is not available in RPI . So T2 related testing with webconfig are not validated yet.

References


  https://github.com/rdkcentral/xconfserver/blob/main/README.md

  https://wiki.rdkcentral.com/display/RDK/Xconf+Server+-+User+guide+for+configuration+and+feature+validation

  RDKB Telemetry



  • No labels