disable (NTP)

Disables NTP client and server mode.
Syntax
disable [ serve ]
no disable serve
Command Default

NTP is not enabled.

Parameters
serve
Disables serving the time to clients.
Modes

NTP configuration mode

Usage Guidelines

To enable client mode, use the no disable command. To enable the client and server mode, use the no disable serve command. The no disable serve command enables both the client and the server. If the client is already enabled and server is disabled, the no disable server enables the server.

If the serve keyword is specified, NTP does not serve the time to downstream devices. The serve keyword disables the NTP server mode functionalities. If the serve keyword is not specified, both NTP client mode and NTP server mode are disabled.

Note: The disable command disables NTP client and server mode; it does not remove the NTP configuration.

The no form of the command enables NTP client and server mode.

Examples

The following example disables the NTP server.

device(config)# ntp
device(config-ntp)# disable serve