Operating System - HP-UX
1823177 Members
3976 Online
109647 Solutions
New Discussion юеВ

Utility to capture disk usage in HTML format (tabular)

 
John Bosco
Occasional Contributor

Utility to capture disk usage in HTML format (tabular)

Hi hp-ux gurus,

I need help to get a web site ready for management reporting purposes. One of the requirements is to display the following info (vgdisplay output) in a HTML table:-

VG Name /dev/vg00
Alloc PE 2223
Free PE 2117
VG Name /dev/vg01
Alloc PE 8594
Free PE 87
VG Name /dev/vg02
Alloc PE 8654
Free PE 27
----------------------------------------------------------
Total XXXXXX
=============================
This seems to be a simple task but I know very little HTML & I need advise on how best to transfer this info in real time from a hp-ux server to the web server, i.e. by clicking on a link with the hostname.

Really appreciate whatever help I can get.

Rgds,
John
8 REPLIES 8
Khalid A. Al-Tayaran
Valued Contributor

Re: Utility to capture disk usage in HTML format (tabular)



Hi ,

Try the cfg2html utility. It collects your system configuration and formats it to HTML. Attached is our test machine configuration.

The website for cfg2html is:
http://members.tripod.com/rose_swe/cfg/cfg.html
T G Manikandan
Honored Contributor

Re: Utility to capture disk usage in HTML format (tabular)

nickel is a very good tool

http://www.grc.hp.com/docs/nickel/
John Bosco
Occasional Contributor

Re: Utility to capture disk usage in HTML format (tabular)

Dear All,

Thank you for your prompt response. I have actually reviewed both cfg2html & nickel in another post.

The output of both are somewhat raw, i.e. bdf, vgdisplay output.

For this purpose I have created 3 arrays to hold the VG name, Alloc PE & Free PE. These can later be manipulated for totals etc.

I hope this makes sense but I'm just wondering if someone has come up with something similar to manage disk space on the hp-ux boxes.

Rgds, John
Trevor Parfitt
Occasional Advisor

Re: Utility to capture disk usage in HTML format (tabular)

I did some work with displaying reports on a html site and found that all you need to do is put

at the top of the document.
Does it have to be real time or could you update the file via cron every 30 min , then use ftp to transfer the file to your web server. Also would it not be better to use MB not PE as the PE can vary.
harry d brown jr
Honored Contributor

Re: Utility to capture disk usage in HTML format (tabular)

www.bb4.com

live free or die
harry
Live Free or Die
Robin Sharpe
Advisor

Re: Utility to capture disk usage in HTML format (tabular)

Hi John,

Don't know if you are still interested, but here's something I hacked together. It gathers all the VG info and bdf info and puts it into a table with the Lvols listed down the left side and the PVs listed across the top. Makes it really easy to see where the data is. Let me know if it works for you.

Robin_sharpe@berlex.com

Oh yeah... it requires perl 5.6 & the CGI module. But they come with HP-UX now, so you should be able to just drop it in your cgi-bin directory. Then call it from the browser as: http:\\yourserver\cgi-bin\qvg.pl?node=theServerYouWantToMap
Robin Sharpe
Advisor

Re: Utility to capture disk usage in HTML format (tabular)

Oops... one more thing I forgot to mention... This thing does remsh commands, so you'll have to setup .rhosts on the "client" nodes for the http server with it's user. For example, if your http server is on host "foo", you can just do this ina browser to get the vg infor for foo:

http://foo/cgi-bin/qvg.pl

But if you want the info from host "bar", first you have to setup the .rhosts on "bar" in the home of the user that runs httpd on foo... we run ours as user www, so on "bar" you'd need a .rhost entry like this:

foo www

Then in the browser, do this:

http://foo/cgi-bin/qvg.pl?node=bar

HTH
Robin
harry d brown jr
Honored Contributor

Re: Utility to capture disk usage in HTML format (tabular)


The best, and cheapest:

http://www.bb4.com

live free or die
harry
Live Free or Die