Friday, 21 October 2022

How to resolve “-bash: systool: command not found” on CentOS 7



CentOS 7 community provides a utility systool to work with hardware adapters. The utility comes with sysfsutils package and this package by default not installed on  CentOS 7 systems.  
 
This article describes How to resolve “-bash: systool: command not found” on CentOS 7.

[root@linuxcnf ~]# systool -v
-bash: systool: command not found
[root@linuxcnf ~]#

 
Step 1. Package Installation: Run the following command to install sysfsutils package:
 
root@linuxcnf ~]# yum install sysfsutils
Loaded plugins: fastestmirror, tmprepo
…………………….
Installed:
  sysfsutils.x86_64 0:2.1.0-16.el7
 
Complete!
[root@linuxcnf ~]#
 
Step 2. Verify the installation: Run the following commands to verify the installation:
 
[root@linuxcnf ~]# systool -v
Please specify a bus, class, module, or root device
Usage: systool [<options> [device]]
        -a                      Show attributes
        -b <bus_name>           Show a specific bus
        -c <class_name>         Show a specific class
        -d                      Show only devices
        -h                      Show usage
        -m <module_name>        Show a specific module
        -p                      Show path to device/driver
        -v                      Show all attributes with values
        -A <attribute_name>     Show attribute value
        -D                      Show only drivers
        -P                      Show device's parent
[root@linuxcnf ~]#
 
Done!!! Now the systool command is available in the system.

No comments:

Post a Comment