Previous Topic

Next Topic

Querying the HPDISCOVERY file based on system name

In the following script, the IFHW utility checks the HPDISCOVERY data in the hpdiscovery.xml file for the system name ProLiant BL20p. If the system name is found, the script calls the bl20p.cmd file.

ifhw .\hpdiscovery.xml allboards.xml HWL:SystemName eq "ProLiant BL20p"

if errorlevel 1 goto NEXT1

call .\BL20p.cmd

goto end

:NEXT1

ifhw .\hpdiscovery.xml allboards.xml HWL:SystemName eq "ProLiant DL380 G4"

if errorlevel 1 goto NEXT2

call .\ DL380G4.cmd

goto end