Your ICT partner

Config to HTML (cfg2html)

cfg2html is a utility to collect system configuration files and settings into an HTML file and a plain-text file. Simple to run and very useful in disaster recovery situations, compliance audits, and pre-upgrade planning. cfg2html is often called the “Swiss army knife” for sysadmins.

It collects: Linux system information, Cron and At jobs, installed hardware, installed software, filesystem and swap configuration, LVM, network settings, kernel and modules, system enhancements, and application subsystems — all written into a self-contained HTML document you can open in any browser.

cfg2html works on Linux, HP-UX, SunOS, and AIX.

A presentation at FOSDEM 2014 is available if you want a quick overview.

Clone and run

git clone git@github.com:cfg2html/cfg2html.git

Example output

#-> cfg2html
--=[ https://www.cfg2html.com ]=---------------------------------------------
Starting          cfg2html-linux version 6.x
Path to Cfg2Html  /usr/sbin/cfg2html
HTML Output File  /var/log/cfg2html/hostname.html
Text Output File  /var/log/cfg2html/hostname.txt
Errors logged to  /var/log/cfg2html/hostname.err
Local config      /etc/cfg2html/local.conf
WARNING           USE AT YOUR OWN RISK!!! :-))
--=[ https://www.cfg2html.com ]=---------------------------------------------

Collecting:  Linux System ...
Collecting:  Cron and At ...
Collecting:  Hardware ...
Collecting:  Software ...
Collecting:  Filesystems, Dump- and Swapconfiguration ...
Collecting:  LVM ...
Collecting:  Network Settings ...
Collecting:  Kernel, Modules and Libraries ...
Collecting:  System Enhancements ...
Collecting:  Applications and Subsystems ...

The output HTML file gives you a full snapshot of the system at collection time — ideal for keeping before/after evidence during patching or upgrades.

Installing on HP-UX 11i

HP-UX software depots are available at the cfg2html download page:

swinstall -s $PWD/cfg2html_C.06.27_20151215.depot CFG2HTML

Linux packages

Linux packages are built on the openSUSE Build Service for a wide range of distributions. Select your distribution and look in the noarch subdirectory.