Time Management

Time Management

1. Function Overview

This product provides the functions shown below for managing the date and time.

  • Manual (user-configured) date/time information setting function

  • Automatic date/time setting information function via network

  • Time zone setting function

Note that a function to set summertime (DST: Daylight Saving Time) is not provided.

2. Definition of Terms Used

UTC(Coordinated Universal Time)

This is an official time used when recording worldwide times.
UTC is used as a basis to determine standard time in all countries around the world.
For instance, Japan (JST, or Japan standard time) is nine hours ahead of Coordinated Universal Time, and is thus shown as “+0900 (JST)”.

SNTP(Simple Network Time Protocol)

This is a simple protocol to correct clocks by using SNTP packets.
This protocol is defined in RFC4330.

3. Function Details

3.1. Manually setting the date and time

Use the clock set command to directly enter clock setting values.

3.2. Automatically setting the date and time

Date and time information is collected from a specified time server, and set in this product.
Defined in RFC4330, SNTP (Simple Network Time Protocol) is used as a communication protocol.
Up to two time servers can be specified using an IPv4 address, IPv6 address, or fully qualified domain name (FQDN).
Port number 123 is used for the SNTP client. (This setting cannot be changed by the user.)
The ntpdate command can be used to select one of two methods for automatically setting date and time settings.

  • One-shot update (a function to update when a command is inputted)

  • Interval update (a function to update in a 1–24-hour cycle from command input)

If clock settings are synchronized with two time servers specified, queries are processed in the order they are displayed by the show ntpdate command, which is NTP server 1 and then NTP server 2.
Queries to NTP server 2 are only processed if synchronization with NTP server 1 fails.
By default, interval updates are not performed.
If a time server is specified and interval update is enabled, but the default time cannot be set, the time server will be queried one minute after the port is linked up, regardless of the interval cycle time.
Synchronization is blocked during command execution, and an error message is outputted if a timeout occurs.

3.3. Time zone setting

In order to manage the time for the region considered as the “base of daily life”, the “clock timezone” command is used to manage the time zone of the users, and reflect this into the time.
The time zone can be set in ±1 hour increments for Coordinated Universal Time (UTC), from -12 hours to +13 hours.
The default time zone value for this product is +9.0.

4. Related Commands

Related commands are indicated below.
For details, refer to the Command Reference.

Operations Operating commands

Set clock manually

clock set

Set time zone

clock timezone

Show current time

show clock

Set NTP server

ntpdate server

Synchronize time from NTP server (one-shot update)

ntpdate oneshot

Synchronize time from NTP server (update interval)

ntpdate interval

Show NTP server time synchronization settings

show ntpdate

5. Examples of Command Execution

5.1. Set clock manually

In this example, the time zone is set to JST and the current time is set to 2018.11.01 15:50:59.

Yamaha#configure terminal
Yamaha(config)#clock timezone JST (1)
Yamaha(config)#exit
Yamaha#clock set 15:50:59 Nov 1 2018 (2)
Yamaha#show clock (3)
15:50:59 JST Thu Jan 1 2018
1 Time zone setting
2 Time settings
3 Show current time

5.2. Automatically setting the time

In this example, the time zone is set to +9.00 and the local address 192.168.1.1 and ntp.nict.jp are specified as the NTP servers.
Also, the NTP server update cycle is changed to once every 24 hours.

Yamaha#configure terminal
Yamaha(config)#clock timezone +9:00 (1)
Yamaha(config)#ntpdate server ipv4 192.168.1.1 (2)
Yamaha(config)#ntpdate server name ntp.nict.jp (3)
Yamaha(config)#ntpdate interval 24 (4)
Yamaha(config)#exit
Yamaha#show clock (5)
10:03:20 GMT+9:00 Wed Oct 10 2018
Yamaha#show ntpdate (6)
NTP server 1 : 192.168.1.1
NTP server 2 : ntp.nict.jp
adjust time : Wed Oct 10 11:46:30 2018 + interval 24 hour
sync server : 192.168.1.1
1 Time zone setting
2 Set NTP server
3 Set NTP server
4 Set NTP server update cycle to 24 hours
5 Show current time
6 Show NTP time synchronization settings