Specifications
4
Changing Shelf Settings Using HPI
71
Querying the current hot-swap state of a FRU
YoucanqueryaFRU’scurrenthot‐swapstate:
•UsingtheCLIcommandstogetasummaryofFRUinformation,includingfirmware
versionsandhot‐swapstates.Enter:
platform‐mgmt
showfrus
ForinformationonadditionalFRUs,suchasRTMs,fans,andpowerequipmentmodules,
enter:
platform‐mgmt
showchassisstatus
•UsingtheHPIhot‐swapfunctionsaHpiHotSwapStateGet()toquerythehot‐swapstateof
theFRUassociatedwitharesource.
•UsingtheSNMPvariablesaHpiHotSwapState.0xffffffff.<FRU‐ResourceId>.falsefromthe
HPI‐B0101‐MIBmoduletogetthehot‐swapstateofaparticularFRU.
•Usingthehpiappexampleapplicationinteractivelyorasaprogrammaticexamplefor
writingyourapplications.
TheATCAFRU‘M’statesaremappedtotheHPIhot‐swapstatesasfollows:
FormoredetailsonhowtheATCAhot‐swapstatemachineismappedtotheHPIhot‐swap
model,refertothehotswapsectionoftheSAFMappingSpecification.
Figure 8. M state to hot-swap state mapping
FRU “M” state HPI hot-swap state
M0 Not Present
M1 Inactive
M2 and M3 Insertion Pending
M4 Active
M5 and M6 Extraction Pending
M7 Lost Communication