New feature! Upgrade and increase expert visibility of your issues with Priority Questions.
@echo off set status=0 cd C:\Program Files\PowerEdge Diagnostics\oldiags\bin pediags -? > nul if not %errorlevel%==0 ( echo Dell Poweredge Diagnostice is not installed or not in path exit 2 ) cd C:\Program Files\PowerEdge Diagnostics\oldiags\bin pediags raidctrl --show all |find "Device is working properly" >nul if %errorlevel%==0 set status=0 if %status%==0 ( echo Raid is OK exit 0 ) if %status%==1 ( echo Raid is DeGraded exit 1 )
Join the community of 500,000 technology professionals and ask your questions.