Chapter 42 Watchdog Timer

The software-watchdog-timercommands are for support engineers. It is recommended that you not modify the software watchdog timer settings.

Table 155 software-watchdog-timer Commands

COMMAND

DESCRIPTION

[no] software-watchdog-timer timer

Sets how long the system’s core firmware can be

 

unresponsive before resetting. The no command

 

turns the timer off.

 

timer: 10 to 600 (NXC5200) or 10 to 60

 

(NXC2500).

 

 

show software-watchdog-timer status

Displays the settings of the software watchdog

 

timer.

show software-watchdog-timer log

Displays a log of when the software watchdog timer

 

took effect.

42.3 Application Watchdog

The application watchdog has the system restart a process that fails. These are the app- watchdog commands. Use the configure terminal command to enter the configuration mode to be able to use these commands.

Table 156 app-watchdog Commands

COMMAND

DESCRIPTION

[no] app-watch-dog activate

Turns the application watchdog timer on or off.

[no] app-watch-dog alert

Has the NXC send an alert the user when the system is out of memory

 

or disk space.

[no] app-watch-dog auto-recover

If app-watch-dog detects a dead process, app-watch-dog will try to auto

 

recover. The no command turns off auto-recover.

[no] app-watch-dog console-

Display debug messages on the console (every time they occur or

print {alwaysonce}

once). The no command changes the setting back to the default.

[no] app-watch-dog cpu-

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

threshold min <1..100> max

NXC starts sending alerts when CPU usage exceeds the maximum (the

<1..100>

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

 

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

 

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

[no] app-watch-dog disk-

Sets the percentage thresholds for sending a disk usage alert. The NXC

threshold min <1..100> max

starts sending alerts when disk usage exceeds the maximum (the

<1..100>

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

 

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

 

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

[no] app-watch-dog interval

Sets how frequently (in seconds) the NXC checks the system

interval

processes. The no command changes the setting back to the default.

 

interval: 5 to 60 (NXC5200) or 5 to 300 (NXC2500).

 

 

268

 

NXC CLI Reference Guide