X hits on this document

PDF document

February 10, 2006 - page 205 / 238

617 views

0 shares

0 downloads

0 comments

205 / 238

{

for (dir=IPMI_ASSERTION; dir<=IPMI_DEASSERTION; dir++) { for (thresh=IPMI_LOWER_NON_CRITICAL; thresh<=IPMI_UPPER_NON_RECOVERABLE; thresh++)

{

char *v;

r v = i p m i _ s e n s o r _ t h r e s h o l d _ e v e n t _ s u p p o r t e d ( s e n s o r , t h r e s h , v a l u e _ d i r , d i r , & v a l ) ; if (rv || !val)

continue;

i f ( i p m i _ i s _ t h r e s h o l d _ e v e n t _ s e t ( s t a t e s , t h r e value_dir, dir)) v = ""; s h ,

else

v=

" not";

printf("

%s %s %s was%s enabled\n",

i p m i _ g e t _ t h r e s h o l d _ s t r i n g ( t h r e s h ) , i p m i _ g e t _ v a l u e _ d i r _ s t r i n g ( v a l u e _ d i r ) , i p m i _ g e t _ e v e n t _ d i r _ s t r i n g v); ( d i r ) ,

i p m i _ t h r e s h o l d _ e v e n t _ s e t ( s d a t a - > e s , t h r e s h , value_dir, dir);

}

}

} } else {

/* Check each event, print out the current state, and turn it

on in the events to set if it is available. */

e n u m i p m i _ e v e n t _ d i r _ e d i r ;

int

i;

for

(dir=IPMI_ASSERTION; for (i=0; i<15; i++)

dir<=IPMI {

_

DEASSERTION;

dir++)

{

char

*v;

int

val;

r v = i p m i _ s e n s o r _ d i s c r e t e _ e v e n t _ s u p p o r t e d

(sensor, i, dir, &val); if (rv || !val)

continue;

193

Document info
Document views617
Page views617
Page last viewedWed Dec 07 16:38:55 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments