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 ioctl request. 😭
Heads up bestie, this matters a LOT: you can only use wd_identify without triggering a reboot if your kernel was not compiled with the CONFIG_WATCHDOG_NOWAYOUT option 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:

  • -c config-file, --config-file config-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 πŸ’œπŸ«Ά