Git Product home page Git Product logo

cfg2html / cfg2html Goto Github PK

View Code? Open in Web Editor NEW
153.0 38.0 61.0 2.33 MB

cfg2html is a UNIX shell script similar to supportinfo, getsysinfo or get_config, except that it creates a HTML (and plain ASCII) system documentation for HP-UX, SCO-UNIX, AIX, Sun OS and Linux systems. Plug-ins for SAP, Oracle, Informix, Serviceguard, Fiber Channel/SAN, TIP/ix, OpenText (IXOS/LEA), SN Mass Storage like MAS, EMC, EVA, XPs, Network Node Manager and DataProtector etc. are included. The first versions of cfg2html were written for HP-UX. Meanwhile the cfg2html HP-UX stream was ported to all major *NIX platforms and small embedded systems.

Home Page: http://www.cfg2html.com

Makefile 2.22% Shell 48.03% HTML 45.28% Perl 2.84% Python 0.22% Roff 1.41%
collector system-information shell-script swissarmyknife linux hp-ux sunos aix html shell

cfg2html's Introduction

cfg2html (Config to HTML)

Overview

cfg2html is a small utility for collecting the necessary system configuration files and system setup into an ASCII file and an HTML file. Easy to use and very useful in disaster recovery situations. cfg2html is written entirely in the native language of system administration: as shell scripts. Experienced users and system administrators can adapt or extend the cfg2html scripts to suit their particular needs, either by using the plugin framework or by modifying the source code.

Purpose

cfg2html collects the system configuration into one HTML and one text file. cfg2html is the sysadmin's Swiss Army knife. It was written to get all the information needed to plan an update, do basic troubleshooting or performance analysis. As a bonus, cfg2html produces a nice HTML and simple plain ASCII documentation of your system.

This includes the collection of cron and at, installed hardware, installed software, file systems, dump and swap configuration, LVM, network settings, kernel, system extensions, applications and subsystems.

Where to get cfg2html

The first versions of cfg2html were written for HP-UX. Subsequently, the cfg2html HP-UX stream was ported to all major *NIX platforms and small embedded systems. cfg2html works on Linux, HP-UX, SunOS, AIX etc. The original HP-UX version is now deprecated.

See our GitHub Source development tree at https://github.com/cfg2html/cfg2html.

From there, you may download the zip file at https://github.com/cfg2html/cfg2html/archive/refs/heads/master.zip to your Downloads folder. Once extracted, one way to run the program is simply to run the cfg2html script from the un-zipped high-level folder.

Alternatively, you may wish to clone it to your system with git via:

git clone https://github.com/cfg2html/cfg2html.git
cd cfg2html
make help

Running the make command will modify the source code to identify the latest patch level in a generated installable package for use by dnf/yum, apt, zypper, etc. for installation of the program.

NOTE: You need an annotated git tag on your local build system, else the build will fail. git describe --long should output something like "7.0.1-4-g6cef5f2"

If you do not want to build cfg2html on your own, we have pre-built installations that you can download from http://www.cfg2html.com and also from the github release page https://github.com/cfg2html/cfg2html/releases

Issue Tracker

If you find a problem or bug, want to discuss feature requests, or have some bright new ideas, please create a new issue on our GitHub project page https://github.com/cfg2html/cfg2html/issues When using it, please ensure that any criticism you provide is constructive. Please do not use the issue tracker for general help and assistance with using cfg2html.

Feel free to open a pull request to fix a problem yourself or to contribute to a new feature.

Contributing on GitHub

To contribute to a project that is hosted on GitHub, you can fork the project on github.com, then clone your fork locally, make a change, push back to GitHub and then send us a merge request for your pull, which will email the maintainer.

Please consider to give a star on github to show your support! +1

Please try to keep pull requests as small as possible - one new feature or fix set per pull request is preferred. This makes it easier to review and discuss your contribution.

Fork project on github:

git clone https://github.com/my-user/cfg2html
cd cfg2html
repeat (edit files),(testing) until OK
git add (modified files)
git commit -m 'Explain what I changed'
git push origin master

Then go to github and click the ‘pull request’ button!

ChangeLog and Tags

NOTE: This is only a suggestion!


cfg2html's People

Contributors

bitfree avatar didacog avatar edrulrd avatar frangdlt avatar frankcrawford avatar gdha avatar jamacku avatar jedinite avatar jose1711 avatar jpetitt1 avatar mavit avatar rc9000 avatar roseswe avatar tyl0re avatar unclethom42 avatar vinzent avatar vk2cot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cfg2html's Issues

Count number of user changed variables

grep -v ^#|^$ /etc/cfg2html/local.conf | wc -l

--=[ http://www.cfg2html.com ]=---------------------------------------------
Starting cfg2html-linux version 6.20-git201401292248
Path to Cfg2Html /usr/sbin/cfg2html
HTML Output File ./e6500os123_03-Feb-2014.html
Text Output File ./e6500os123_03-Feb-2014.txt
Partitions ./e6500os123_03-Feb-2014.partitions.save
Errors logged to ./e6500os123_03-Feb-2014.err
Local config /etc/cfg2html/local.conf (5) <<<<<<<<<<<<<<<<<<<<<<<<<
Started at 2014-02-03 08:29:11

[hpux] crontab entry is not working

The following entry does not work on HP-UX due to missing \ before the % signs.

30 14 * * 5  /usr/bin/sleep $((RANDOM % 600)) ; /usr/sbin/cfg2html -2%Y%m%d

usage of plugins is different then with hpux

The way HP-UX and Linux uses plugins is quite different. On HP-UX it is a directory containing plugin scripts and on Linux it is a file and a directory defined by the cfg2html configuration. Would be nicer to change the Linux script so it behaves like the HP-UX side. Any objections?

if [ "$CFG_PLUGINS" != "no" ];
then # else skip to next paragraph
    if [ -f $CONFIG_DIR/plugins ]; then
    paragraph "Custom plugins"

        # include plugin configuration
    . $CONFIG_DIR/plugins

    if [ -n "$CFG2HTML_PLUGIN_DIR" -a -n "$CFG2HTML_PLUGINS" ]; then
            # only run plugins when we know where to find them and at least one of them is enabled

[linux] add missing option -012

Noticed that linux is missing some useful options:

 /usr/sbin/cfg2html -2%Y%m%d

Unimplemented option chosen. Try -h for help!

HP-UX installation tree (/usr/share) non-standard

/usr/sbin and /usr/share vs. /opt...

This is a massive change for cfg2html and one that will be quite controversial as well as difficult to manage. cfg2html has been in the /opt directory for many, many years -- a directory that I believe is the proper location for HP-UX.

The HP-UX directory structure changed more than 15 years ago from Sys V.3 layout to Sys V.4 starting in 1995 (with HP-UX 10.01) and defines the content for the system directories.

From man hier on HP-UX:

/opt Root of subtree for optional application packages.
/usr/sbin System administration commands.
/usr/share Architecture-independent sharable files.

For HP-UX, /usr/sbin has been reserved for HP-supplied administration commands for the root user. I don’t see any code there that is not provided by HP for the OS.

/usr/share was designated as the documentation directory containing man pages, dictionaries and libraries that are mostly based on text files. There is not a single executable file in any of the /usr/share hierarchy for an HP-UX installation.

/opt on the other hand was intended as an application or package hierarchy, one in which the startup, config, doc, and library directories could be stored in a single location.

So the change for cfg2html is not only unexpected, but is quite non-standard, leading to additional consequences such as install and versioning issues. I have not looked at the software distributor scripts but to be compliant with SD, the software should be able to update, revert and uninstall. For this new mapping, the /opt/cfg2html directory would have to be archived (or removed) during version 6 installation, and ideally, be able to be restored using swremove. With the standard /opt hierarchy, this is a simple task. But with the /usr/share hierarchy, this becomes much less intuitive and will require some extensive testing and special README documentation.

Here are the new directories that I have found:
/usr/sbin
/etc/cfg2html
/var/log/cfg2html
/usr/share/cfg2html
/usr/share/doc/cfg2html
/usr/newconfig/etc/cfg2html

There are two config files that need to be documented: local.conf and default.conf but no docs covering what should be there, specifically the local.conf file.

The README and man page have a lot of obsolete information and the history files are missing anything for version 5.

The man page for cfg2html needs a symlink added as part of the install so it appears in /usr/share/man/man8. This will avoid the extra step of adding it onto the end of /etc/MANPATH.

For Linux, the manpage man hier I see:

   /usr/sbin
          This directory contains program binaries for system administration 
          which are not essential for the boot process, for  mounting /usr, 
           or for system repair.

   /usr/share
          This directory contains subdirectories with specific application
          data, that can be shared among different  architectures  of  the
          same  OS.   Often  one  finds  stuff  here  that used to live in
          /usr/doc or /usr/lib or /usr/man.

  /opt
          This  directory  should  contain  add-on  packages that contain  static files.

I do see that on a couple of RedHat versions I checked (RH5.6 and RH6.0), nothing is in /opt, so it would appear that Linux is moving /opt to /usr/share per the LSB (Linux Standard Base) recommendation. This seems to match Solaris, but not AIX or HP-UX.

On the other hand, I’m not sure how much shareable content there is between the two OS’s. Other than the top level section headers, most of the individual categories are quite different, by name and/or the collection method. Maintaining Linux and HP-UX as separate products seems like a much simpler task, much like maintaining the Solaris and AIX versions in the past. I can see that HTML formatting and temp files might be shareable between HP-UX and Linux but with so little in common with plugins, I don't see any significant value to using a shared code environment.

Some background on Linux FHS
http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

I’m not sure how LSB and FHS fit together.
http://www.linuxfoundation.org/collaborate/workgroups/lsb

I would recommend that the two OS streams be split, and the HP-UX ver 6 for cfg2html be left in /opt with the primary script trimmed to HP-UX only (drop the Linux tests).

Bill Hassell (pooderbill)

multiple RPMs installed

ralph:~/tmp> rpm -qa|grep cfg2html
cfg2html-linux-2.78-4.noarch
cfg2html-6.17-1.git201312110938.noarch

Maybe we should remove the 2.78 version first when installing a 6.xx release (because they share the same files).

openSUSE Build System (OBS): Debian build fails

Debian build fails on OpenSuSe Build System, but it works fine via make deb command. We get the following error:

[   32s] # copy cfg2html components into directories
[   32s] cp -av etc/default.conf debian/cfg2html/etc/cfg2html/
[   32s] cp: cannot stat `etc/default.conf': No such file or directory
[   32s] make: *** [binary-indep] Error 1
[   32s] dpkg-buildpackage: error: fakeroot-tcp debian/rules binary gave error exit status 2

See also: https://build.opensuse.org/package/show/home:gdha/cfg2html

Any hints are more then welcome!

Makefile(s)

I suggest to build noarch RPMs and DEBs.

-rw-r--r-- 1 ralph users 54075 9. Jul 18:53 cfg2html-6.0-1.x86_64.rpm
-rw-r--r-- 1 ralph users 130561 9. Jul 18:53 cfg2html-6.0-git201307091008.tar.gz

[hpux] Request related to cfg2html

Would an extract of the cfg2html output be possible to get a separate report for storage lifecycle mgmt with for instance next usefull information?
 HW model + overall FW version
 End of live date for the HW (optional)
 Type of HBA(’s) in place on that server to connect to the SAN (most common FC HBA)
 FW version of the HBA + FC driver version

Open for discussion.

Control-C removes TMP_DIR

We trap Ctrl-C and execute the Cleanup function which also removes $TMP_DIR, but when a plugin hangs we can escape from the plugin by pressing Ctrl-C and continue with the rest. However, by doing that cfg2html has troubles as TMP_DIR has been wiped out.
We will comment the rm TMP_DIR in the Cleanup function for the moment being. This is a place-holder (as it would be better that plugins cannot hang).

add OUTPUT_URL feature

Would be nice to have a plugin that understands the OUTPUT_URL syntax (like we have within rear) to move the output to a central place automatically.
Of course, the same could be added to the linux track too.

Linux - HP Array Configuration Utility CLI for Linux (Hpacucli) Version 9.00 (Or Later) Is Delayed in Responding if Storage That Is Not Connected to Local Smart Array Controller Is Configured With Multiple LUNs

DESCRIPTION: There may be a delay starting the HP Array Configuration Utility CLI for Linux (hpacucli) Version 9.00 (or later) on an HP ProLiant server configured to detect multiple LUNs connected via Fibre or iSCSI storage. In addition, there may be times that certain commands will delay in operating.

RESOLUTION: As a workaround, to prevent the delay from occurring when accessing local storage, type the following command:

export INFOMGR_BYPASS_NONSA=1

http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?javax.portlet.prp_ba847bafb2a2d782fcbb0710b053ce01=wsrp-navigationalState%3DdocId%253Demr_na-c03676138-1&javax.portlet.tpst=ba847bafb2a2d782fcbb0710b053ce01&sp4ts.oid=3924066&ac.admitted=1383577851148.876444892.199480143

wrapper does not work unless fullpath is used

The cfg2html wrapper assumes that the script will be run with the fullpath on the command line. dirname is used to extract the directory portion but this will fail if cfg2html is run without a path or with relative (./cfg2html) or partial (cfg2html/cfg2html) paths. So the result from:

MYPATH=`dirname $0`

is either empty or a partial directory reference, thus the next lines:

HP-UX)  SCRIPT="${MYPATH}/cfg2html_hpux.sh" ;;
Linux)  SCRIPT="${MYPATH}/cfg2html-linux";; 

will fail to provide a valid pathname and the messages:
Shellscript ./cfg2html_hpux.sh is not executable, or was not found in the PATH!
ERROR: ./cfg2html_hpux.sh: Not found!

To find the exact path where the wrapper is stored, use whence $0 as in:

MYPATH=$(dirname $(whence $0))

whence is always found in all versions of ksh (and the HP POSIX shell), but is mysteriously missing in bash. However, the type is aliased in all versions of ksh to:

# alias type='whence -v'

bash has a shell builtin: type
which produces the same output as whence -v but does not fully expand relative paths such as:

# cd /opt/cfg2html/doc
# type ../cfg2html
../cfg2html is ../cfg2html 

but does work OK without a path

# type cfg2html
cfg2html is /opt/cfg2html/cfg2html

So in bash, ksh and POSIX shells, this will work for all but relative paths:

MYPATH=$(dirname $(type $0 | awk '{print $NF}'))

Since the wrapper and most of the other plugins do not have an interpreter line such as:

#!/bin/ksh

the wrapper will be run by whatever shell is being used at the time (bash, ksh, POSIX sh, etc). So the last suggestion should solve the problem for the majority of Linux and HP-UX users.

Best regards,

Bill Hassell

[linux] cannot create /var/log/cfg2html

On a new system I get the following error:

#-> ./cfg2html
can't create /var/log/cfg2html/witsbebelnx02.html, /var/log/cfg2html does not exist - stop

cannot recall why VAR_DIR was commented out in lib/shell-functions.sh:

function create_dirs {
    [[ ! -d $OUTDIR ]] && mkdir -p -m 755 $OUTDIR
    #[[ ! -d $VAR_DIR ]] && mkdir -p -m 755 $VAR_DIR
    [[ ! -d $TMP_DIR ]] && mkdir -p -m 755 $TMP_DIR
}

was probably playing with the -o switch...

# zcat /boot/initrd | cpio -t | grep \.ko$

Could this be an usefull addition?

# zcat /boot/initrd | cpio -t | grep \.ko$
lib/modules/3.0.74-0.6.10-default/kernel/lib/crc-t10dif.ko
lib/modules/3.0.74-0.6.10-default/kernel/fs/ext3/ext3.ko
lib/modules/3.0.74-0.6.10-default/kernel/fs/mbcache.ko
lib/modules/3.0.74-0.6.10-default/kernel/fs/jbd/jbd.ko

Split cfg2html into separate projects

This issue is for discussing pro- and cons to have one big package containing all OS specific files or splitting them into separate packages like one for HPUX, AIX and Linux.

Add new collector/cleanup script to contrib

I have several scripts which control our NAS volume with hundreds of collections (with week stamp dates). We make automatically indexes and cleanups. Need to rewrite the scripts into one script that runs from within cfg2html (contrib) and it should be independent from HP-UX, Linux, etc...

[linux] MTA detection is broken

Mail Transport Agent detection is broken and may hang cfg2html.

Suggested solutions:
Remove current detection and do

  • dpkg -l/rpm -qa | grep [MTA pattern]
  • remove it completely, because it does not delivery much benefit

adding elapsing time in output?

Think it could be useful to add in text/html output the elapsing time it took to execute a piece of a code?

START=$SECONDS
:
#script commands go here
:
END=$SECONDS
echo elapsed time is $((END-START)) seconds

Add AWS enhancements

Backport the 2.80 AWS enhancements made by B.Lake, Allegro Consultants, Inc., 2014-01-21 to the 2.xx stream.

[linux] indentical commandline options, add -o option

How do I change the output file (hostname.html) to /tmp instead of / ?
which files do i need to edit? i installed the rpm for linux, and navigate to

The HPUX version has the option -o/tmp for example.
The Linux (and other) options has yet this option enabled.

trap feature needs additional signals

I see that a trap was introduced to handle cleanup for tmp directories (which is a good idea). I would suggest extending the trap signals to cover all the termination signal conditions (except 9):

From:

# introduce trap to make sure the temporary directories get cleaned up
trap "DoExitTasks" 0 1

to

# introduce trap to make sure the temporary directories get cleaned up
trap "DoExitTasks" 0 1 2 3 6 11 15

That covers almost everything including ctrl-C or a kill (which is signal 15). I noticed the problem when tmp directories were left behind using ctrl-C to terminate early.

Bill Hassell (pooderbill)

add FC WWN information

cfg2html doesn't FC WWNs information in detail, please add that in latest version of cfg2html

Regards
Rajeshwar Dutt

[hpux] Disk Firmware Collect with Device Files

Which level of firmware is this disk firmware in the end?

./hpux/plugins/get_diskfirmware.sh
$Id: get_diskfirmware.sh,v 5.16 2012-02-28 15:11:33 ralproth Exp $

Device    Vendor/Product     SCSI  LUN Cap/GB  FWVer  Paths Usage/VG/Owner/ID            
---------------------------------------------------------------------------------------
disk3     HP/DH072ABAA6      !LDSF --  68.4    HPD9   0     LVM/vg00/v1.0/partition
disk7     HP/DG072A9BB7      !LDSF --  68.4    HPD0   0     LVM/vg_p2/v1.0/lvm
disk8     TEAC/DV-28E-N      !LDSF --  0.4     C.6B   0     Filesystem/cdfs/cdfs   
disk9     HP/OPEN-V-CM       !LDSF --  1.0     5001   0     LVM/vg_p2/v1.0/lvm
disk10    HP/OPEN-V-CM       !LDSF --  1.0     5001   0     LVM/vg_p2/v1.0/lvm
disk11    HP/OPEN-V-CM       !LDSF --  1.0     5001   0     LVM/vg_p2/v1.0/lvm
disk16    HP/OPEN-V-CM       !LDSF --  1.0     5001   0     /none            
disk17    HP/OPEN-V          !LDSF --  30.0    5001   0     LVM/vgtest/v2.2/lvm
---------------------------------------------------------------------------------------
Note: Raw device usage is not shown in the usage column.

SAP collector

add SAP/Netweaver related stuff.

ps -ef/ps fax|grep " PF=/" # has to be discussed/validated

/usr/sap/hostctrl/exe # ./saphostexec -version
/usr/sap/hostctrl/exe # ./saphostexec -patchinfo

SAPHOSTAGENT

Add SAP collection stuff

/usr/sap/hostctrl/exe/saphostexec -version
/usr/sap/hostctrl/exe/saphostexec -status

ps fax | grep
etc.

get_diskfirmware.sh

the get_diskfirmware.sh script is pretty dangerous in the sense it can hang the system for a very VERY long time. Need some in-depth investigation and serous improvements.

postinstall pushes an automatic run for cfg2html

Version 6 adds an entry into cron for an automatic run of cfg2html. This is unexpected and not a good idea as cfg2html calls several OS tools that may hang (ie, old diagnostics, sar/sadc hangs, problems with configs, etc). cfg2html does a good job in exposing these types of OS issues but putting it into cron should be a man page suggestion and not forced by the postinstall script.

I'd like to remove everything in the postinstall script from:

"# keep a copy of previous active crontab file"
through
"rm -f $cronfile.new"

Makefile: make static

Maybe it is possible to make one monolithic script with make static (f.e.).

This could be useful when sending cfg2html out to customers that are not able to install via RPM or DEB package managers.

linux/doc/cfg2html.txt missing

In the linux/doc tree there is now a file called cfg2html-Linux_deutsch.txt which is partially in German language and is quite outdated. We should write a new cfg2html.txt file (in ASCIIDOC) to explain the basics of cfg2html. The txt file will be automatically translated into a HTML file (by the make process).
I (gdha) will write the initial headers, but hoping that Ralph can add some useful info to it.

Disk signatures for Boot Disk in HPUX cfg2html

Hi Gratien,

Please add ioscan -e -C disk together with ioscan -m dsf , this is very useful in case of SAN based migration, where we need to take note of "boot disk signatures"

Example:

root > ioscan -e -C disk
H/W Path      Class                                                 Description
===============================================================================
0/0/2/1.0.16                  disk                                  USB SCSI Stack Adaptor
0/2/0/0/0/0/4/0/0/0.1.0.0.0.0.0                                                disk    HITACHI OPEN-V
        Acpi(HPQ0002,PNP0A08,300)/Pci(0|0)/Pci(0|0)/Pci(4|0)/Pci(0|0)/Fibre(WWN50060E80166F9002,Lun4000000000000000)/HD(Part1,SigFD63D68A-7D49-11E3-8000-D6217B60E588)/\EFI\HPUX\HPUX.EFI
0/2/0/0/0/0/4/0/0/0.1.0.0.0.0.1                                                disk    HITACHI OPEN-V

warning: hp-info should not be run as root/superuser.

Hi, I just experimented a bit during the talk on Fosdem, so maybe I should read more doc before complaining ;-)
I haven't configure anything before experimenting so that might be the issue as well.
however, cfg2html should be run as root but fails complaining:

root@nvc1994:/data/git/cfg2html# ./cfg2html 


--=[ http://www.cfg2html.com ]=---------------------------------------------
Starting          cfg2html-linux version 6.16-git201312020913
Path to Cfg2Html  ./cfg2html
HTML Output File  /var/log/cfg2html/nvc1994.html
Text Output File  /var/log/cfg2html/nvc1994.txt
Partitions        /var/log/cfg2html/nvc1994.partitions.save
Errors logged to  /var/log/cfg2html/nvc1994.err
Local config      ./linux/etc/local.conf
Started at        2014-02-02 10:36:57
WARNING           USE AT YOUR OWN RISK!!! :-))           <<<<<
--=[ http://www.cfg2html.com ]=---------------------------------------------

Collecting:  Linux System (Debian GNU/Linux Version 7.3)  ....................................
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  ............

--=[ http://www.cfg2html.com ]=---------------------------------------------
Returncode=1 (see /var/log/cfg2html/nvc1994.err)


root@nvc1994:/data/git/cfg2html# tail /var/log/cfg2html/nvc1994.err 
stderr output from "PVDisplay":
        Using physical volume(s) on command line
stderr output from "/sbin/mii-tool -v":
    no MII interfaces found
stderr output from "echo | /usr/sbin/sendmail -v root | grep 220":
    LOG: MAIN
      <= [email protected] U=root P=local S=303
stderr output from "echo q | /usr/bin/hp-info -i |         /usr/bin/col":
    warning: hp-info should not be run as root/superuser.
    error: No device selected/specified or that supports this functionality.

ll /etc/alternatives/

add a
~> ll /etc/alternatives/|grep -v .gz$
insgesamt 4
lrwxrwxrwx 1 root root 9 6. Mär 2013 awk -> /bin/gawk
lrwxrwxrwx 1 root root 13 6. Mär 2013 ftp -> /usr/bin/pftp
lrwxrwxrwx 1 root root 29 6. Mär 2013 gst-install-plugins-helper -> /usr/lib/pk-gstreamer-install
lrwxrwxrwx 1 root root 34 6. Mär 2013 gtk-update-icon-cache -> /usr/bin/gtk-update-icon-cache-3.0
lrwxrwxrwx 1 root root 41 29. Mär 2013 java -> /usr/lib64/jvm/jre-1.7.0-openjdk/bin/java

local.conf file should not be deleted after upgrade

After installing new version of CFG2HTML the new /opt/cfg2html/etc/local.conf replaced the old version (with modifications). Luckily, the backup /tmp/cfg2html_old_version.tar archive *(made during upgrade) still got the older version. We better foresee a little method to move the old config file to something like /opt/cfg2html/etc/local.conf.<date>

[hpux] pvgfilter replacement needed

We removed the pvgfilter.hppa and pvgfilter.ia64 executables as it core dumps sometimes. The output it generates on PA-Risc looks like:

#-> vgdisplay -v |grep Name | /home/gdhaese1/bin/pvgfilter.hppa


Volumegroup: vg00
Pri: c2t0d0 c2t1d0

Volumegroup: vg01
Pri: c4t0d1 c4t0d0
Alt: c5t0d1 c8t0d1 c9t0d1 c5t0d0 c8t0d0 c9t0d0

We need to write a replacement script for it.

Collect ProLiant RBSU (BIOS) configuration if CONREP utility is available

On a ProLiant with HP Scripting Toolkit (former SSSTK) installed CONREP utility could save RBSU (BIOS) configuration to archive. Code should look something like:

    HPCONREP=$(which hp-conrep 2>/dev/null )
    if [ -x "$HPCONREP" ] ; then
            $HPCONREP -s -f $temphp/conrep.dat
    fi

hp-conrep is only available when STK is installed from rpm (see SDR for downloads). If installed from tar.gz, more sophisticated code is needed.

[linux] Remove HP message at the end of the collection

Collecting: hp ProLiant Server Log- and configuration Files .....
The following files are included in your gzipped tarball file:

If you created this CFG2HTML report on request of a HP support Agent
then please send the ./bhgc136.tar.gz file to:
[email protected]
Where in the subject is stated: CASE:YOURCASEID eg: CASE:6000000000

Feedback please to: [email protected] or twitter.com/cfg2html Thanks!

samba configuration not always accurate

The test /opt/samba/bin/testparm -s 2>&1 will only pick up a default /etc/opt/samba/smb.conf configuration file. However, there could be multiple instances running with different paths.
Perhaps we should grab these from ps output and loop over these to have a more accurate output?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.