System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to run the "cfg2html" tool fast

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to run the "cfg2html" tool fast

Hi

I am running "cfg2html" tool in all my HP-UX server. it very very slow.

But in linux it takes just 5mins to run and get the output of cfg2html tool.

Why it is very very slow in HP-UX?

How to solve this problem.
13 REPLIES
Ganesan R
Honored Contributor

Re: How to run the "cfg2html" tool fast

Hi,

There is no straight answer for this. All depends on the data being collected by the tool. In linux it may collect less information whereas in HP-UX it might collect multiple informations.

Server load also play little role. If server is busy with other activities, then tool will take time to finish.
Best wishes,

Ganesh.
Patrick Wallek
Honored Contributor

Re: How to run the "cfg2html" tool fast

Have you tried running cfg2html interactively so you can watch its progress? What part is the slowest? I suspect it is the HARDWARE section. In the hardware portion it uses Diagnostics to gather a LOT of information about the hardware. This can be a VERY time consuming process if you have a large server with lots or components.

This also depends on the server itself.

I've got some HP-UX servers that are slow and some that are relatively fast. The older servers are much slower.
senthil_kumar_1
Super Advisor

Re: How to run the "cfg2html" tool fast

Hi

The process is doing "collecting LVM ..." is long time almost for 1 hour.

Ex:

root@ad002060:/root/cfg2html/9-4-2009 > cfg2html


--=[ http://come.to/cfg2html ]=---------------------------------------------
Starting cfg2html/HP-UX version 3.66 on a 9000/785/J6000 box
Path to cfg2Html /opt/cfg2html/cfg2html_hpux.sh
Path to plugins /opt/cfg2html/plugins
HTML Output File /tmp/ad002060_09-Apr-2009-0709.html
Text Output File /tmp/ad002060_09-Apr-2009-0709.txt
Errors logged to /tmp/ad002060_09-Apr-2009-0709.err
Started at 2009-04-09 07:09:10
Commandline used -0 -o/tmp
Problem If cfg2html hangs on Hardware, press twice ENTER, Ctrl-D or
Crtl-\. Then check your Diagnostics (A.42++ and PHKL_29798)!
--=[ http://come.to/cfg2html ]=---------------------------------------------
USE AT YOUR OWN RISK! (see /opt/cfg2html/doc/cfg2html.html)
Online help: run cfg2html_hpux.sh -h for help or see ~/doc directory
--=[ http://come.to/cfg2html ]=---------------------------------------------

Collecting: HP-UX/System .........................
Collecting: Hardware ....................
Collecting: Software ........
Collecting: Filesystems, Dump- and Swapconfiguration ........
Collecting: LVM ..
Ivan Krastev
Honored Contributor

Re: How to run the "cfg2html" tool fast

If you have too much VG or LV it is normal to take more time, but 1 hour is too much.

Try with the latest version:
cfg2html 4.22 for HP-UX 11.11-11.31

http://www.cfg2html.com/

regards,
ivan
senthil_kumar_1
Super Advisor

Re: How to run the "cfg2html" tool fast

Hi

I have installed latest version.

Ex:

lndsll03:/homeroot/cfg2html/9-4-2009->swlist -l product | grep -i cfg2html
cfg2html C.04.22.20090128 cfg2html


But i am getting following error message when i try execute this.

Ex:

lndsll03:/homeroot/cfg2html/9-4-2009->cfg2html
sh: cfg2html: Execute permission denied.


pls help me.

Ganesan R
Honored Contributor

Re: How to run the "cfg2html" tool fast

Hi,

It is unusual that it takes 1 hour. It could be due to some inconsistency on lvm configurations. Any lvm disks are missing or removed?

Check the lvm configurations and ioscan outputs..
Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: How to run the "cfg2html" tool fast

Hi,

Give execute permission then run.

#chmod 777 cfg2html

Best wishes,

Ganesh.
Patrick Wallek
Honored Contributor

Re: How to run the "cfg2html" tool fast

>>Give execute permission then run.
>>#chmod 777 cfg2html

You would be much better off just giving '500' permissions.

# chmod 500 cfg2html

No normal user should ever run cfg2html. Some of the utilities used are probably only available to root so it would not work well.

777 permissions on anything is rarely a correct solution.
Ganesan R
Honored Contributor

Re: How to run the "cfg2html" tool fast

Hi,

Patrick:
>>>777 permissions on anything is rarely a correct solution.<<<

I fully agree with you patrick. I just provided that to senthil to understand how to give executable permission on a file irrespective of users
Best wishes,

Ganesh.
Steven E. Protter
Exalted Contributor

Re: How to run the "cfg2html" tool fast

Shalom,

chmod 777 give read write and execute permissions permitting any user to modify the binary. In this circumstance that is not appropriate advice.

chmod a+x binary_name is the appropriate advice to insure all users have execute permissions on the binary.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
senthil_kumar_1
Super Advisor

Re: How to run the "cfg2html" tool fast

Hi

The permission of the file is

Ex:

lndsll03:/homeroot->ll /opt/cfg2html/cfg2html
-rwxr-xr-x 1 root sys 831 Sep 14 2006 /opt/cfg2html/cfg2html

Bill Hassell
Honored Contributor

Re: How to run the "cfg2html" tool fast

As mentioned, the areas where the script slows down will be in hardware and disk. The cstm utilities can take time, especially when there are massive numbers of LUNs. Similarly, some versions of cfg2html may be running ioscan without -k which will introduce huge delays. Read the script to find out how ioscan is coded. -k reads the information in memeory but without -k, a full inspection of every I/O path and device is performed.

For LVM, run vgdisplay -v to show everything. There must be no errors (such as missing physical volumes) and even for a large system, vgdisplay -v should complete in less that 10-20 seconds. Also run lvlnboot -v...any delays indicate bad configurations (and there will be error messages or obvious delays).

Make sure the STM diagnostics are up to date. They can have problems with new hardware.

Finally, run the script with set -x. It will not trace the functions but will show you where the delays are occurring. Add set -x to those functions to see the slow commands.


Bill Hassell, sysadmin
dutysoft
Occasional Visitor
Solution

Re: How to run the "cfg2html" tool fast

I checked this issue.
There was "fstyp" on all disk devices - so if you have many volumes in LVM/VxVM cfg2html will spend hours.
In our example it took about 7-8 hours on machine with some hundreds large (20-30 Gb) volumes in VxVM.