Disabling time synchronization without changing the SNTP configuration (CLI)
The recommended method for disabling time synchronization is to use the
timesync
command.
Syntax:
no timesync
Halts time synchronization without changing your SNTP configuration.
Example:
Suppose SNTP is running as the switch's time synchronization protocol, with
broadcast
as the SNTP mode and
the factory-default polling interval. You would halt time synchronization with this command:
switch(config)# no timesync
If you then viewed the SNTP configuration, you would see the following:
SNTP with time synchronization disabled
switch(config)# show sntp
SNTP Configuration
Time Sync Mode: Disabled
SNTP Mode : Broadcast
Poll Interval (sec) [720] : 720
Disabling the SNTP Mode
If you want to prevent SNTP from being used even if it is selected by
timesync
, configure the SNTP mode as
disabled.
Syntax:
no sntp
Disables SNTP by changing the SNTP mode configuration to
Disabled
.
Example:
If the switch is running SNTP in unicast mode with an SNTP server at 10.28.227.141 and a server version of 3
(the default),
no sntp
changes the SNTP configuration as shown below and disables time synchronization on
the switch.
Disabling time synchronization by disabling the SNTP mode
switch(config)# no sntp
switch(config)# show sntp
SNTP Configuration
Time Sync Mode: Sntp
SNTP Mode : disabled
Poll Interval (sec) [720] : 600
IP Address Protocol Version
------------- -----------------
10.28.227.141 3
Chapter 2 Time Protocols
41