X hits on this document

PDF document

February 10, 2006 - page 105 / 238

580 views

0 shares

0 downloads

0 comments

105 / 238

6.5. DEALING WITH SDR REPOSITORIES IN OPENIPMI

93

update mode

The update modes supported. Valid values are: 00b - unspecified 01b - Only non-modal updates are supported 10b - Only modal updates are supported 11b - Both modal and non-modal updates are supported

supports delete sdr supports partial add sdr supports reserve sdr supports get sdr repository allocation dynamic population

If true, the repository supports deleting individual SDRs one at a time. If true, the repository supports the partial add command. If true, the repository supports using reservations. If true, the repository allows allocation information to be fetched with the Get SDR Repository Allocation Info command. If true, the IPMI system can dynamically change the contents of the SDR repository. This may only be true for device SDR repositories. Although main SDR repositories can dynamically change, it is not the system that does this, it is the user.

The following call can be used to tell whether sensors are available on specific LUNs. int ipmi_sdr_get_lun_has_sensors(ipmi_sdr_info_t *sdr,

unsigne int

d int

lun, *val);

6.5.3

Handling a SDR Repository

Once you have an SDR repository, you can fetch individual SDRs from it by the record id, type, or index. To find out the number of SDRs in the repository, use:

i n t i p m i _ g e t _ s d r _ c o u n t ( i p m i _ s d r _ i n f o _ t * s d r ,

unsigned int

*count);

Fetching the SDRs by index is probably the most useful function; it treats the repository as an array and lets you fetch items, starting at zero. The call is:

int ipmi_get_sdr_by_index(ipmi_sdr_info_t *sdr,

int

index,

_ _ ipmi sdr t

_ *return sdr);

int ipmi_get_sdr_by_type(ipmi_sdr_info_t *sdr,

int

type,

_ _ ipmi sdr t

_ *return sdr);

If you are interested in a specific record number, you can fetch it with:

int ipmi_get_sdr_by_type(ipmi_sdr_info_t *sdr,

int

type,

_ _ ipmi sdr t

_ *return sdr);

If you want to find the first SDR of a given type, use the following call:

Document info
Document views580
Page views580
Page last viewedMon Dec 05 15:00:42 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments