Вы находитесь на странице: 1из 3

BASIC MANAGEMENT TASKS

Setting the System Clock


Simple Network Time Protocol (SNTP) allows the switch to set its internal clock based on periodic updates from a time server (SNTP or NTP). Maintaining an accurate time on the switch enables the system log to record meaningful dates and times for event entries. You can also manually set the clock using the CLI. (See !calendar set" on page 20-53.) If the clock is not set, the switch will only record the time from the factory default set at the last bootup. When the SNTP client is enabled, the switch periodically sends a request for a time update to a configured time server. You can configure up to three time server IP addresses. The switch will attempt to poll each server in the configured sequence.

Configuring SNTP
You can configure the switch to send time synchronization requests to time servers.

Command Attributes
# SNTP Client $ Configures the switch to operate as an SNTP client. This requires at least one time server to be specified in the SNTP Server field. (Default: Disabled) # SNTP Poll Interval $ Sets the interval between sending requests for a time update from a time server. (Range: 16-16384 seconds; Default: 16 seconds) # SNTP Server $ Sets the IP address for up to three time servers. The switch attempts to update the time from the first server, if this fails it attempts an update from the next server in the sequence.

4-50
Downloaded from www.Manualslib.com manuals search engine

SETTING THE SYSTEM CLOCK


Web $ Select SNTP, Configuration. Modify any of the required parameters, and click Apply.

Figure 4-24 SNTP Configuration CLI $ This example configures the switch to operate as an SNTP client and then displays the current time and settings.
Console(config)#sntp client Console(config)#sntp poll 16 Console(config)#sntp server 10.1.0.19 137.82.140.80 128.250.36.2 Console(config)#exit Console#show sntp Current time: Jan 6 14:56:05 2004 Poll interval: 60 Current mode: unicast SNTP status : Enabled SNTP server 10.1.0.19 137.82.140.80 128.250.36.2 Current server: 128.250.36.2 Console# 20-48 20-50 20-49 20-51

Setting the Time Zone


SNTP uses Coordinated Universal Time (or UTC, formerly Greenwich Mean Time, or GMT) based on the time at the Earth%s prime meridian, zero degrees longitude. To display a time corresponding to your local time, you must indicate the number of hours and minutes your time zone is east (before) or west (after) of UTC.

Command Attributes
# Current Time $ Displays the current time. # Name $ Assigns a name to the time zone. (Range: 1-29 characters) # Hours (0-13) $ The number of hours before/after UTC.

4-51
Downloaded from www.Manualslib.com manuals search engine

BASIC MANAGEMENT TASKS


# Minutes (0-59) $ The number of minutes before/after UTC. # Direction $ Configures the time zone to be before (east) or after (west) UTC. Web $ Select SNTP, Clock Time Zone. Set the offset for your time zone relative to the UTC, and click Apply.

Figure 4-25 Clock Time Zone CLI - This example shows how to set the time zone for the system clock.
Console(config)#clock timezone Dhaka hours 6 minute 0 after-UTC Console# 20-52

4-52
Downloaded from www.Manualslib.com manuals search engine

Вам также может понравиться