I was playing around with setting the time on the BMC so that
we can better track system events with real time on the box.
When I read the time the time seems okay but when I set the
time it was jumping ahead an hour when in summer time like now.
When out of summer time it was fine.  So does this patch:

--- lib/ipmi_sel.c.orig Tue Jun  5 13:44:42 2007
+++ lib/ipmi_sel.c      Tue Jun  5 14:12:24 2007
@@ -1678,6 +1678,7 @@ ipmi_sel_set_time(struct ipmi_intf * int
                        lprintf(LOG_ERR, "Specified time could not be parsed");
                        return -1;
                }
+               tm.tm_isdst = -1;
                t = mktime(&tm);
                if (t < 0) {
                        lprintf(LOG_ERR, "Specified time could not be parsed");

look right.

It seems to work correctly.  Now "ipmitool sel time set" and 
"ipmitool sel time get" matches.  I'm probably going set the time
via a crontab and then it will "follow" the time on the box.

It was odd that I would set the time and it would come back an hour
behind in the output from the set command.

Thanks,

Doug A.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to