Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:smartarray [2006/05/22 00:07]
a
linux:smartarray [2009/05/25 00:35] (current)
Line 35: Line 35:
   logicaldrive 1 (273 GB, RAID 5): Ok   logicaldrive 1 (273 GB, RAID 5): Ok
      
-  +==== HP Servers: hwraidinfo and hwraidstatus in Linux ==== 
 + 
 +   #!/bin/sh 
 +   SLOTLIST=$(hpacucli ctrl all show | \ 
 +   grep Slot | sed -e 's/^.*Slot //g' -e 's/ .*$//g'
 +   for i in $SLOTLIST 
 +   do 
 +    echo 
 +    hpacucli ctrl slot=$i show | grep -v "^$" 
 +    echo 
 +    hpacucli ctrl slot=$i ld all show | grep -v "^$" 
 +    hpacucli ctrl slot=$i pd all show | grep -v "^$" 
 +   done 
 +   echo 
 + 
 +And here is the script equivalent of hwraidstatus: 
 + 
 +   #!/bin/sh 
 +   SLOTLIST=$(hpacucli ctrl all show | \ 
 +   grep Slot | sed -e 's/^.*Slot //g' -e 's/ .*$//g'
 +   for i in $SLOTLIST 
 +   do 
 +    echo 
 +    hpacucli ctrl slot=$i show status | grep -v "^$" 
 +    echo 
 +    hpacucli ctrl slot=$i ld all show status | grep -v "^$" 
 +    hpacucli ctrl slot=$i pd all show status | grep -v "^$" 
 +   done 
 +   echo 
linux/smartarray.1148249247.txt.gz · Last modified: 2009/05/25 00:34 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready