mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-27 07:44:01 +02:00
Very minor bugfixes (Rev 1.13)
This commit is contained in:
parent
b25b140994
commit
43655abb1e
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# $Id: megaclisas-status,v 1.12 2015/01/14 20:22:48 root Exp $
|
# $Id: megaclisas-status,v 1.13 2015/01/14 20:33:23 root Exp $
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
@ -283,7 +283,7 @@ while controllerid < controllernumber:
|
|||||||
totalunconfdrivenumber += returnUnconfDriveNumber(output)
|
totalunconfdrivenumber += returnUnconfDriveNumber(output)
|
||||||
controllerid += 1
|
controllerid += 1
|
||||||
|
|
||||||
if ( totalunconfdrivenumber > 0):
|
if totalunconfdrivenumber:
|
||||||
print '-- Unconfigured Disks information --'
|
print '-- Unconfigured Disks information --'
|
||||||
print '-- ID\t| Model | Status | Speed | Temperature | Slot ID | LSI Device ID '
|
print '-- ID\t| Model | Status | Speed | Temperature | Slot ID | LSI Device ID '
|
||||||
|
|
||||||
@ -299,7 +299,7 @@ if ( totalunconfdrivenumber > 0):
|
|||||||
output = getOutput(cmd)
|
output = getOutput(cmd)
|
||||||
arraydisk = returnUnconfDiskInfo(output,controllerid)
|
arraydisk = returnUnconfDiskInfo(output,controllerid)
|
||||||
for array in arraydisk:
|
for array in arraydisk:
|
||||||
print 'c'+str(controllerid)+'\t| '+array[1]+' | '+array[0]+' | '+array[2]+' | '+array[3]+' | ID: \'['+array[4]+':'+array[5]+']\' | '+array[6]
|
print 'c'+str(controllerid)+'uXpY\t| '+array[1]+' | '+array[0]+' | '+array[2]+' | '+array[3]+' | ID: \'['+array[4]+':'+array[5]+']\' | '+array[6]
|
||||||
controllerid += 1
|
controllerid += 1
|
||||||
print ''
|
print ''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user