API Guide

System Clock commands
clock set
Sets the system time.
Syntax
clock set time year-month-day
Parameters
time
Enter time in the format hour:minute:second, where hour is 1 to 24;
minute is 1 to 60; second is 1 to 60. For example, enter 5:15 PM as 17:15:00.
year-month-day
Enter year-month-day in the format YYYY-MM-DD, where YYYY is a four-digit
year, such as 2016; MM is a month from 1 to 12; DD is a day from 1 to 31.
Default Not configured
Command Mode EXEC
Usage
Information
Use this command to reset the system time if the system clock is out of synch with the NTP time. The
hardware-based real-clock time (RTC) resets to the new time. The new system clock setting applies
immediately.
Supported on the MX9116n and MX5108n switches in Full Switch mode starting in release 10.4.0E(R3S).
Also supported in SmartFabric mode starting in release 10.5.0.1.
Example
OS10# clock set 18:30:10 2017-01-25
Supported
Releases
10.2.1E or later
clock timezone
Configures the standard or user-defined time zone that OS10 applies on top of the system clock.
Syntax
clock timezone {standard-timezone standard-timezone-name | {timezone-string
hours minutes}}
Parameters
standard-timezone-name Enter the standard time zone name that is supported in Linux. To
view a list of supported standard time zone names, see the Time zones and UTC offset reference
section.
timezone-string Enter the name of the time zone.
hours Enter the hour offset from UTC, ranging from -23 to 23.
minutes Enter the minute offset from UTC, ranging from 0 to 59.
Default Not configured
Command Mode CONFIGURATION
Usage
Information
The standard time zone option applies the predefined offset for the selected standard time zone,
including DST changes that apply to the local time. After you configure this command, OS10 uses the
updated local time in all logs and timestamps. You can use the ? character or press the tab key for
command completion and view a list of supported standard time zones. To view a list of supported
standard time zone names, see the Time zones and UTC offset reference section. Define region names
with a "/" at the end of the string. The "/" character indicates that a time zone string follows the region
name. For example, "Asia/Calcutta." The no form of the command resets the local time to UTC.
Supported on the MX9116n and MX5108n switches in Full Switch mode starting in release 10.4.0E(R3S).
Also supported in SmartFabric mode starting in release 10.5.0.1.
Example
OS10(config)# clock timezone standard-timezone Brazil/West
192 System management