LinuxCommandLibrary

wdctl

Display hardware watchdog timer status

TLDR

Display the watchdog status

$ wdctl
copy
Display the watchdog status in key-value format on one line
$ wdctl -O
copy
Display only specific watchdog flags
$ wdctl -f [flag_list]
copy

SYNOPSIS

wdctl [options] [device]

DESCRIPTION

wdctl shows the status of the hardware watchdog timer. A watchdog is a hardware or software timer that triggers a system reset if the main program fails to regularly reset it, preventing system lockups.
The output includes information about the watchdog device, timeout values, and supported features. Different hardware watchdogs support different capabilities.

PARAMETERS

-O, --oneline

Output in single-line key-value format
-f, --flags _list_
Display only specified flags
-s, --settimeout _seconds_
Set the watchdog timeout
-x, --flags-only
Show flags only
-o, --output _list_
Define output columns
-r, --raw
Raw output format
-n, --noheadings
Don't print headings

CAVEATS

Requires read access to the watchdog device (typically /dev/watchdog). Available flags are driver-specific. Not all systems have hardware watchdog support. Part of the util-linux package.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community