Skip to content

Clock

Clock configures the system timezone and daylight saving time (summer time) on NX-OS devices. The timezone setting defines the local time offset from UTC, while summer time automatically adjusts the clock forward during specified periods of the year.

Diagram
NameTypeConstraintMandatoryDefault Value
clockClass[clock]No

NameTypeConstraintMandatoryDefault Value
formatChoice24hours, 12hoursNo
format_show_timezone_debugBooleantrue, falseNo
format_show_timezone_syslogBooleantrue, falseNo
protocolChoiceunspecified, ptp, ntp, none, gnssNo
timezone_nameStringNo
timezone_hoursIntegermin: -12, max: 14No
timezone_minutesIntegermin: 0, max: 59No
summer_timeClass[summer_time]No

summer_time (nxos.devices.configuration.system.clock)

Section titled “summer_time (nxos.devices.configuration.system.clock)”
NameTypeConstraintMandatoryDefault Value
nameStringYes
offset_minutesIntegermin: 1, max: 1440No
start_weekIntegermin: 1, max: 5No
start_dayChoiceSun, Mon, Tue, Wed, Thu, Fri, SatNo
start_monthChoiceJan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, DecNo
start_timeStringNo
end_weekIntegermin: 1, max: 5No
end_dayChoiceSun, Mon, Tue, Wed, Thu, Fri, SatNo
end_monthChoiceJan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, DecNo
end_timeStringNo

Example 1: Set timezone to US Pacific Standard Time

nxos:
devices:
- name: LEAF1
configuration:
system:
clock:
timezone_name: PST
timezone_hours: -8
timezone_minutes: 0

Example 2: Timezone with daylight saving time (US Pacific)

nxos:
devices:
- name: SPINE1
configuration:
system:
clock:
timezone_name: PST
timezone_hours: -8
timezone_minutes: 0
summer_time:
name: PDT
offset_minutes: 60
start_week: 2
start_day: Sun
start_month: Mar
start_time: "02:00"
end_week: 1
end_day: Sun
end_month: Nov
end_time: "02:00"

Example 3: Central European Time with summer time

nxos:
devices:
- name: BORDER1
configuration:
system:
clock:
timezone_name: CET
timezone_hours: 1
timezone_minutes: 0
summer_time:
name: CEST
offset_minutes: 60
start_week: 5
start_day: Sun
start_month: Mar
start_time: "02:00"
end_week: 5
end_day: Sun
end_month: Oct
end_time: "03:00"