Operating System - HP-UX
1753488 Members
4446 Online
108794 Solutions
New Discussion юеВ

Re: How to run the "cfg2html" tool fast

 
SOLVED
Go to solution
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
New Member
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.