WD_IDENTIFY(8)
β¨ NAME β¨
wd_identify β bestie, this one gets you the watchdog driver identity π
π¦ SYNOPSIS π¦
wd_identify [-c filename|--config-file filename] [-v|--verbose]
π DESCRIPTION π
Okay so here's the tea: this little utility opens up /dev/watchdog, pulls the identification string straight out of the watchdog, prints it for you, and then closes the device right after. Clean, quick, no strings attached. π
Exit codes are literally the vibe check here:
- An exit code of zero means slay β you successfully got the driver identity. π
- A non-zero exit code means something went wrong, periodt. That could be: it's not configured in the config file, there's no device driver loaded, or the driver failed to respond to the
ioctlrequest. π
Heads up bestie, this matters a LOT: you can only usewd_identifywithout triggering a reboot if your kernel was not compiled with theCONFIG_WATCHDOG_NOWAYOUToption enabled. Not me warning you about a reboot, fr fr. π
Also, lowkey important β you may have to stop the watchdog and/or wd_keepalive daemons first, so that wd_identify can actually access the watchdog device. Like, they're hogging it. π
πΈ OPTIONS πΈ
Here are the command line options you can hand over, gorgeous:
-cconfig-file,--config-fileconfig-file β use config-file as the configuration file instead of the default/etc/watchdog.conf. So if your config lives somewhere else, this is your moment. β¨-v,--verboseβ print more diagnostic messages, because who doesn't love extra lore. This covers the parsing of the config file, and it also makes the program read back the current watchdog time-out value (that part only happens if it successfully opened the device, iykyk). π₯
π FILES π
/dev/watchdogβ the watchdog device itself. The main character of this whole story. π
π SEE ALSO π
And that's the whole page, bestie β written by the 4th Berkeley Distribution, dated Dec 2015. Iconic behavior honestly. Go get that driver identity ππ«Ά
π¦ where this page comes from
- centos-stream 10: watchdog 5.16-11.el10 Β· GPL-2.0-or-later
- centos-stream 9: watchdog 5.16-2.el9 Β· GPLv2+
- debian bookworm: watchdog 5.16-1+b2
- debian trixie: watchdog 5.16-1.1
- fedora 43: watchdog 5.16-11.fc43 Β· GPL-2.0-or-later
- fedora 44: watchdog 5.16-11.fc43 Β· GPL-2.0-or-later
- nixos 26.05: watchdog 5.16
- nixpkgs unstable: watchdog 5.16
- opensuse-leap 16.0: watchdog 5.16-bp160.1.6 Β· GPL-2.0-only
- opensuse-leap 16.0: watchdog 5.16-bp160.1.6 Β· GPL-2.0-only
- opensuse-leap 16.0: watchdog 5.16-bp160.1.6 Β· GPL-2.0-only
- opensuse-leap 16.0: watchdog 5.16-bp160.1.6 Β· GPL-2.0-only
- ubuntu jammy: watchdog 5.16-1
- ubuntu noble: watchdog 5.16-1
- ubuntu questing: watchdog 5.16-1.1
- ubuntu resolute: watchdog 5.16-1.2
- ubuntu stonking: watchdog 5.16-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms