HP Linux Server Management Software User Manual

Page 16

Advertising
background image

Advanced topics 16

HPDISCOVERY utility to determine the server type, and then executes a typical deployment script
(DEPLOYSERVER.CMD).

REM @echo off
cd %tools%
%Tools%\System\hpdiscovery -f hpdiscovery.xml

%Tools%\System\ifhw hpdiscovery.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 hpdiscovery.xml %Tools%\System\allboards.xml

HWL:SystemName eq "ProLiant ML370"
if errorlevel 1 goto NEXT2
call .\Typical.cmd
goto end

:NEXT2
%Tools%\System\ifhw hpdiscovery.xml %Tools%\System\allboards.xml

HWL:SystemName eq "ProLiant ML570"
if errorlevel 1 goto NEXT3
call .\Typical.cmd
goto end

:NEXT3
%Tools%\System\ifhw hpdiscovery.xml %Tools%\System\allboards.xml

HWL:SystemName eq "ProLiant BL10e"
if errorlevel 1 goto NEXT4
call .\Typical.cmd
goto end

:NEXT4
REM *** Insert additional server tests as needed for your

environment

cd \
:end

c.

Edit the DEPLOYSERVER.CMD file for your specific environment.

NOTE:

The IFHW and HWQUERY utilities can be used to assist in customizing the

DEPLOYSERVER.CMD script for your environment. For more information about these utilities,
see the "Toolkit utilities (on page

26

)" section.

The DEPLOYSERVER.CMD file is similar to the following:

Advertising
This manual is related to the following products: