Sysdiag is a system diagnostic command-line utility.
Sysdiag is a command-line utility to help make diagnosing Linux systems easier. Sysdiag's goal is to provide one command to view important device information - including vital product data, relationships to other system devices, and log data - and to test devices. The command can inquire information from devices, search syslog for specific device messages, and test devices.
Sysdiag, to start, is mainly a wrapper meant to utilize existing diagnostic commands. Utilities like Ethtool and sg3_utils can be plugged into sysdiag by editing the sysdiag.conf file. The configuration file lets people configure inquiry, stat, and test commands by device class.
Sysdiag currently only works on Linux kernel version 2.6 because it makes use of the sysfs file system to retrieve system information. We hope to make it less Linux kernel version specific in the future.
Sysdiag functionalites can be broadly classfied into following catogories.
- List devices.
- Show Error Logs.
- Query device information.
- Run diagnostics.
To run diagnostics sysdiag requires the sg3_utils package to be installed.
Sysdiag runs diagnostics based on the class of device. sysdiag provides an
option to add or remove the diagnostic utilities based on the class of device.
This can be done through sysdiag.conf file. A default config file is provided
with this package.