Specifications

4
Changing Shelf Settings Using HPI
59
Using OpenHPI tools
OpenHPIisanopensourceprojectcreate dwiththeintentofprovidinganimplementationof
SAFsHPI.ThisopensourcecommunityprovidesseveralHPIapplications,plugins,and
utilitiesthatcanbeusedwiththeRadisysHPIimplementation.TheRadisysHPI clientlibraryis
fullycompatiblewithallOpenHPItools.
YoucandownloadtheOpenHPIsoftwaresuitefromtheOpenHPIWebsite:
http://www.openhpi.org/
RefertotheREADMEfilethatcomeswiththeOpenHPIsoftwareforinstructionson
configuringandbuildingtheOpenHPIsoftwaresuite.
SomeoftheusefulOpenHPIapplicationsarestoredintheclientsandhpi_shelldirectoriesof
theOpenHPIsoftware.DothefollowingtolinktheseapplicationswiththeRadisysplatform’s
HPIclientlibrary:
1. DownloadthelatestOpenHPIsoftwarefromhttp://www.openhpi.org/.
2. Expandthetar.gzarchive.ConfigureandbuildtheentireOpenHPIsoftwareasinstructed
intheincludedREADMEfile.Youdonotneedtoinstallthesoftwaresuitetorunit.
3. Changethedirectorytosrc/.libsdirectory.ThisisthelocationofthebuiltOpenHPI
libraries.libopenhpi.soisasymboliclinktotheOpenHPIlibraryforHPIB.03.02.
Note:IftheOpenHPIsoftwaresuitewasinstalledusingthemakeinstalloption,the
libopenhpi.solibrarywasinstalledinthestandardLinuxlibrarylocation/usr/local/lib.
4. CopytheRadisysHPIclientlibrarylibhcl.sotothedirectorycontainingtheOpenHPI
library.
5. Redirectthesymboliclinklibopenhpi.sotopointtolibhcl.so(libopenhpi.solibhcl.so):
Note:TheversionnumberinthefollowingcodeisdependentontheOpenHPIversionthat
youareusing;forexample,libopenhpi.so.2.2.1.
ln‐sflibhcl.solibopenhpi.so.<versionnumber>
6. ChangetotheOpenHPIclientsdirectory(../../clients).AnyoftheOpenHPIapplications
residinghere,suchashpitree,hpievent,andhpisensor,cannowberunwiththeRadisys
platform’sHPIclientlibrary.
EnsureSAHPI_UNSPECIFIED_DOMAIN_IDissetasanenvironmentvariablewithitsvalue
beingthatoftheShelfManagerIPaddressoftheshelftobemanaged.SeeWritingHPI
applicationsonpage 57formoreinformationonsettingtheDomainId.
TheOpenHPIsoftwaresuiteisasourceofusefulHPIsampleapplications,plugins,and
utilities.Radisysencouragesdownloadingandcustomizingtheseapplicationsforspecific
functionandmanagementrequirements.