• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

wdctl: command not found

by Deepika

The wdctl command is a utility tool in Linux that shows the status of the hardware watchdog. A hardware watchdog is a timer device that is used to monitor the system for malfunctions or failures. If the watchdog detects a failure or malfunction, it can automatically reset the system or trigger an alarm to alert system administrators.

The wdctl command is used to display information about the current status of the hardware watchdog on the system, including whether it is enabled or disabled, the timeout value, and the current countdown timer value. This information can be useful for system administrators to monitor and troubleshoot the system, especially in situations where the system is not responding or is experiencing unexpected errors or crashes.

The wdctl command can also be used to configure the hardware watchdog, including setting the timeout value, enabling or disabling the watchdog, and configuring other parameters such as the watchdog driver and device file.

The hardware watchdog is commonly used in embedded systems, servers, and other critical systems where high availability and reliability are required. It is typically implemented using a dedicated hardware device or chip that is separate from the main system processor.

If you encounter the below error while running the command wdctl:

wdctl: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install util-linux
Ubuntu apt-get install util-linux
Alpine apk add util-linux
Arch Linux pacman -S util-linux
Kali Linux apt-get install util-linux
CentOS yum install util-linux
Fedora dnf install util-linux
OS X brew install util-linux
Raspbian apt-get install util-linux

wdctl Command Examples

1. Display the watchdog status:

# wdctl

2. Display the watchdog status in a single line in key-value pairs:

# wdctl --oneline

3. Display only specific watchdog flags (list is driver specific):

# wdctl --flags flag_list

Summary

Overall, the wdctl command is a useful tool for monitoring and configuring the hardware watchdog on Linux systems, and can be a valuable tool for system administrators and developers working on critical systems. However, it should be used with caution, as misconfigured or improperly used hardware watchdogs can potentially cause system instability or crashes.

Filed Under: Linux

Some more articles you might also be interested in …

  1. gprof: command not found
  2. argon2: Calculate Argon2 cryptographic hashes (Command Examples)
  3. How to Create and Query a BTRFS File System
  4. make: command not found
  5. nethogs Command Examples in Linux
  6. How to Disable TLS 1.1 Cockpit port 9090
  7. getsebool: command not found
  8. How to Disable RSH Server in CentOS/RHEL
  9. strip: command not found
  10. “mount.nfs: access denied by server while mounting” – how to resolve

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright