beautypg.com

Clock timezone – Allied Telesis AT-DC2552XS User Manual

Page 230

background image

Chapter 10: NTP Client Commands

230

Section I: Switch Management

CLOCK TIMEZONE

Syntax

clock timezone +

hh:mm

|-

hh:mm

Parameter

hh:mm

Specifies the number of hours and minutes between Coordinated
Universal Time (UTC) and local time. HH are hours in the range of
-12 to +12 and MM are minutes in the range of 00 to 60. The value
is specified as ahead of (positive) or behind (negative) UTC. You
must include both the hours and minutes, and both must have two
digits. The default is 00:00.

Mode

Global Configuration mode

Description

Use this command to set the UTC offset, which is used by the switch to
convert the time from an NTP server into local time. You must configure
the NTP client with “NTP PEER” on page 232 before setting the UTC
offset.

To remove the UTC offset and set the time zone to UTC, use the NO
CLOCK TIMEZONE command.

Confirmation Commands

“SHOW NTP ASSOCIATIONS” on page 234 and “SHOW NTP STATUS”
on page 236

Examples

This example specifies a time difference of -7 hours between UTC and
local time:

awplus> enable
awplus# configure terminal
awplus(config)# clock timezone -07:00

This example sets the time zone to the default UTC:

awplus> enable
awplus# configure terminal
awplus(config)# no clock timezone