2.3.3. clock source

Syntax

clock source (local|sntp)

Parameter

local

Specify to use static time

sntp

Specify to use sntp time

Default

Default is using local time.

Mode

Global Configuration

Usage

Use the clock source command to set the source of time. Use the no form of this command to restore to default setting. You can verify your setting by entering the show clock detail command.

Example

The example shows how to set clock source of switch.

Switch(config)# clock source sntp
Switch(config)# show clock detail
08:32:12 msk(UTC+3) Sep 21 2012
Time source is sntp
Time zone: Acronym is msk Offset is UTC+3