clock command
Use this command to display the current date and time. You can set the UTC offset and daylight saving time settings.
Syntax:
clock [-options]
Option | Description | Values |
---|---|---|
-u | UTC offset | UTC offset of +2, -7, -6, -5, -4 and -3 special daylight saving time settings are required.
|
-dst | Daylight saving time | on, off, special case |
-host | Format of time obtained from host (default: utc) | local, utc Note Windows systems use local, Linux uses utc |
Note
The BMC obtains the time from the host server or NTP server.
The time obtained from the host may be local time or UTC time. The host option should be set to UTC if NTP is not used and the host uses UTC format.
UTC offset can be in the format of +0200, +2:00, +2, or 2, for positive offsets, and -0500, -5:00 or -5, for negative offsets.
UTC offset and daylight savings times are used with NTP or when the host mode is UTC.
Example:
system> clock
12/12/2011 13:15:23 GMT-5:00 dst on
Give documentation feedback