Specifications
4
Changing Shelf Settings Using HPI
80
Saving a configuration file to store custom settings for a resource
Afteraresourcehasbeenconfiguredtoadesiredoperationalstate,itisagoodideatosave
theconfigurationsoitcanbeloadedwhenevertheFRUisre‐introducedintheshelfinthe
sameslot.Ifyouneedtorestorethestateoftheresourcelater,youcanloadthesaved
configurationusingtheparametercontrolactionSAHPI_RESTORE_PARM.
Tocreateasavedconfigurationfileforaresource,usethesaHpiParmControl()functionwith:
ResourceId=ResourceIdoftheresource
ParmAction=SAHPI_SAVE_PARM
Iftheparametercontroloperationsucceeds,thesavedconfigurationfileforthere sourcewill
havebeenupdatedin/tmp/shmgr/hpi.
Using a resource’s configuration file for another resource of the same kind
Tousearesource’ssavedconfigurationfi leforanotherresourceofthesamekind,renamethe
configurationfileforthealternateresource.Theexamplebelowillustratesthisprocedureas
appliedtotwoCPMs,butyoucanusethesameproceduretocreateduplicateconfiguration
filesforanyoftheslotresources,theSCMs,theSPMs,orthenodemodules.
Example:
ThisexampleassumesyouwanttousethesameconfigurationsettingsontwoCompute
ProcessingModules(CPMs)intheshelfwiththefollowingResourceIdvalues:
Slot4–ResourceId0x4008E
Slot11–ResourceId0xB0090
1. Configureeitheroneoftheresources,inthiscasetheCPMinslot4(ResourceId0x4008E),
toadesired state.
2. SavetheconfigurationusingtheSAHPI_SAVE_PARMoperationdescribedinSavinga
configurationfiletostorecustomsettingsforaresource(above).
Thiscreatestheconfigurationfile0004008E.hcf.savedin/tmp/shmgr/hpi forthe
CPM
resource0x4008E.(0x0004008Eistheslot4CPM’sResourceIdin4‐bytehexadecimal
format.)
3. Copythe0004008E.hcf.savedconfigurationfileto000B0090.hcf.saved(0x000B0090isthe
ResourceIdfortheslot11CPMin4‐bytehexadecimalformat).Thisnewfileisnowusable
asthesavedconfigurationfilefortheCPMresource
0xB0090inslot11.
4. ThesaHpiParmControl()functioncannowbeusedtoloadthesavedconfigurationtothe
CPMinslot11usingthesevalues:
ResourceId=0xB0090
ParmAction=SAHPI_RESTORE_PARM