Chapter 42 Watchdog Timer

 

 

Table 156 app-watchdog Commands

 

COMMAND

DESCRIPTION

[no] app-watch-dog mem-

Sets the percentage thresholds for sending a memory usage alert. The

threshold min <1..100> max

NXC starts sending alerts when memory usage exceeds the maximum

<1..100>

(the second threshold you enter). The NXC stops sending alerts when

 

the memory usage drops back below the minimum threshold (the first

 

threshold you enter). The no command changes the setting back to the

 

default.

app-watch-dog reboot-log flush

Flushes the reboot log record.

[no] app-watch-dog retry-count

Set how many times the NXC is to re-check a process before

<1..5>

considering it failed. The no command changes the setting back to the

 

default.

[no] app-watch-dog sys-reboot

If auto recover fail reaches the maximum retry count, app-watch-dog

 

reboots the device. The no command turns off system auto reboot.

show app-watch-dog config

Displays the application watchdog timer settings.

show app-watch-dog monitor-list

Displays the list of applications that the application watchdog is

 

monitoring.

show app-watch-dog reboot-log

Displays the application watchdog reboot log.

42.3.1 Application Watchdog Commands Example

The following example displays the application watchdog configuration.

Router# configure terminal Router(config)# show app-watch-dog config Application Watch Dog Setting:

activate: yes

alert: yes

console print: always

retry count: 3

auto recover: yes

system reboot: yes

interval: 60 seconds

mem threshold: 80% ~ 90%

cpu threshold: 80% ~ 90%

disk threshold: 80% ~ 90% Router(config)#

 

269

NXC CLI Reference Guide