'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' "check_dell_aacraid.wsf" ' ' This script was initially developed by Anstat Pty Ltd for internal use, ' and has kindly been made available to the Open Source community for ' redistribution and further development under the terms of the ' GNU General Public License: http://www.gnu.org/licenses/gpl.html ' ' This script is supplied 'as-is', in the hope that it will be useful, but ' neither Anstat Pty Ltd nor the authors make any warranties or guarantees ' as to its correct operation, including its intended function. ' ' Or in other words: ' Test it yourself, and make sure it works for YOU. ' ' Authors: George Hansper, Richard Balaganeshan ' e-mail: Name.Surname@anstat.com.au ' ' 28.07.2004 ver 1.0 ' ' Check status of Dell RAID array using Dell PERC 2 utility ' ' This pluging will return the status of the a Dell RAID Array ' This script requires the command line utility "afacli.exe" ' from the package: "PERC 2, 2/Si, 3/Si, 3/Di Management utility (FAST)" ' ' *** Warning: this script has not been tested thoroughly - use at own risk *** ' ' This script is based on an equivalent Perl script for Linux. The following ' empirical information was used to establish the status codes: ' Status info: ' Disk OK and Array OK: ' OK ACTIVATE ' (may be running on hotspare - slot marked "OK HOTSPARE ACTIVATE") ' Disk OK and Rebuilding ' OK REBUILD FAILED CRITICAL ACTIVATE ' Disk Failed (unplugged) ' OK FAILED CRITICAL UNCONFIG EMPTY I/R READY NOTACTIVATE ' OK EMPTY I/R READY NOTACTIVATE ' Hotspare ready but not in use ' OK UNCONFIG HOTSPARE ACTIVATE ' Hotspare Disk rebuilding ' OK REBUILD FAILED CRITICAL HOTSPARE ACTIVATE ' Hotspare Disk online (ie after a failure) ' OK HOTSPARE ACTIVATE ' ' Disk failed and no hotspare available ' OK FAILED CRITICAL ACTIVATE ' OK FAILED CRITICAL HOTSPARE ACTIVATE ' ' From the Dell documentation: ' Status Meaning ' ------- --------- ' OK The device that resides in this slot is operational. In the example, the device that resides in device slot 0 on enclosure management device 0 is operational. ' ERROR The device that resides in this slot has error conditions. ' FAULTY The device that resides in this slot has some hardware or data fault. ' REBUILD The device that resides in this slot is being rebuilt. ' FAILED The device that resides in this slot is in a device array. One member of this device array has an error. ' CRITICAL The device that resides in this slot is in a device array that was previously fault-tolerant and is now non-fault-tolerant. ' SCRUB The device that resides in this slot is in a device array that is undergoing a parity check operation. ' WARNING The device that resides in this slot is likely to fail in the near future. ' UNCONFIG The device that resides in this slot is not currently configured as a member of a device array or as a hot spare. ' HOTSPARE The device that resides in this slot is configured as a hot spare. ' REBUILDSTOP The device that resides in this slot was rebuilding, but the rebuild operation terminated abnormally or unsuccessfully. ' EMPTY No physical device resides in this slot. ' I/R READY The slot is ready for the physical insertion or removal of a device. ' NOTACTIVATE The slot is not activated. The device that resides in the slot cannot be accessed on the SCSI bus. ' ACTIVATE The slot is activated. The device that resides in the slot can be accessed on the SCSI bus. ' Check status of Dell RAID array using Dell PERC 2 utility This script requires the command line utility "afacli.exe" from the package: "PERC 2, 2/Si, 3/Si, 3/Di Management utility (FAST)" Example NRPE_NT Usage: command[check_aacraid]=c:\winnt\system32\cscript.exe //NoLogo //T:10 c:\nrpe_nt\check_aacraid.wsf