48
2.6.14 NTP Command
Command
Parameter
Description
Switch(config)# ntp
Enable the Managed Switch to
synchronize the clock with a time server.
Switch(config)# ntp
daylight-saving
Enable the daylight saving function.
Switch(config)# ntp
daylight-saving recurring
Enable daylight saving with recurring
mode.
Switch(config)# ntp
daylight-saving date
Enable daylight saving with date mode.
Switch(config)# ntp offset
[Mm,w,d,hh:mm-
Mm,w,d,hh:mm]
[Mm,w,d,hh:mm-
Mm,w,d,hh:mm]
Offset setting for daylight saving function
of recurring mode.
Mm=1-12, w=1-5, d=0-6(0=Sun, 6=Sat)
Hh=0-23, mm=0-59, Days=1-365
Switch(config)# ntp offset
[Days,hh:mm-Days,hh:mm]
[Days,hh:mm-
Days,hh:mm]
Offset setting for daylight saving function
of date mode.
Mm=1-12, w=1-5, d=0-6(0=Sun, 6=Sat)
Hh=0-23, mm=0-59, Days=1-365
Switch(config)# ntp server1
[A.B.C.D |
A:B:C:D:E:F:G:H]
[A.B.C.D |
A:B:C:D:E:F:G:H]
Specify the primary time server IP/IPv6
address.
Switch(config)# ntp server2
[A.B.C.D |
A:B:C:D:E:F:G:H]
[A.B.C.D |
A:B:C:D:E:F:G:H]
Specify the secondary time server IP/IPv6
address.
Switch(config)# ntp syn-
interval [1-8]
[1-8]
Specify the interval time to synchronize
from NTP time server.
1=1hour, 2=2hours, 3=3hours,
4=4hours
5=ghours, 6=8hours, 7=12hours,
8=24hours
Switch(config)# ntp time-
zone [0-135]
[0-135]
Specify the time zone to which the
Managed Switch belongs.
Use space and a question mark to view
the complete code list of 147 time zones.
For example,
“Switch(config)# ntp time-
zone ?
”
No command
Switch(config)# no ntp
Disable the Managed Switch to
synchronize the clock with a time server.
Switch(config)# no ntp daylight-saving
Disable the daylight saving function.
Switch(config)# no ntp offset
Set the offset value back to the default
setting.
Switch(config)# no ntp server1
Delete the primary time server IP address.
Switch(config)# no ntp server2
Delete the primary time server IP address.
Switch(config)# no ntp syn-interval
Set the synchronization interval back to
the default setting.
Switch(config)# no ntp time-zone
Set the time-zone setting back to the
default.