Re: script to check data (116 Views)
Reply
Super Advisor
uadm26
Posts: 259
Registered: ‎02-19-2004
Message 1 of 4 (116 Views)

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
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 2 of 4 (116 Views)

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
Please use plain text.
Honored Contributor
spex
Posts: 1,367
Registered: ‎05-14-1996
Message 3 of 4 (116 Views)

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
Please use plain text.
Super Advisor
uadm26
Posts: 259
Registered: ‎02-19-2004
Message 4 of 4 (116 Views)

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
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation