4 minute read

Get System information and creates a HTML web page of it

SYNOPSIS [-d 0-9] [-h] [-v]
$SADMIN/bin/ - v3.6
Posted 2021-06-01 - Updated 2021-06-03
Supported on Linux, Aix
Can be executed on a client and on the SADMIN Server.


This script is use to generate a system information web page that is accessible via the SADMIN web interface. To generate this web page, we use the open source project “cfg2html”. The HTML page produced, include the collection of Cron and At, installed Hardware, installed Software, Filesystems, Dump- and Swap-configuration, LVM, Network Settings, Kernel, System enhancements and Applications, Subsystems. As of now, this script doesn’t support MacOS operating system.

Files produced by the script

root@raspi8:~  # cd $SADMIN/dat/dr
root@raspi8:/opt/sadmin/dat/dr  # ls -l cfg2html*
-rw-rw-r-- 1 sadmin sadmin   2846 Jun  3 14:54 cfg2html_raspi8.err
-rw-rw-r-- 1 sadmin sadmin 752477 Jun  3 14:54 cfg2html_raspi8.html
-rw-rw-r-- 1 sadmin sadmin      0 Jun  3 14:54
-rw-rw-r-- 1 sadmin sadmin 724874 Jun  3 14:54 cfg2html_raspi8.txt
root@raspi8:/opt/sadmin/dat/dr  # 

To view cfg2html page, choose the server you want and click on “cfg2html” button sadm_cfg2html_button

Here is an example of report that was generated for a raspberry pi.

Back to the top


Thu Jun  3 14:54:22 EDT 2021 - V3.6 - SADM Lib. V3.70
Server Name: - Type: LINUX
RASPBIAN 10 Kernel 5.10.17-v7l+
cfg2html-linux version 2.94-2014/05/07 // Linux 5.10.17-v7l+ armv7l
Running : /usr/bin/cfg2html -H -o /opt/sadmin/dat/dr.
Return code of the command is 0.

Script exit code is 0 (Success) and execution time is 00:00:59
History (/opt/sadmin/dat/rch/raspi8_sadm_cfg2html.rch) trim to 35 lines.
Script will send an alert only when it terminate with error ($SADM_ALERT_TYPE=1).
Script succeeded, no alert will be send to 'default' alert group.
New log (/opt/sadmin/log/raspi8_sadm_cfg2html.log) created ($SADM_LOG_APPEND='N').
End of - Thu Jun  3 14:54:54 EDT 2021

Back to the top


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 © 2021 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 - Command line summary of alerts and failed scripts of all your servers.
sadm_daily_report - Produce and email monitoring daily reports - 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 standard shell library - SADMIN standard python library - SADMIN screen oriented library - SADMIN shell library functions demo - SADMIN python library functions demo
SADMIN installation - SADMIN installation page
How-to Add a client - How-to add a client to SADMIN inventory
How-to Remove a client - How-to remove a client from SADMIN inventory - Uninstall the SADMIN tools - Push SADMIN version to one or all actives clients
How-to update SADMIN - How-to update to latest version of SADMIN - Enable, Disable and get status of system startup and shutdown script - Backup based on the content of the backup list & exclude file
sadmin.cfg - SADMIN main configuration file - Collect & process data produced by all actives clients - Enforce security SADMIN Web interface & crontab files - Collect Hardware/Software/Performance data from actives servers - Take data collected from clients and update database - Daily performance database update - Scan network selected subnet & store info in database - Backup one or all MySQL/MariaDB databases on the system - Clients end of day housekeeping and producing system information files - Purge old log,rch,nmon files and check $SADMIN permission - Collect hardware & software information about the system
System Information File - Documentation about the system information file - Save system filesystems information in order to recreate them from scratch. - Get System information and creates a HTML web page of it.