Disk info Script

I hope someone will be able to help me. I need a script that will help me get the Total Disk space Allocated, Total Used and Total Free for both internal and external disks (taking into consideration raw volumes & swap). I am not at all good when it comes to shell scritpting & will really appreciate if someone can help me. We are using Solaris 6, 7 and 8.

Thanks.

[393 byte] By [mojapekf] at [2007-11-25 23:21:05]
# 1
Couldn't you just use 'df -abk'?HTH,Ryan
paladinrjb at 2007-7-5 18:08:51 > top of Java-index,General,Talk to the Sysop...
# 2
> Couldn't you just use 'df -abk'?> > HTH,> RyanHi Ryan 'df -abk' only gives me file system's info, what about raw volumes?
mojapekf at 2007-7-5 18:08:51 > top of Java-index,General,Talk to the Sysop...
# 3

Unfortunatly, I'm not very familiar with raw volumes. If you are using VXVM to manage the raw volumes, I belive 'vxprint -htr' with give you the info about your raw volumes. If there were a few in particular that you knew the names of, you could create a shellscript to do:

df -abk

vxprint -htr | grep (your volume name here)

Just put those two lines into a file and chmod it to be executable. That should give you the total/free/used space of everything with one command. However, I could be wrong about vxprint, I don't have it here to test it out. But you should be able to put whatever command you use to get the information of the raw volume with in there instead. If you have any more questions, I'll try to answer them, but I'm not up on raw volumes. Perhaps someone else on here that is could chime in?

Ryan

paladinrjb at 2007-7-5 18:08:51 > top of Java-index,General,Talk to the Sysop...