Specifications
4
Changing Shelf Settings Using HPI
75
Overriding the cooling algorithm with an HPI application
ThefollowingstepsillustratehowyoucandothisusingHPI:
1. OpenanHPIsessionusingtheactiveShelfManagerIPaddressasDomainId(seeWriting
HPIapplicationsonpage 57forinformation).
2. Usingthefanresources,setallfancontrolstotheSAHPI_CTRL_MODE_MANUALmode,
keepingtheirspeedsunchanged.Thisplacestheminthesystemmanageroverridemode.
Thefanresourcescanbeidentifiedbytheassociatedentitytype,
SAPHI_ENT_COOLING_UNIT.
3. Subscribeforeventsonthesession(seetheeventssectionoftheSAFHPISpecification).
StartlisteningforeventsinblockingmodebyissuingthesaHpiEventGet()functioncall
withTimeOut=SAHPI_TIMEOUT_BLOCK(seethefunctiondescriptionintheSAFHPI
Specification).Thisenablesreceptionofeventsdynamically.
4. Whenatemperatureassertioneventofsignificantseverityisreceived,feeditintothe
externalcoolingmodule.Thecoolingmodulecanthenusethefanresource'sfancontrol
toraiseorlowerthefanspeeds.
FormoreinformationonHPIcoolingandfancontrol,seetheSAFMappingSpecification.