Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

watchdog(8) [freebsd man page]

WATCHDOG(8)						    BSD System Manager's Manual 					       WATCHDOG(8)

watchdog -- watchdog control program SYNOPSIS
watchdog [-d] [-t timeout] DESCRIPTION
The watchdog utility can be used to control the kernel's watchdog facility. The -d option enables debugging. The -t timeout option specifies the desired timeout period in seconds, a value of zero will disable the watchdog. The default timeout is 128 seconds. SEE ALSO
watchdog(4), watchdogd(8), watchdog(9) HISTORY
The watchdog utility appeared in FreeBSD 5.1. AUTHORS
The watchdog utility and manual page were written by Sean Kelly <> and Poul-Henning Kamp <>. Some contributions made by Jeff Roberson <>. BSD
October 18, 2014 BSD

Check Out this Related Man Page

WATCHDOG(4)						   BSD Kernel Interfaces Manual 					       WATCHDOG(4)

watchdog -- hardware and software watchdog SYNOPSIS
#include <sys/watchdog.h> DESCRIPTION
The watchdog facility is used for controlling hardware and software watchdogs. /dev/fido responds to a single ioctl(2) call, WDIOCPATPAT. It takes a single argument which represents a timeout value specified as a power of two nanoseconds, or-ed with a flag selecting active or passive control of the watchdog. WD_ACTIVE indicates that the watchdog will be kept from timing out from userland, for instance by the watchdogd(8) daemon. WD_PASSIVE indi- cates that the watchdog will be kept from timing out from the kernel. The ioctl(2) call will return success if just one of the available watchdog(9) implementations supports setting the timeout to the specified timeout. This means that at least one watchdog is armed. If the call fails, for instance if none of watchdog(9) implementations support the timeout length, all watchdogs are disabled and must be explicitly re-enabled. To disable the watchdogs pass WD_TO_NEVER. If disarming the watchdog(s) failed an error is returned. The watchdog might still be armed! RETURN VALUES
The ioctl returns zero on success and non-zero on failure. [EOPNOTSUPP] No watchdog present in the kernel (timeout value other than 0). [EOPNOTSUPP] Watchdog could not be disabled (timeout value of 0). [EINVALID] Invalid flag combination passed. [EINVALID] None of the watchdogs supports the requested timeout value. EXAMPLES
#include <paths.h> #include <sys/watchdog.h> #define WDPATH "/dev/" _PATH_WATCHDOG int wdfd = -1; static void wd_init(void) { wdfd = open(WDPATH, O_RDWR); if (wdfd == -1) err(1, WDPATH); } static void wd_reset(u_int timeout) { if (ioctl(wdfd, WDIOCPATPAT, &timeout) == -1) err(1, "WDIOCPATPAT"); } /* in main() */ wd_init(); wd_reset(WD_ACTIVE|WD_TO_8SEC); /* potential freeze point */ wd_reset(WD_TO_NEVER); Enables a watchdog to recover from a potentially freezing piece of code. options SW_WATCHDOG in your kernel config adds a software watchdog in the kernel, dropping to KDB or panic-ing when firing. SEE ALSO
watchdogd(8), watchdog(9) HISTORY
The watchdog code first appeared in FreeBSD 5.1. BUGS
The WD_PASSIVE option has not yet been implemented. AUTHORS
The watchdog facility was written by Poul-Henning Kamp <>. The software watchdog code and this manual page were written by Sean Kelly <>. Some contributions were made by Jeff Roberson <>. BSD
June 25, 2003 BSD
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

WatchDog ReInit

Wath is this ?? eeE: WatchDog ReInitMemory 6 for board 0 WARNING: eeE: Allocb failure in ReInitMemory Only renit manualy is a solution. :confused: Help me please Tnks (2 Replies)
Discussion started by: RoMaGo
2 Replies

2. SCO

Watchdog Problem In Unix Server

My Unix Server with SCO Unix ver 5, display Watchdog error which reads, Watchdog ReInitMemory 6 for board 0 Warning : eeE : Allocb failure in ReInitMemory. My server has 98 dumb terminals connected. It has 5 Hard Disks (SCSI) of 9.1 GB each and 512 MB RAM. Uses RAID level 5 After this error... (1 Reply)
Discussion started by: V.V.KUMAR
1 Replies

3. UNIX for Advanced & Expert Users

Watchdog Problem In Unix Server

(1 Reply)
Discussion started by: V.V.KUMAR
1 Replies

4. Solaris

disabling watchdog

hi, is it possible to disable the "hardware watchdog" on a V240 sol 10 server? and how to? this server freeze 9/10 during boot on this command...:mad: thanks (3 Replies)
Discussion started by: guilik
3 Replies

5. Linux

Modprobe problem

I'm trying to get a watchdog module working on a server. (Watchdog timers are little hardware devices that reboot the system if it becomes unresponsive.) The module takes some options like the timeout til reboot, what power action to take, etc. I've set these options up in... (4 Replies)
Discussion started by: vertigo23
4 Replies

6. Solaris

Watchdog for process

Hi, is there something build in solaris that can act as "watchdog". I have some process (service) running (e.g. Rhino). It can happen that if freezes totaly so I need to find this out and restart it totaly. My vision is two possibilities. 1) there is some counter running and I will... (2 Replies)
Discussion started by: freeangel
2 Replies

7. Solaris

doubt reg Hardware watchdog enabled

Hi, Please let me know what is hardware watchdog enabled which we get when the solaris host is booting .As per my knowledge its the one states that the POST is enabled. correct me if am wrong. (1 Reply)
Discussion started by: rogerben
1 Replies

8. AIX

no watchdog notification

Hi All, I am getting pages from EMS(Event Monitoring Servers) for "no watchdog notification" I just wonder what cause this and what to look in the system. this error was generated from production lpar which hosts p570 Thanks Mann (4 Replies)
Discussion started by: chubby362002
4 Replies

9. Shell Programming and Scripting

Watchdog for a specific process trigger another process

Hi, I am willing to build a script that does a "ps-ef" or "top" on a specific process, and if it finds it running to start another process. Any suggestions to do this in a optimized way? Thanks! (2 Replies)
Discussion started by: liviusbr
2 Replies