X hits on this document

PDF document

February 10, 2006 - page 187 / 238

885 views

0 shares

0 downloads

0 comments

187 / 238

"

not none.\n", progname, progname);

}

static int s e n s o r _ t h r e s h o l d _ e v e n t _ h a n d l e r ( i p m i _ s e n s enum ipmi_event_dir_e enum ipmi_thresh_e o r _ t e n u m i p m i _ e v e n t _ v a l u e _ enum ipmi_value_present_e unsigned int double void d i r _ e i p m i _ e v e n t _ t

*sensor, dir, threshold, high_low, value_present, raw_value, value, *cb_data, *event)

{

ipmi_entity_t *ent int id, instance; char name[33];

= i p m i _ s e n s o r _ g e t _ e n t i t y ( s e n s o r ) ;

id = ipmi_entity_get_entity_id(ent); instance = ipmi_entity_get_entity_instance(ent); ipmi_sensor_get_id(sensor, name, 32);

printf("Event from sensor %d.%d.%s: %s %s %s\n", id, instance, name, ipmi_get_threshold_string(threshold), ipmi_get_value_dir_string(high_low), ipmi_get_event_dir_string(dir)); if (value_present == IPMI_BOTH_VALUES_PRESENT) {

printf("

v a l u e i s % f ( % 2 . 2 x ) \ n " , v a l u e , r a w _ v a l u e

);

}

else

if

(value_present

==

I P M I _ R A W _ V A L U E _ P R E S E N T )

{

printf(" } if (event)

r a w v a l u e i s 0 x % x \ n " , r a w _ v a l u e ) ;

printf("Due to event 0x%4.4x\n", ipmi_event_get_re

cord_id(event));

/* This passes the event on to the main event handler, not exist in this program. */ return IPMI_EVENT_NOT_HANDLED;

which does

}

_ _ _ enum ipmi event dir e dir,

int

offset,

int

severity,

int

prev_severity,

s e static int n s o r _ d i s c r e t e _ e v e n t _ h a n d l e r ( i p m i _ s e n s o r _ t

*sensor,

175

Document info
Document views885
Page views885
Page last viewedSat Dec 10 16:42:49 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments