cfg2html is short for " Config to HTML " and is a UNIX shell script initially developed by Ralph Roth [1], for creating system configuration summaries in HTML. Besides it creates an HTML documentation it also creates a plain ASCII system configuration documentation.
Some consider it to be the "Swiss army knife" for the Account Support Engineer, Consultant, Customer Engineer, System administrator etc. Originally developed in 1998/1999 to plan a system update, it was also found useful to perform basic troubleshooting or performance analysis. The production of a nice HTML and plain ASCII documentation is part of this utility.
Originally developed strictly for HP-UX, it now supports
HP-UX 10.xx/11.xx
SCO-UNIX
AIX
Sun OS/Solaris
Linux systems
Brocade switches and small Linux routers like OpenWRT, FreiFunk and embedded systems
Cfg2html is a UNIX shell script similar to check_config or get_config, except that it creates a HTML (and plain ASCII) system documentation for HP-UX 10.xx/11.xx, Integrity Virtual Machines, SCO-UNIX, AIX, Sun OS and Linux systems. Plug-ins for SAP, Oracle, Informix, Serviceguard, Fiber Channel/SAN, TIP/ix, Ignite-UX [2], Mass Storage like MAS, EVAx000, XP48/128/256/512/1024, 1x000/2x000, Network Node Manager and DataProtector etc. are included.
All HP-UX 11.31 (v3) issues should be fixed with version 4.41 or higher - any feedback is welcome. Legacy view and agile view should work.
All support, downloads and discussion for cfg2html is preformed through Yahoo Groups, see http://tech.groups.yahoo.com/group/cfg2html. As of May 2014 the group consists of 12700 members. The email traffic is low, approximately one message per week on the mailing list.
Original HP-UX Version: Ralph Roth, ROSE SWE, http://rose.rult.at
End-User License Agreement for the cfg2html package
Below you see the development tree cfg2html has taken the last years.
Operating System |
Sourcecode Maintainer (CVS) |
Main authors |
Contributors |
Remarks/ToDo's |
HP-UX 11.xx PA-RISC/IA64 |
Martin Kalmbach |
see ToDo.txt |
||
Linux IA32 |
Ralph Roth Michael Meifert |
Ralph Roth |
Jeroen
Kleen |
Development platform is Debian Linux Problem: Merge side project (cfg2html-linux124HP) by Jeroen Kleen into common a stream. |
Linux IA64/IPF |
-- // -- |
< you?> |
Ralph Roth |
EFI related stuff has to be included! |
Linux PA-RISC |
-- // -- |
Ralph Roth |
Linux 2.4.26-32 #1 Sat Jul 31 20:01:18 CEST 2004 parisc GNU/Linux |
|
Brocade 4.xx Switches |
Ralph Roth |
Ralph Roth |
Linux 2.4.19 kernel only? |
|
Sun Solaris/SUN OS |
Ralph Roth |
Dusan Baljevic (Vk2COT) Gert
Leerdam |
Eduardo Diaz |
Problem: Merge 1.10 and 2.1 streams |
Didac Oliveira Andreas Wizemann |
Olaf
Morgenstern |
Problem: Various (buggy) version exists and should be merged into one common 2.x stream! 2.7 stream is now hosted on sf.net |
||
OpenWRT |
Ralph Roth |
Ralph Roth |
early beta stage |
|
SCO |
-- // -- |
|||
Tools and plugins |
||||
do-cfg |
-- // -- |
Giuseppe Gentile |
HP-UX and SUN tested |
|
runcfg2html |
-- // -- |
runcfg2html will be updated by Andrew (09.2004?). |
||
user plugins |
|
Linux + HP-UX |
||
-- // -- |
Last updated: Aug 31 2005 |
|||
Webspace |
||||
-- // -- |
Marc Eberhart - e-projecta GmbH |
Newest beta stuff only! |
||
New cfg2html version (aka cfg2html II or cfg2html next generation) – Dead! |
||||
|
Chris, Ralph Roth |
New version (2009), supports Linux, HP-UX and AIX |
||
New cfg2html 6.xx version on github |
||||
Cfg2html for Linux, HP-UX, AIX und SUN |
Gratien D'haese, Ralph Roth |
Didac Oliveira Dusan Baljevic |
|
|
If you want to send us an email, use [cfg2html] in the beginning of the subject - otherwise the chance is high that our spam filters simply deletes your message! The best way to contact Ralph is via instant messenger! Please don't send support questions. We don't have the time to answer and they'll probably be ignored. Bug fixes, or patches that add something useful will be gratefully accepted, however.
Please note that all contribution to cfg2html must be copyright free, because cfg2html is now under an Open Source License (GPL v3)!
That is quite easy. First, get yourself GNU diff. The other diffs will work, too, but this tutorial only applies to GNU diff. We want unified diffs!
1. If you change cfg2html, please mark your changes with for example # < name> , < date> . Do not forget to remove all backup files from your editor.
2. Rename the directory with your new, patched cfg2html-x.xx to, say, cfg2html-x.xx.patched
3. Unpack the original distribution tar ball. DO NOT LEAVE in this directory files e.g. from a cfg2html run. Only the original distribution!
4. Now type:
diff -uNr cfg2html-x.xx cfg2html-x.xx.patched | gzip -c > cfg2html-x.xx.diff.gz
This is for GNU diff. You vendors diff may not know the -u option, in which case you should try -c instead.
5. Now send the compressed diff to my email address: cfg2hthml@hotmail.com (subject [cfg2html] PATCH: + your text)
The -u creates a unified diff, which has 3 lines of context per default. This has the advantage that patches can be applied to other versions of cfg2html, too.
The -N treats new files as empty. That means if you add a file, diff will put it in the diff, too. This has the advantage that your file is not lost. It has the disadvantage that Makefile and so on are put into the diff, too. So for patches where you do not add new files, you can omit the -N.
The -r means recursive. For cfg2html this is only important if you change stuff in sub directories. But it is good habit to use it.
$ gunzip delta-1-14-3rar.gz $ patch -p0 < delta-1-14-3rar patching file cfg2html-linux-1.14/cfg2html-linux patching file cfg2html-linux-1.14/cfg2html_urls.html
First of all you need to fork cfg2html/cfg2html at github. That requires that you already have an github account.
1- git clone https://github.com/<userid>/cfg2html
2- Put <yourcode> folder in place.
3- git add <yourcode>
4- git status
5- git commit -m 'what you have enhanced + your name'
6- git push
After you pushed up the changes, goto your <userid>/cfg2html fork at github and push the Pull Request Button.
Add your comments and wait until Ralph or Gratien can merge the changes. ;)
Note: This license will change in future to the GNU Public License v3
LIMITED WARRANTY/NO WARRANTIES. The authors of this Software expressly disclaims any warranty for the SOFTWARE PRODUCT. The SOFTWARE PRODUCT and any related documentation is provided "as is" without warranty of any kind, either express or implied, including, without limitation, the implied warranties or merchantability, fitness for a particular purpose, or disarrangement. The entire risk arising out of use or performance of the SOFTWARE PRODUCT remains with you.
NO LIABILITY FOR DAMAGES. In no event shall the authors of this Software be liable for any special, consequential, incidental or indirect damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use this product, even if the authors of this Software is aware of the possibility of such damages and known defects.
WARNING: cfg2html may hang or harm your productive system! This is caused by faulty or hardware related software such as *FDISK, diagnostic tools etc. For this reason the usage of cfg2html on a productive or mission critical system is not encouraged! cfg2html also tends to fill up your file system with large log files and uses your CPU for collecting. If this is a problem for you or your system then simply do not use this program.
This software contains bugs! This software is not supported at all! The authors do not have the time, budget and equipment to support this free product. The only way to get support is via the cfg2html mailing list!
If you can, add places where you have seen cfg2html mentioned, particularly "Dead Tree" mentions, please add them to this article.
David A. Bandel (2003). "Upfront". Linux Journal . On line copy http://www.linuxjournal.com/article/6495
The newest versions are down loadable at
http://www.cfg2html.com (all stuff)
http://www.cfg2html.com (only new betas)
To get a new version visit: http://www.cfg2html.com, and subscribe to the cfg2html mailing list
Oracle only version http://ora2html.sourceforge.net/
AIX only version http://cfg2html.sourceforge.net/
A recommendation of the Public Administration of Switzerland: http://www.opengovernment.ch/software/cfg2html
Sun BigAdmin System Administration Portal (yes, there's a typo in the link): http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/coniguration_to_html
Mentioned at http://www.cyberpro.com.au/Tips_n_Tricks/Linux_Related_Tips/Setup_cfg2html_-_System_Reporting_Tool/
Mentioned at the Weblog of Thomas Schimana: http://schimana.net/2006/07/25/system-dokumentation-mit-cfg2html/
At CentOS forum: http://www.centos.org/modules/newbb/viewtopic.php?topic_id=6670
At John's Unix Resource: http://www.dogs-chod.co.uk/howto/aixhow.htm#perf
At the Linux Journal: http://www.linuxjournal.com/article/6495
An Interview with Siem Korteweg about the System Configuration Collector at Linux Security.com: http://www.linuxsecurity.com/content/view/117330/49/
Freshmet page: http://freshmeat.net/projects/cfg2html/?topic_id=253
GPG key is used for secure email communication and to sign/verify the Linux packages
pub 1024D/3426A369 1998-04-29 ROSE SWE, Dipl.-Ing. Ralph Roth Key fingerprint = 5128 28B8 C884 4F86 5245 8076 4CEA 247E 3426 A369 uid ROSE SWE, Dipl.-Ing. Ralph Roth sub 1536g/1D5D72F1 1998-04-29 -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: http://rose.rult.at mQGiBDVHgrERBADJUnA7XSGy/5h/LaaoVIgfrBrN/+e33JDnOlpi8qnsy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