10 Setting the System Clock

CLI – This example configures the switch to operate as an SNTP client and then displays the current time and settings.

Console(config)#sntp client

39-1

Console(config)#sntp poll 16

39-3

Console(config)#sntp server 10.1.0.19 137.82.140.80 128.250.36.2

39-2

Console(config)#exit

 

Console#show sntp

39-3

Current time:

Jan 6 14:56:05 2004

 

Poll interval: 60

 

Current mode:

unicast

 

SNTP status : Enabled

 

SNTP server 10.1.0.19 137.82.140.80 128.250.36.2

 

Current server: 128.250.36.2

 

Console#

 

 

 

 

 

Setting the Time Zone

SNTP uses Coordinated Universal Time (or UTC, formerly Greenwich Mean Time, or GMT) based on the time at the Earth’s prime meridian, zero degrees longitude. To display a time corresponding to your local time, you must indicate the number of hours and minutes your time zone is east (before) or west (after) of UTC.

Command Attributes

Current Time – Displays the current time.

Name – Assigns a name to the time zone. (Range: 1-29 characters)

Hours (0-13)– The number of hours before/after UTC.

Minutes (0-59)– The number of minutes before/after UTC.

Direction – Configures the time zone to be before (east) or after (west) UTC.

Web – Select SNTP, Clock Time Zone. Set the offset for your time zone relative to the UTC, and click Apply.

Figure 10-2 Clock Time Zone

CLI - This example shows how to set the time zone for the system clock.

Console(config)#clock timezone Dhaka hours 6 minute 0 after-UTC

39-4

Console#

 

 

 

10-2

Page 100
Image 100
Accton Technology ES4524D, ES4548D, 24/48-Port manual Setting the Time Zone, 39-1, 39-3, 39-2, 39-4