On Mon, 2008-07-07 at 13:44 -0400, Mark Seger wrote: > so you're saying as long as the sdr version doesn't change the cache is > valid?
This is probably fine under most circumstances. Root users have the opportunity to the change the SDR, which is why I check timestamps. But this is not typical in most environments. > I don't think I can go by the date though, based on the dates0 > "ipmitool sdr info" is reporting on my system 8-) I actually check the binary value of the date (coming off the wire), not the presentable date. You could just do a diff to see if the timestamp has changed?? Al > [EMAIL PROTECTED] ~]# ipmitool sdr info > SDR Version : 0x51 > Record Count : 30 > Free Space : 20503 bytes > Most recent Addition : 01/29/2092 11:55:52 > Most recent Erase : 01/29/2092 11:55:52 > SDR overflow : no > SDR Repository Update Support : modal > Delete SDR supported : no > Partial Add SDR supported : yes > Reserve SDR repository supported : yes > SDR Repository Alloc info supported : no > > -mark > > Al Chu wrote: > > Hi Mark, > > > > The SDR can change during a firmware update or something similarly (new > > motherboard rev, etc.). In FreeIPMI, I check the SDR version number and > > timestamps to verify if cached SDR data is valid/invalid. > > > > I assume the same could be done with the output from 'sdr info'. > > > > Al > > > > On Mon, 2008-07-07 at 13:15 -0400, Mark Seger wrote: > > > >> I want to be able to run ipmitool -S from a script that for all intents > >> and purposes runs forever. If I create the dump file once is that > >> sufficient or are these cases when it would be invalid and need to be > >> refresh? > >> -mark > >> > >> > >> > >> ------------------------------------------------------------------------- > >> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > >> Studies have shown that voting for your favorite open source project, > >> along with a healthy diet, reduces your potential for chronic lameness > >> and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > >> _______________________________________________ > >> Ipmitool-devel mailing list > >> Ipmitool-devel@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/ipmitool-devel > >> > -- Albert Chu [EMAIL PROTECTED] 925-422-5311 Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel