Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

script to check data

Super Advisor

script to check data

Hi,
Somebody have a script to collect all volume data
used in a system HP-UX and all volume data avaiable?


Thanks for all,

Joel
3 REPLIES
Outstanding Contributor

Re: script to check data

Bill McNamara started a collection of scripts some while back. This thread is the third of three filled with all kinds of sysadmin scripts and contains URLs for the other two. Perhaps you can find something that suits your need in Bill's collection.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050


Pete

Pete
Honored Contributor

Re: script to check data

Hi Joel,

# cat storagerept.sh

#!/usr/bin/sh
echo "*** VOLUME GROUPS ON $(hostname) ****"
for vg in $(ls -d /dev/vg*)
do
vgdisplay -v ${vg}
done
echo "*** LOGICAL VOLUMES ON $(hostname) ****"
for lv in $(ls -d /dev/vg*/lv*)
do
lvdisplay -v ${lv}
done
echo "*** PHYSICAL VOLUMES ON $(hostname) ****"
for pv in $(ls -d /dev/dsk/*)
do
pvdisplay -v ${pv}
done
echo "*** lvmtab ON $(hostname) ****"
strings /etc/lvmtab
exit

# ./storagerept.sh > /home/root/documents/storagerept.text

PCS
Highlighted
Super Advisor

Re: script to check data

Hi,
Thanks for your time but, qwjat I need it's some strong script to calculate or to report data to put in xls file. I will create one and post for everyone ok?

Thanks for all,
Joel