rem @echo off
cd %tools%
%Tools%\System\hpdiscovery -f .\hwdisc.xml
pause
REM *** ----------------------------------------------------------------------------------------------------
REM *** Check Server Type
REM *** ----------------------------------------------------------------------------------------------------

%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant BL20p" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML570 G2" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL380 G3" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL380 G4" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML350 G3" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML310" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL370 G3" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML530 G2" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL580 G2" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML350 G2" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML330 G2" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant BL10e" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL360 G2" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML750" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL380 G2" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML370 G2" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL760 G2" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML330e" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL320" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML350" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML330" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL580" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML570" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL360" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL380" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML530" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML370" 	&& call %SystemScripts%\Typical.cmd
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML350" 	&& call %SystemScripts%\Typical.cmd

cd \
goto end

REM
REM   OR DO THIS
REM

%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWL:SystemName eq "ProLiant DL380 G2"
if errorlevel 1 goto NEXT1
call .\Typical.cmd
goto end

:NEXT1
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWL:SystemName eq "ProLiant ML370"
if errorlevel 1 goto NEXT2
call .\Typical.cmd
goto end

:NEXT2
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWL:SystemName eq "ProLiant ML570"
if errorlevel 1 goto NEXT3
call .\Typical.cmd
goto end

:NEXT3
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWL:SystemName eq "ProLiant BL10e"
if errorlevel 1 goto NEXT4
call .\Typical.cmd
goto end

:NEXT4

:unknown
echo Why are we here....
pause

cd \
:end

