How to update the date/time on LSI Raid cards using MegaCli
Setting the date/time on your controller is advised to keep system logs in sync. Although this is normally done by the drivers after bootup, we can do this manually with the MegaCli tool using the following syntax:
MegaCli64 -AdpSetTime yyyymmdd hh:mm:ss -a<adapter#>
yyyy is year in 4 digit format: 2013
mm is month in 2 digit format: 02
dd is day in 2 digit format: 15
hh is hour in 24hr format: 17
mm in minute in 2 digit format: 00
ss is seconds in 2 digit format: 00
In the following example we will set controller 0’s clock to 5:00:00 PM Feb 15, 2013
[root@localhost ~]# MegaCli64 -AdpSetTime 20130215 17:00:00 -a0
New date/time is set on Adapter 0