Specifications

4
Changing Shelf Settings Using HPI
79
How configuration files are created for a new resource
DuringHPIinitialization(whenresourcesarebeingcreatedfortheshelf,slots,andFRUs),
initialdefaultconfigurationfilesareautomaticallycreatedifnonearefoundin
/tmp/shmgr/hpi.Ifnocorrespondingsavedconfigurationfileisfoundfortheresourcein
/var/lib/shmgr,theinitialdefaultconfigurationfi leiscopiedastheinitialsavedconfiguration
file(withthe.hcf.savedsuffix).Youcanlateroverwritetheinitialsavedconfigurationfilein
/var/lib/shmgrtocreateacustomdefaultconfiguration.
Foryourconvenience,theShelfManagermodule’ssoftwareimagealsocomeswithsample
defaultconfigurationfilesforsomeoftheknownFRUsinthesystem,theslotresourcesand
theshelfresource.Thesesampledefaultconfigurationfilesresideinthe/var/lib/shmgr
directoryofthemodule’ssoftwareimage.Notethatthesampledefa ultconfigurationfilefor
slotresources,SLOTS.hcf.deflt,iscopiedasthedefaultconfigurationfileforallslotresources
thefirsttimeaShelfManagermoduleisinitialized.Themoduledoesnothaveany
configurationfilespriortofirstinitialization.
Creating a default configuration file for a new resource
IfanewFRUisinsertedintheshelfandnosampledefaultconfigurationexists(forexample,in
theunlikelyscenariothatdefaultconfigurationfilecreationfailedduringresourcecreation),
thefollowingprocedurecanbe usedtocreateone:
1. InserttheFRUintheshelfandchecktheHPIRPTforitsresource.Thiscanbedoneusing
anHPI1.1compliantuserapplication.
2. BeforeanychangesaremadetotheFRU,usethesaHpiParmControl()functionwith:
ResourceId=ResourceIdofthenewlycreatedresource
ParmAction=SAHPI_SAVE_PARM.
Iftheparametercontroloperationsucceeds,a newsavedconfigurationfilewillhavebeen
crea tedin/tmp/shmgr/hpi.Forexample,forresource0xB0090,asavedconfigurationfile
named000B0090.hcf.savedwillbecreated.
3. Renamethe%08X.hcf.savedfileto%08X.hcf.deflt.
Forexample,forresource0xB0090,thesavedconfigurationfile000B0090.hcf.saved
shouldberenamed
ormovedto000B0090.hcf.deflt.ThisnowbecomesthedefaultHPI
configurationfileforthenewresourceandwillbeloadedwhentheparametercontrol
actionSAHPI_DEFAULT_PARMisinvokedontheresourcebytheHPIapplication.