Use the setdate command to set the current ALOM date and time.
When the server boots, it sets the current ALOM date and time. The server also periodically sets the ALOM date and time while running. If you use the setdate command while the server is starting or running, ALOM returns the following error message:
sc> setdate 1200
Error: Unable to set clock while managed system OS is running.
The setdate command only works when the server is in OpenBoot PROM or is powered off.
Note: When setting the date in OpenBoot PROM, simply using the break command to switch to OpenBoot PROM will not allow you to set the ALOM date. If you want to set the ALOM date in OpenBoot PROM, set the OpenBoot PROM auto-boot? variable to false, and then reset the host server.
Note: You must have a level user permission to use this command.
At the sc> prompt, type the following command:
sc> setdate mmddHHMMccyy.SS
This command accepts settings for the month, day, hours, minutes, century, years, and seconds. If you omit the month, day, and year, ALOM applies the current values as defaults. You can also omit the century value and the value for seconds in the time.
Note: Your server uses local time, but ALOM uses UTC (Coordinated Universal Time). ALOM does not accept time zone conversions or daylight time changes.
This example sets the time to September 16, 2002, at 9:45 PM (Coordinated Universal Time).
sc> setdate 091621452002
MON SEP 16 21:45:00 2002 UTC
This example sets the time to September 16, at 9:45 PM of the current year (Coordinated Universal Time).
sc> setdate 09162145
MON SEP 16 21:45:00 2002 UTC
This example sets the time to 9:45 PM of the current month, day, and year (Coordinated Universal Time).
sc> setdate 2145
MON SEP 16 21:45:00 2002 UTC
The setdate command uses the following options.
Option | Description |
mm | Month |
dd | Day |
HH | Hour (24-hour system) |
MM | Minutes |
.SS | Seconds |
cc | Century (first two digits of the year) |
yy | Year (last two digits of the year) |