Open kcgthb opened 2 years ago
It looks like reventlog
(./xCAT-server/lib/xcat/plugins/ipmi.pm
) command does some timestamp adjustment around line 5208 :
#Here we set tfactor based on the delta between the BMC reported time and our
#time. The IPMI spec says the BMC should return seconds since 1970 in local
#time, but the reality is the firmware pushing to the BMC has no context
#to know, so here we guess and adjust all timestamps based on delta between
#our now and the BMC's now
$sessdata->{tfactor} = $returnd[4] << 24 | $returnd[3] << 16 | $returnd[2] << 8 | $returnd[1];
if ($sessdata->{tfactor} > 0x20000000) {
$sessdata->{tfactor} -= time();
} else {
$sessdata->{tfactor} = 0;
}
Hi!
Just a quick question/verification regarding
reventlog
timestamps (for IPMI hosts): they don't seem to match the timestamps displayed in the IPMI SEL logs, but rather be converted in a different timezone (UTC?).Here's the direct IPMI SEL entry (timestamps are in PST):
and from
reventlog
:Is it expected? If so, would it be possible to specify the timezone in the timestamp output, or at least mention it in the documentation?
Thanks!