User Manual

offset : -12:00, -11:00, ... , -1:00, +1:00, ... , +13:00
Enter the difference from UTC
[Initial value]
clock timezone UTC
[Input mode]
global configuration mode
[Description]
Sets the time zone.
If this command is executed with the "no" syntax, UTC is specified.
[Example]
Set the time zone to JST.
SWP1(config)#clock timezone JST
Set the time zone to UTC+9 hours.
SWP1(config)#clock timezone +9:00
4.5.3 Show current time
[Syntax]
show clock
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the current time and date.
[Example]
Show the current time.
SWP1>show clock
00:00:00 JST Thu Jan 1 2015
4.5.4 Set NTP server
[Syntax]
ntpdate server ipv4 ipv4_addr
ntpdate server ipv6 ipv6_addr
ntpdate server name fqdn
no ntpdate server
[Keyword]
ipv4 : Specify the NTP server by IPv4 address
ipv6 : Specify the NTP server by IPv6 address
name : Specify the NTP server by host name
[Parameter]
ipv4_addr : IPv4 address of the NTP server
ipv6_addr : IPv6 address of the NTP server
If you specify an IPv6 link local address, you must also specify the output interface (fe80::X%vlan0.N
format)
fqdn : Host name of the NTP server
[Initial value]
ntpdate server name ntp.nict.jp
38 | Command Reference |
Maintenance and operation functions