X hits on this document

PDF document

February 10, 2006 - page 45 / 238

1009 views

0 shares

0 downloads

0 comments

45 / 238

3.2. SYSTEM INTERFACES

33

struct ipmi_timing_parms tparms;

r v = i o c t l ( f d , I P M I C T L _ G E T _ T I M I N G _ P A R M S _ C M D , & t p a r if (rv == -1) error handling... m s ) ;

p r i n t f ( " p a r m s w e r e : % d % d " , t p a r m s . r e t r i e s , t p a r m s . r e t r y _ t i m e _ m s ) ;

tparms.retries = 0; /* No resends */ tparms.retry_time_ms = 1000; /* one second */ r v = i o c t l ( f d , I P M I C T L _ S E T _ T I M I N G _ P A R M S _ C M D , & t p a r m s ) if (rv == -1) ;

error handling...

This will set the timing parameters for all future messages. You can also override the timing on individual messages.

struct ipmi_req_settime { s t r u c t i p m i _ r e q r e q ;

int retries; u n s i g n e d i n t r e t r y _ t i m e _ m s ;

};

The req is the request as shown previously. Use the following ioctl to perform the request:

r v = i o c t l ( f d , I P M I C T L _ S E N D _ C O M M A N D _ S E T T I M E , & r e q _ t i m e ) ;

Setting Your Local IPMB Address

Unfortunately, IPMI has no standard way to determing your local IPMB address. It is usually set to 20h, but especially in bussed systems, the local management controller may have a different address.

If you do not set your IPMB address properly, messages out on the IPMB will not have the proper source address and thus the response will go to the wrong place. To avoid this problem, the OpenIPMI allows the user to set the local IPMB address and the local LUN. The following shows how to get and set the IPMB address:

unsigned int ipmb_addr;

r v = i o c t l ( f d , I P M I C T L _ G E T _ M Y _ A D D R E S S _ C M D , & i p m b _ a if (rv == -1) error handling... d d r ) ;

p r i n t f ( " M y a d d r e s s w a s : % x " , i p m b _ a d d r ) ;

i p m b _ a d d r = 0 x b 2 ;

Document info
Document views1009
Page views1009
Page last viewedWed Jan 18 15:13:51 UTC 2017
Pages238
Paragraphs8090
Words85809

Comments