Operating System - HP-UX
1748014 Members
4393 Online
108757 Solutions
New Discussion юеВ

Re: 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 13
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.