RAID Unix command

Is there a command used to determine whether or not a machine has been RAIDed besides using 'df -k'. I am interested b/c I am writing a script where I would like to receive some sort of notification as to whether or not a machine has been RAIDed. The simpler the info returned back, the better. Any help would be appreciated.

Thanks,
Zuinc

You could check to see if the software is loaded but that doesn't mean it is being used. You may also miss the software (Solaris has it's own - DiskSuite but many use the Veritas Volume Manager). Each OS will be different so the easiest way to see it is to use df -k.

Veritas commands that may help you: vxprint, vxstat, vxdisk list.
DiskSuite (Solaris only): metastat

I'm sure the commands to check on AIX, HP-UX, and others are completely different - which is why df -k is used.

if you want to find out on aix this is what i use to tell me LOTS of stuff but you can figure out if your mirrored via the manual method.

echo ------ DISKINFO SCRIPT by: dooley.michael@con-way.com ------
echo HOST:      `hostname`
echo DATE:      `date +%Y-%m-%d`
echo

PV=`lspv|awk '{ print $1 }'`
VG=`lsvg`
# List of Physical Drives
echo ------ PHYSICAL DRIVES ------
lspv
echo

# Pageing Space
echo ------ PAGEING SPACE ------
lsps -a
echo

for i in $VG;do
lv_disk=`lsvg -l $i|awk '{ print $1}'|grep -v $i|grep -v LV`

        echo
        echo ------ VOLUME GROUP INFO \($i\) ------
        lsvg $i
        echo
        echo ------ LOGICAL VOLUME NAME \($i\) ------
        lsvg -l $i
        echo
#       echo ------ HDISKS USED FOR \($i/$g\) ------
#       lslv -l $g
#       echo
#       echo ------ FILESYSTEM LAYOUT ON DISKS \($i/$g\) ------
#       lslv -m $g
#       echo
done



for i in $PV;do
        echo
        echo ------ DISK STATS ON \($i\) ------
        lspv $i
        echo
        echo ------ FILESYSTEMS ON \($i\) ------

# Filesystems per disk

        lspv -l $i
        echo
        echo ------ SPACE AVALIABLE \($i\) ------

# Free space per disk

#        lslv -p $i
        lspv -p $i
        echo
done

echo ------ END OF FILE ------