Once the snmp-mibs/mdraid-snmp-mib package has been installed the Hacking Networked Solutions MD-RAID-MIB will be loaded automatically by all of the SNMP aware applications which search for MIB files in the standard location. The example below shows the snmptranslate utility (part of the net-analyzer/net-snmp package) being used to display the structure of the MD-RAID-MIB as a tree.
+--mdRaid(2)
|
+--mdRaidMIB(1)
|
+--mdRaidTable(2)
|
+--mdRaidArrayEntry(1)
| Index: mdRaidArrayIndex
|
+-- -R-- Integer32 mdRaidArrayIndex(1)
| Range: 0..65535
+-- -R-- String mdRaidArrayDev(2)
| Textual Convention: DisplayString
| Size: 0..255
+-- -R-- String mdRaidArrayVersion(3)
| Textual Convention: DisplayString
| Size: 0..255
+-- -R-- String mdRaidArrayUUID(4)
| Textual Convention: DisplayString
| Size: 0..255
+-- -R-- String mdRaidArrayLevel(5)
| Textual Convention: DisplayString
| Size: 0..255
+-- -R-- String mdRaidArrayLayout(6)
| Textual Convention: DisplayString
| Size: 0..255
+-- -R-- String mdRaidArrayChunkSize(7)
| Textual Convention: DisplayString
| Size: 0..255
+-- -R-- String mdRaidArraySize(8)
| Textual Convention: DisplayString
| Size: 0..255
+-- -R-- String mdRaidArrayDeviceSize(9)
| Textual Convention: DisplayString
| Size: 0..255
+-- -R-- EnumVal mdRaidArrayHealthOK(10)
| Textual Convention: TruthValue
| Values: true(1), false(2)
+-- -R-- EnumVal mdRaidArrayHasFailedComponents(11)
| Textual Convention: TruthValue
| Values: true(1), false(2)
+-- -R-- EnumVal mdRaidArrayHasAvailableSpares(12)
| Textual Convention: TruthValue
| Values: true(1), false(2)
+-- -R-- Gauge mdRaidArrayTotalComponents(13)
+-- -R-- Gauge mdRaidArrayActiveComponents(14)
+-- -R-- Gauge mdRaidArrayWorkingComponents(15)
+-- -R-- Gauge mdRaidArrayFailedComponents(16)
+-- -R-- Gauge mdRaidArraySpareComponents(17)
The Hacking Networked Solutions MD-RAID-MIB contains a number of entries for each monitored RAID array. The table below lists these entries and provides a brief description of the data provided in each along with example values.
Description of the MD-RAID-MIB::mdRaidTable entries | |
---|---|
mdRaidArrayIndex (1) | This field contains the index to the data in the rest of the table. |
1 - n (number of monitored devices) | |
mdRaidArrayDev (2) | The mdRaidArrayDev entry provides access to a string containing the device path of the target array. |
/dev/md3 | |
mdRaidArrayVersion (3) | The mdRaidArrayVersion entry contains a string representing the metadata version of the target array. |
0.9 | |
mdRaidArrayUUID (4) | Each MD-RAID array is identified by a unique identifier. The mdRaidArrayUUID entry allows access to a string representation of the UUID of the target array. |
e6414f84:9563e117:be6508ee:8797bbcc | |
mdRaidArrayLevel (5) | The mdRaidArrayLevel entry provides access to the string representation of the RAID level employed by the target array. |
raid6 | |
mdRaidArrayLayout (6) | The mdRaidArrayLayout entry enables the string describing the RAID layout of the target array to be retrieved. |
left-symmetric | |
mdRaidArrayChunkSize (7) | All RAID layouts besides RAID-1 operate on "chunks" of data. The mdRaidArrayChunkSize entry contains the string representation of the Chunk Size in use on the target array. |
64K | |
mdRaidArraySize (8) | The mdRaidArraySize entry returns a string representation of the current size of the target array in bytes. |
437754816 | |
mdRaidArrayDeviceSize (9) | The mdRaidArrayDeviceSize entry provides access a string representation of the amount of space occupied by the target array on each component device. |
145918272 | |
mdRaidArrayHealthOK (10) | The mdRaidArrayHealthOK entry is a boolean value which will either be true if the target array is operating normally or false if the target array is operating in degraded or rebuilding modes. |
true | |
mdRaidArrayHasFailedComponents (11) | The mdRaidArrayHasFailedComponents entry is a boolean value indicating whether the target array currently has any failed components. A value of true indicates that one or more component devices has failed while a value of false indicates that all component devices are operating normally. |
false | |
mdRaidArrayHasAvailableSpares (12) | The mdRaidArrayHasAvailableSpares entry provides access to a boolean value indicating the current availability of spare devices on the target array. A value of true indicates that spare devices are available to the current array while a value of false indicates that no spare devices are currently available. |
false | |
mdRaidArrayTotalComponents (13) | The mdRaidArrayTotalComponents entry provides access to a gauge indicating the total number of component devices of the array. |
4 | |
mdRaidArrayActiveComponents (14) | The mdRaidArrayActiveComponents entry provides access to a gauge indicating the number of Active Components associated with the array. |
4 | |
mdRaidArrayWorkingComponents (15) | The mdRaidArrayWorkingComponents entry provides a gauge indicating the number of Working Components in use by the array. |
4 | |
mdRaidArrayFailedComponents (16) | The mdRaidArrayFailedComponents entry is gauge representing the number of Failed Components associated with the target array. |
0 | |
mdRaidArraySpareComponents (17) | The mdRaidArraySpareComponents entry provides access to a gauge representing the number of available Spare Components which have been allocated to this array. |
0 |