Differences

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

Link to this comparison view

Next revision
Previous revision
linux:smartarray [2006/05/21 22:32]
a created
linux:smartarray [2009/05/25 00:35] (current)
Line 16: Line 16:
   dpkg -i hpacucli_7.20-17_i386.deb   dpkg -i hpacucli_7.20-17_i386.deb
  
-===== hpacucli usage =====+===== hpacucli usage (example)=====
  
   => controller all show status   => controller all show status
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.1148243533.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