X hits on this document

PDF document

February 10, 2006 - page 117 / 238

611 views

0 shares

0 downloads

0 comments

117 / 238

7.6. ENTITY HOT-SWAP

105

} printf("Sensor %s\n", name); if (allocated)

free(name);

}

void print_sensors(ipmi_entity_t *entity) {

i p m i _ e n t i t y _ i t e r a t e _ s e n s o r s ( e n t i t y , h a n d l e _ s e n s o r , N U L } L ) ;

7.6

Entity Hot-Swap

OpenIPMI supports the notion of an entity being hot-swapped. It supports a complete state machine that allows insertion to be detected, requests to power on the entity and requests to power off the entity. These requests generally come from the user in the form of a switch or something of that nature. It also supports a subset of the hot-swap state machine if all these features are not available.

Unfortunately, IPMI does not have this concept, so this must be added by OEM code. Several systems that support hot-swap are available in OpenIPMI, including the Motorola MXP (see appendix F on page 169) and chassis that adhere to the PICMG ATCA standard (see appendix E on page 167).

Not all entities are hot-swappable. If an entity is hot-swappable, the function:

int ipmi_entity_hot_swappable(ipmi_entity_t *ent); will return true.

7.6.1

Hot-Swap

State

OpenIPMI supports eight hot-swap states: IPMI HOT SWAP NOT PRESENT IPMI HOT SWAP INACTIVE IPMI HOT SWAP ACTIVATION REQUESTED IPMI HOT SWAP ACTIVATION IN PROGRESS IPMI HOT SWAP ACTIVE IPMI HOT SWAP DEACTIVATION REQUESTED IPMI HOT SWAP DEACTIVATION IN PROGRESS IPMI HOT SWAP OUT OF CON These may be converted to a string name with the function:

char *ipmi_hot_swap_state_name(enum ipmi_hot_swap_states state);

Figure 7.1 on the next page shows a simple hot-swap state machine for an entity that only supports presence. In effect, the entity is either not present or present.

Figure 7.2 on page 107 shows a more complex hot-swap state machine. This would be used for an entity that supported some type of power control (the entity can be present but inactive). Upon insertion, the entity will move from not present to inactive. If the entity supports some type of activation request, it will

Document info
Document views611
Page views611
Page last viewedWed Dec 07 12:51:32 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments