SlideShare a Scribd company logo
cfg2html
Cfg2html (or Config to HTML) project
URL: http://www.cfg2html.com/
Main author: Ralph Roth
Talk given by Gratien D'haese
(co-developer for HP-UX and Linux)
What is cfg2html?
●

●

●

●

●
2

A UNIX shell script (or collection of) to gather all kind of
system information and combine these into one big
ASCII and HTML file
See it as a complete set of system documentation of an
UNIX system
Various versions are available for Linux, HP-UX, Solaris,
AIX, Brocade switches
Useful for sysadmins, support teams and in case of
disasters
License GPLv3
Similar tools as cfg2html available?
●

System Configuration Collector (snapshots)
–
–

Logbook (easy to compare)

–
●

Web interface (via SCC-server part)
Support for various UNIX and Linux distro's

Linux-Explorer (LINUXexplo)
–
–

●

Creates a gzipped tar archive
Linux only

OSC Inventory NG Server for Unix
–

3

Focused on hardware
Pro-active vs. Reactive
●

Reactive support tools to ease vendor assistance
●
●
●
●
●

●

Pro-active support tools to ease systen admin
headaches
●

4

SuSe: supportconfig
RHEL: sosreport
HP-UX: getsysinfo.sh
AIX: zsnap
SunOS: SUN explorer

Cfg2html (collection of all your systems configuration
on a central point (e.g. NFS share)
History

5
Where to get it?
●

http://www.cfg2html.com
–

●

Main web site

http://groups.yahoo.com/group/cfg2html/
–
–

●

Download area for new and older releases
Mailing list archives

https://github.com/cfg2html/cfg2html
–
–

6

Main development for version 6.x
Issues tracker
How to use cfg2html?
●

Usage: sudo cfg2html -h

●

Run it: sudo cfg2html
–

You can run it from source tree, or

–

You can run it from RPM, DEB binary (Linux obviously)
●

●
●
●

7

@OBS

- http://download.opensuse.org/repositories/home:/gdha/
Main script: /usr/sbin/cfg2html
Collector scripts: /usr/share/cfg2html/...
Configuration: /etc/cfg2html/local.conf,
/usr/share/cfg2html/conf/default.conf
Sample output of running cfg2html
$ sudo ./cfg2html
--=[ http://www.cfg2html.com ]=--------------------------------------------Starting
cfg2html-linux version 6.16-git201312020913
Path to Cfg2Html ./cfg2html
HTML Output File /var/log/cfg2html/fedora20.html
Text Output File /var/log/cfg2html/fedora20.txt
Partitions
/var/log/cfg2html/fedora20.partitions.save
Errors logged to /var/log/cfg2html/fedora20.err
Local config
./linux/etc/local.conf
Started at
2014-01-08 08:15:56
WARNING
USE AT YOUR OWN RISK!!! :-))
<<<<<
--=[ http://www.cfg2html.com ]=--------------------------------------------Collecting:
Collecting:
Collecting:
Collecting:
Collecting:
Collecting:
Collecting:
Collecting:
Collecting:
Collecting:
Collecting:
8

Linux System (Fedora release 20 (Heisenbug)) .........................................
Cron and At ..........
Hardware ....................
Software ........
Filesystems, Dump- and Swapconfiguration ..........
Multipath Configuration ........
LVM ............
Network Settings ..................................
Kernel, Modules and Libraries ...............
System Enhancements .
Applications and Subsystems ...........

--=[ http://www.cfg2html.com ]=--------------------------------------------Returncode=1 (see /var/log/cfg2html/fedora20.err)
Output of /var/log/cfg2html/$(hostname).txt
Linux System (Fedora release 20 (Heisenbug)) ---- CPU and Model info
- uname & hostname
- Host alias
- OS, Kernel version
- Linux Standard Base Version
- OS Specific Release Information (/etc/fedora-release)
- OS Specific Release Information (/etc/os-release)
- OS Specific Release Information (/etc/redhat-release)
- OS Specific Release Information (/etc/system-release)
- POSIX Standards/Settings
- locale specific information
- System ulimit
- System Configuration Variables
- Used Memory and Swap
- Detailed Memory Usage (meminfo)
- Zoned Buddy Allocator/Memory Fragmentation and Zones
- Kernel slabinfo Statistics
- Additional page allocator information
- Per-zone page allocator
- VM-Statistics 1 10
- VM-Statistics (Summary)
- Uptime
- Active Process - Tree Overview
- Top load processes
- Top memory consuming processes
- Top file handles consuming processes
- reboots
9
($hostname).html view

10
Source Tree
cfg2html
hpux

linux

cfg2html-linux.sh

lib
lib

aix
etc

doc

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

sunos
packaging
Configuration Files
●

/etc/cfg2html/default.conf (main configuration file)
–

●

Should not be changed; add your preferences in the
local.conf

/etc/cfg2html/local.conf (your personalized configuration
file)
–

OUTPUT_URL=nfs://nfs.company.com/vol/cfg2html/linux
●
●

mount nfs.company.com:/vol/cfg2html/linux
ls -l /mnt/cfg2html/

drwxr-xr-x 2 nobody nogroup 4096 Jan
12

9 00:40 lnx02

/mnt
We need your help
●

We are looking for developers for AIX, Solaris,...

●

AIX: https://sourceforge.net/projects/cfg2html/
–

●

Solaris: http://groups.yahoo.com/neo/groups/cfg2html/files/sun/
–

13

Version dates from September 2011 (v2.81)
Version dates from April 2012 (v1.7)
Q&A
Contacts:
Ralph Roth - ralph.roth@gmail.com
Gratien D'haese - gratien.dhaese@gmail.com
URL: www.cfg2html.com
14

More Related Content

PDF
Linux Disaster Recovery Best Practices with rear
PDF
LinuxTag2012 Rear
PDF
Linux Disaster Recovery Made Easy
PPT
Linux Disaster Recovery Solutions
PDF
BrainShare 2010 SLC - ELS306 Linux Disaster Recovery Made Easy
PDF
Informix Warehouse Accelerator on Cluster
PDF
Open Source Backup Conference 2014: Rear, by Ralf Dannert
Linux Disaster Recovery Best Practices with rear
LinuxTag2012 Rear
Linux Disaster Recovery Made Easy
Linux Disaster Recovery Solutions
BrainShare 2010 SLC - ELS306 Linux Disaster Recovery Made Easy
Informix Warehouse Accelerator on Cluster
Open Source Backup Conference 2014: Rear, by Ralf Dannert

What's hot (20)

PPTX
First steps on CentOs7
PPTX
How to install gentoo distributed
PPTX
Red Hat System Administration
PDF
Kernel Configuration and Compilation
PDF
Linux admin course
PDF
Containers with systemd-nspawn
PDF
Tuning systemd for embedded
PDF
Systemd for developers
PDF
Embedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practice
PPT
Rhce ppt
PPTX
OMFW 2012: Analyzing Linux Kernel Rootkits with Volatlity
PDF
Linux kernel architecture
PDF
De-Anonymizing Live CDs through Physical Memory Analysis
PDF
Embedded Fest 2019. Руслан Биловол. Linux Boot: The Big Bang theory
PDF
S4 xen hypervisor_20080622
PDF
Building a Two Node SLES 11 SP2 Linux Cluster with VMware
PDF
Kernel Recipes 2013 - Easy rootfs using Buildroot
PPT
LOAD BALANCING OF APPLICATIONS USING XEN HYPERVISOR
PDF
Part 01 Linux Kernel Compilation (Ubuntu)
First steps on CentOs7
How to install gentoo distributed
Red Hat System Administration
Kernel Configuration and Compilation
Linux admin course
Containers with systemd-nspawn
Tuning systemd for embedded
Systemd for developers
Embedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practice
Rhce ppt
OMFW 2012: Analyzing Linux Kernel Rootkits with Volatlity
Linux kernel architecture
De-Anonymizing Live CDs through Physical Memory Analysis
Embedded Fest 2019. Руслан Биловол. Linux Boot: The Big Bang theory
S4 xen hypervisor_20080622
Building a Two Node SLES 11 SP2 Linux Cluster with VMware
Kernel Recipes 2013 - Easy rootfs using Buildroot
LOAD BALANCING OF APPLICATIONS USING XEN HYPERVISOR
Part 01 Linux Kernel Compilation (Ubuntu)
Ad

Similar to Cfg2html fosdem2014 (20)

PPT
4.7 find system files and place files in the correct location
PDF
PPT
101 4.7 find system files and place files in the correct location
PPT
101 4.7 find system files and place files in the correct location
PDF
Refcard en-a4
PPT
3. introduction of centos
PDF
unixtoolbox
PDF
KCC_Final.pdf
PDF
Jana treek 4
PDF
[Python] Quick book for dell switch_os10
PDF
Tomáš Čorej: Configuration management & CFEngine3
PDF
Summit demystifying systemd1
PPT
Basic linux architecture
PDF
Rhce syllabus
PPTX
Linux Survival Kit for Proof of Concept & Proof of Technology
PDF
Basic solaris 10 system administration commands
PDF
2345014 unix-linux-bsd-cheat-sheets-i
PPT
4. Centos Administration
PDF
RHCSA Discoverability Discoverability .pdf
PDF
Red Hat Linux Pocket Administrator 1st Edition Richard Petersen
4.7 find system files and place files in the correct location
101 4.7 find system files and place files in the correct location
101 4.7 find system files and place files in the correct location
Refcard en-a4
3. introduction of centos
unixtoolbox
KCC_Final.pdf
Jana treek 4
[Python] Quick book for dell switch_os10
Tomáš Čorej: Configuration management & CFEngine3
Summit demystifying systemd1
Basic linux architecture
Rhce syllabus
Linux Survival Kit for Proof of Concept & Proof of Technology
Basic solaris 10 system administration commands
2345014 unix-linux-bsd-cheat-sheets-i
4. Centos Administration
RHCSA Discoverability Discoverability .pdf
Red Hat Linux Pocket Administrator 1st Edition Richard Petersen
Ad

More from Gratien D'haese (8)

PDF
Open Technology Assemby Open Source Support Program
PDF
What did you inspec?
PDF
Rear automated testing with Bareos
PDF
Relax-and-Recover Automated Testing
PDF
Business Continuity Planning with Bareos and rear (Loadays 2015)
PDF
Upgrade ux-fosdem-2015-gdhaese
PDF
Adhocr T-dose 2012
PDF
Exploring I Pv6
Open Technology Assemby Open Source Support Program
What did you inspec?
Rear automated testing with Bareos
Relax-and-Recover Automated Testing
Business Continuity Planning with Bareos and rear (Loadays 2015)
Upgrade ux-fosdem-2015-gdhaese
Adhocr T-dose 2012
Exploring I Pv6

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Machine Learning_overview_presentation.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
sap open course for s4hana steps from ECC to s4
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Cloud computing and distributed systems.
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Big Data Technologies - Introduction.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Machine Learning_overview_presentation.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Chapter 3 Spatial Domain Image Processing.pdf
Encapsulation_ Review paper, used for researhc scholars
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Network Security Unit 5.pdf for BCA BBA.
Unlocking AI with Model Context Protocol (MCP)
sap open course for s4hana steps from ECC to s4
A comparative analysis of optical character recognition models for extracting...
Digital-Transformation-Roadmap-for-Companies.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Cloud computing and distributed systems.
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Big Data Technologies - Introduction.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Programs and apps: productivity, graphics, security and other tools
Advanced methodologies resolving dimensionality complications for autism neur...

Cfg2html fosdem2014

  • 1. cfg2html Cfg2html (or Config to HTML) project URL: http://www.cfg2html.com/ Main author: Ralph Roth Talk given by Gratien D'haese (co-developer for HP-UX and Linux)
  • 2. What is cfg2html? ● ● ● ● ● 2 A UNIX shell script (or collection of) to gather all kind of system information and combine these into one big ASCII and HTML file See it as a complete set of system documentation of an UNIX system Various versions are available for Linux, HP-UX, Solaris, AIX, Brocade switches Useful for sysadmins, support teams and in case of disasters License GPLv3
  • 3. Similar tools as cfg2html available? ● System Configuration Collector (snapshots) – – Logbook (easy to compare) – ● Web interface (via SCC-server part) Support for various UNIX and Linux distro's Linux-Explorer (LINUXexplo) – – ● Creates a gzipped tar archive Linux only OSC Inventory NG Server for Unix – 3 Focused on hardware
  • 4. Pro-active vs. Reactive ● Reactive support tools to ease vendor assistance ● ● ● ● ● ● Pro-active support tools to ease systen admin headaches ● 4 SuSe: supportconfig RHEL: sosreport HP-UX: getsysinfo.sh AIX: zsnap SunOS: SUN explorer Cfg2html (collection of all your systems configuration on a central point (e.g. NFS share)
  • 6. Where to get it? ● http://www.cfg2html.com – ● Main web site http://groups.yahoo.com/group/cfg2html/ – – ● Download area for new and older releases Mailing list archives https://github.com/cfg2html/cfg2html – – 6 Main development for version 6.x Issues tracker
  • 7. How to use cfg2html? ● Usage: sudo cfg2html -h ● Run it: sudo cfg2html – You can run it from source tree, or – You can run it from RPM, DEB binary (Linux obviously) ● ● ● ● 7 @OBS - http://download.opensuse.org/repositories/home:/gdha/ Main script: /usr/sbin/cfg2html Collector scripts: /usr/share/cfg2html/... Configuration: /etc/cfg2html/local.conf, /usr/share/cfg2html/conf/default.conf
  • 8. Sample output of running cfg2html $ sudo ./cfg2html --=[ http://www.cfg2html.com ]=--------------------------------------------Starting cfg2html-linux version 6.16-git201312020913 Path to Cfg2Html ./cfg2html HTML Output File /var/log/cfg2html/fedora20.html Text Output File /var/log/cfg2html/fedora20.txt Partitions /var/log/cfg2html/fedora20.partitions.save Errors logged to /var/log/cfg2html/fedora20.err Local config ./linux/etc/local.conf Started at 2014-01-08 08:15:56 WARNING USE AT YOUR OWN RISK!!! :-)) <<<<< --=[ http://www.cfg2html.com ]=--------------------------------------------Collecting: Collecting: Collecting: Collecting: Collecting: Collecting: Collecting: Collecting: Collecting: Collecting: Collecting: 8 Linux System (Fedora release 20 (Heisenbug)) ......................................... Cron and At .......... Hardware .................... Software ........ Filesystems, Dump- and Swapconfiguration .......... Multipath Configuration ........ LVM ............ Network Settings .................................. Kernel, Modules and Libraries ............... System Enhancements . Applications and Subsystems ........... --=[ http://www.cfg2html.com ]=--------------------------------------------Returncode=1 (see /var/log/cfg2html/fedora20.err)
  • 9. Output of /var/log/cfg2html/$(hostname).txt Linux System (Fedora release 20 (Heisenbug)) ---- CPU and Model info - uname & hostname - Host alias - OS, Kernel version - Linux Standard Base Version - OS Specific Release Information (/etc/fedora-release) - OS Specific Release Information (/etc/os-release) - OS Specific Release Information (/etc/redhat-release) - OS Specific Release Information (/etc/system-release) - POSIX Standards/Settings - locale specific information - System ulimit - System Configuration Variables - Used Memory and Swap - Detailed Memory Usage (meminfo) - Zoned Buddy Allocator/Memory Fragmentation and Zones - Kernel slabinfo Statistics - Additional page allocator information - Per-zone page allocator - VM-Statistics 1 10 - VM-Statistics (Summary) - Uptime - Active Process - Tree Overview - Top load processes - Top memory consuming processes - Top file handles consuming processes - reboots 9
  • 11. Source Tree cfg2html hpux linux cfg2html-linux.sh lib lib aix etc doc $ git clone git@github.com:cfg2html/cfg2html.git 11 sunos packaging
  • 12. Configuration Files ● /etc/cfg2html/default.conf (main configuration file) – ● Should not be changed; add your preferences in the local.conf /etc/cfg2html/local.conf (your personalized configuration file) – OUTPUT_URL=nfs://nfs.company.com/vol/cfg2html/linux ● ● mount nfs.company.com:/vol/cfg2html/linux ls -l /mnt/cfg2html/ drwxr-xr-x 2 nobody nogroup 4096 Jan 12 9 00:40 lnx02 /mnt
  • 13. We need your help ● We are looking for developers for AIX, Solaris,... ● AIX: https://sourceforge.net/projects/cfg2html/ – ● Solaris: http://groups.yahoo.com/neo/groups/cfg2html/files/sun/ – 13 Version dates from September 2011 (v2.81) Version dates from April 2012 (v1.7)
  • 14. Q&A Contacts: Ralph Roth - ralph.roth@gmail.com Gratien D'haese - gratien.dhaese@gmail.com URL: www.cfg2html.com 14