Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (33 sloc) 960 Bytes
# Check Dell PowerVault MD 34/38 Series Storage Arrays Overall Health
# Prerequisites: smcli on a windows machine and a Nagios compatible agent
# Version 0.1
# This script uses smcli to check the overall storage health
# Copyright (c) George Panou
#Script.ps1 - beginning of script
#Declare our named smcli command line arguments here...
[string] $IP,
[string] $Commands
$Commands = "'show storageArray healthStatus;'"
#Write-Output "You specified: $Arguments"
$Result = invoke-expression "& 'C:\Program Files\Dell\MD Storage Software\MD Storage Manager\client\smcli' $IP -c $Commands -S -e "
Write-Output = $Result
$OutputNagios = ""
if($Result -match "optimal"){
if($flag -eq 1){
Write-Output "OK : $OutputNagios"
Write-Output "Critical : $OutputNagios"
You can’t perform that action at this time.