Versions Compared

Key

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

...

                                   unplug the ethernet LAN cable or ifconfig erouter0 down

Note :By default DNS and corrective actions are disabled.

Code Block
languagebash
titlePING_TESTING
collapsetrue
By default DNS and corrective actions are disabled. Use the below commands to enable those parameters.

For DNS Testing ,

root@Filogic-GW:/rdklogs/logs# dmcli eRT getv Device.SelfHeal.X_RDKCENTRAL-COM_DNS_PINGTEST_Enable
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
Execution succeed.
Parameter    1 name: Device.SelfHeal.X_RDKCENTRAL-COM_DNS_PINGTEST_Enable
               type:       bool,    value: false 

root@Filogic-GW:~# dmcli eRT getv Device.SelfHeal.ConnectivityTest.X_RDKCENTRAL-COM_CorrectiveAction                                    
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
Execution succeed.
Parameter    1 name: Device.SelfHeal.ConnectivityTest.X_RDKCENTRAL-COM_CorrectiveAction
               type:       bool,    value: false 

root@Filogic-GW:/rdklogs/logs# 
root@Filogic-GW:/rdklogs/logs# 
root@Filogic-GW:/rdklogs/logs# dmcli eRT setv Device.SelfHeal.X_RDKCENTRAL-COM_DNS_PINGTEST_Enable bool true
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
Execution succeed.

root@Filogic-GW:/rdklogs/logs# dmcli eRT getv Device.SelfHeal.X_RDKCENTRAL-COM_DNS_PINGTEST_Enable
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
Execution succeed.
Parameter    1 name: Device.SelfHeal.X_RDKCENTRAL-COM_DNS_PINGTEST_Enable
               type:       bool,    value: true 

root@Filogic-GW:/rdklogs/logs# 

To enable corrective action,

dmcli eRT setv Device.SelfHeal.ConnectivityTest.X_RDKCENTRAL-COM_CorrectiveAction bool true

root@Filogic-GW:/rdklogs/logs# dmcli eRT getv Device.DeviceInfo.X_RDKCENTRAL-COM_LastRebootReason
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
Execution succeed.
Parameter    1 name: Device.DeviceInfo.X_RDKCENTRAL-COM_LastRebootReason
               type:     string,    value: PING_Connectivity_Test_Failure 

root@Filogic-GW:/rdklogs/logs# 

root@Filogic-GW:/rdklogs/logs# tail -f SelfHeal.txt.0

Failure :
======
241104-10:16:38.221777 RDKB_SELFHEAL : No IPv4 Gateway Address detected
241104-10:16:38.223798 RDKB_SELFHEAL : No IPv6 Gateway Address detected
241104-10:16:38.239881 RDKB_SELFHEAL : Taking corrective action

241104-10:16:39.782027 RDKB_SELFHEAL : Ping server lists are empty , not taking any corrective actions
241104-10:16:39.821478 DNS Response: fail to resolve this URL www.google.com
241104-10:16:39.837748 RDKB_SELFHEAL : Taking corrective action

241104-10:14:35.589120 RDKB_SELFHEAL : <128>Ethwan Gateway[Mediatek]:<99000007><2024:11:04:10:14:34><ea:a2:ae:1a:b7:63><BananapiBPI-R4> RM PIt
diff and last_reboot -960 and 28800
PING_LATENCY_GWIPv4:1.00,2.42,1.07
241104-10:14:59.740762 [RDKB_SELFHEAL] : GW IP Connectivity Test Successfull
241104-10:14:59.742689 [RDKB_SELFHEAL] : IPv4 GW  Address is:192.168.2.254
241104-10:14:59.744620 [RDKB_SELFHEAL] : IPv6 GW  Address is:fe80::da3a:ddff:fe0d:b86c
241104-10:14:59.771527 RDKB_SELFHEAL : Ping server lists are empty , not taking any corrective actions
241104-10:14:59.808810 DNS Response: fail to resolve this URL www.google.com
241104-10:14:59.824618 RDKB_SELFHEAL : Taking corrective action

241104-11:01:01.277374 RDKB_SELFHEAL : Ping server lists are empty , not taking any corrective actions
241104-11:01:01.312725 DNS Response: fail to resolve this URL www.google.com
241104-11:01:01.328165 RDKB_SELFHEAL : Taking corrective action
241104-11:01:01.406788 RDKB_SELFHEAL : Total memory in system is 4023440
241104-11:01:01.408277 RDKB_SELFHEAL : Used memory in system is 143808
241104-11:01:01.409853 RDKB_SELFHEAL : Free memory in system is 3773984
241104-11:01:02.457602 RDKB_SELFHEAL : Current CPU load is 0
241104-11:01:02.459152 RDKB_SELFHEAL : Top 5 tasks running on device with resource usage are below
MiB Swap:      0.0 total,      0.0 free,      0.0 used.   3735.6 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
      1 root      20   0   94000   8100   5744 S   0.0   0.2   0:06.29 systemd
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kthreadd
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp
241104-11:01:02.716353 RDKB_SELFHEAL : 2.4GHz radio is operating on  channel
241104-11:01:02.732741 RDKB_SELFHEAL : 5GHz radio is operating on  channel
241104-11:01:02.734334 RDKB_SELFHEAL : MoCA stats are not available due to MoCA crash
241104-11:01:02.800183 RDKB_SELFHEAL : <128>Ethwan Gateway[Mediatek]:<99000007><2024:11:04:11:01:01><7e:22:72:d9:02:13><BananapiBPI-R4> RM PIt
diff and last_reboot 55 and 50
Ping reset Router
241104-11:01:02.881393 RDKB_SELFHEAL : DNS Information :

Success:
=======
241106-11:23:00.787843 [RDKB_SELFHEAL] : GW IP Connectivity Test Successfull
241106-11:23:00.789414 [RDKB_SELFHEAL] : IPv4 GW  Address is:192.168.2.254
241106-11:23:00.791062 [RDKB_SELFHEAL] : IPv6 GW  Address is:fe80::1dde:7669:fc2e:fe43
fe80::da3a:ddff:fe09:f505
fe80::532e:c128:f66b:79f1
fe80::f485:c03c:fcf3:c75
241106-11:23:00.817414 RDKB_SELFHEAL : Ping server lists are empty , not taking any corrective actions
241106-11:23:01.021947 DNS Response: Got success response for this URL www.google.com


Troubleshooting

                    1.  Using selfHeal logs to trouble shoot the run-time errors. SelfHeal logs will be created the below path,

...