2 minute read

$SADMIN/bin/ - v3.33
Posted 2021-04-22 - Updated 2022-07-28
Supported on Linux, Aix, MacOS

NAME - Collect hardware & software information about the system

SYNOPSIS [-d 0-9] [-h] [-v]


This script is use to collect different software and hardware about the system you are running it and record this information in the System Information File. When you run this script, no question is asked and information collected are stores in the disaster recovery directory ($SADMIN/dat/dr). This script is part of the ‘client sunset script’ (${SADMIN}/bin/ The ‘client sunset script’ is scheduled to run daily from the client crontab (/etc/cron.d/sadm_client). You can also run it manually whenever you want to update files in the disaster recovery information directory.


root@holmes:~ # 
Thu 28 Jul 2022 13:06:42 - v3.33 - Library v4.03
Desc: Collect hardware & software info of system
Host: - User: root - Arch: x86_64 - SADMIN: /opt/sadmin
Almalinux Linux release 9.0 - Kernel 5.14.0-70.17.1.el9_0.x86_64
Verifying command availability ...
Creating /opt/sadmin/dat/dr/sherlock_diskinfo.txt ...
Creating /opt/sadmin/dat/dr/sherlock_lvm.txt ...
Creating /opt/sadmin/dat/dr/sherlock_network.txt ...
Creating /opt/sadmin/dat/dr/sherlock_system.txt ...
Creating /opt/sadmin/dat/dr/sherlock_lshw.html ...
Creating /opt/sadmin/dat/dr/sherlock_sysinfo.txt ...
Getting last O/S Update date from /opt/sadmin/dat/rch/sherlock_sadm_osupdate.rch ...
2022.07.24 02:22:14 - Success ...

Script exit code is 0 (Success) and execution time is 00:00:15
History file '$SADMIN/dat/rch/sherlock_sadm_create_sysinfo.rch' trim to 35 lines.
Script is set to send an alert only when it terminate with error.
Script succeeded, no alert will be send ($SADM_ALERT_TYPE=1).
New log created '$SADMIN/log/sherlock_sadm_create_sysinfo.log'.
End of - Thu 28 Jul 2022 01:06:52 PM EDT

Information in the Disaster Recovery directory, will be useful in case of complete system rebuild. Files in this directory ($SADMIN/dat/dr) are updated daily.


To view information generated from this script from the web interface, choose “Systems” options from the heading line. sadm_create_sysinfo_system.png

Then choose the server you want to view the information by clicking on it’s name. sadm_create_sysinfo_choose_system.png

The server main information screen will be shown like below. sadm_create_sysinfo_web_buttons.png

This is an example of what you would get by pressing the ‘Server Summary’ button. sadm_create_sysinfo_web_info.png


Options Description
[ -d 0-9 ] Set debug level from 0 to 9 (Default is 0)
[ -h ] Display this help and exit.
[ -v ] Output version information and exit.


  • The “$SADMIN” environment variable must be defined and contains the root directory of the SADMIN tools (normally /opt/sadmin). It should be already done, the setup script have updated the ‘/etc/profile.d/’ and the ‘/etc/environment’ files.
  • The SADMIN configuration file, is needed and loaded in memory at the beginning of every scripts. This file should already exist and contains your SADMIN configuration and preference setting.
  • For Shell script the Shell Library is used and for Python script the Python Library is used.


Exit Code Description
0 An exit status of zero indicates success.
1 Failure is indicated by a nonzero value, typically ‘1’.


Jacques Duplessis
Any suggestions or bug report can be submitted at the support page

Copyright © 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later
This is free software, you are free to change and redistribute it.
There is NO WARRANTY to the extent permitted by law.

SEE ALSO - rsync all .rch/.log/.rpt from actives clients to the SADMIN Server. - List/Install required SADMIN Tools packages - Using SADMIN Shell script template - Using SADMIN Python script template - Using SADMIN shell menu template - Use to run your existing scripts & benefit of SADMIN tools - SADMIN Shell Library Functions Demo - SADMIN Python Library Functions Demo
SADMIN installation - SADMIN installation page.