logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

wdctl - show hardware watchdog status

Authors

       Karel Zak <kzak@redhat.com>, Lennart Poettering <lennart@poettering.net>

Availability

       The wdctl command is part of the util-linux package which can be downloaded from Linux Kernel Archive
       <https://www.kernel.org/pub/linux/utils/util-linux/>.

util-linux 2.41                                    2025-02-26                                           WDCTL(8)

Description

       Show hardware watchdog status. The default device is /dev/watchdog. If more than one device is specified
       then the output is separated by one blank line.

       If the device is already used or user has no permissions to read from the device, then wdctl reads data
       from sysfs. In this case information about supported features (flags) might be missing.

       Note that the number of supported watchdog features is hardware specific.

Name

       wdctl - show hardware watchdog status

Options

-f, --flagslist
           Print only the specified flags.

       -F, --noflags
           Do not print information about flags.

       -I, --noident
           Do not print watchdog identity information.

       -n, --noheadings
           Do not print a header line for flags table.

       -o, --outputlist
           Define the output columns to use in table of watchdog flags. If no output arrangement is specified,
           then a default set is used. Use --help to get list of all supported columns.

       -O, --oneline
           Print all wanted information on one line in key="value" output format.

       -p, --setpretimeoutseconds
           Set the watchdog pre-timeout in seconds. A watchdog pre-timeout is a notification generated by the
           watchdog before the watchdog reset might occur in the event the watchdog has not been serviced. This
           notification is handled by the kernel and can be configured to take an action using sysfs or by
           --setpregovernor.

       -g, --setpregovernorgovernor
           Set pre-timeout governor name. For available governors see default wdctl output.

       -r, --raw
           Use the raw output format.

       -s, --settimeoutseconds
           Set the watchdog timeout in seconds.

       -T, --notimeouts
           Do not print watchdog timeouts.

       -x, --flags-only
           Same as -I-T.

       -h, --help
           Display help text and exit.

       -V, --version
           Display version and exit.

Reporting Bugs

       For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>.

Synopsis

wdctl [options] [device...]

See Also