How to set the time and date, How to show current settings – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 49
Getting Started
Software Reference for x310 Series Switches
C613-50046-01 REV A
AlliedWare Plus
TM
Operating System - Version 5.4.4C
1.25
How to Set the Time and Date
There are three aspects to setting the time and date:
■
setting the current time and date (
“How to Set the Time and Date” on page 1.25
)
■
setting the timezone (
“How to Set the Timezone” on page 1.26
)
■
configuring the switch to automatically change the time when summer-time begins
and ends (
“How to Configure Summer-time” on page 1.26
Instead of manually setting the time, you can use NTP to automatically get the time from
another device.
How to Show Current Settings
To display the current time, timezone and date, enter Privileged Exec mode and enter the
command:
The output looks like this:
How to Set the Time and Date
To set the time and date, enter Privileged Exec mode and enter the
command:
clock set
:where:
■
hh is two digits giving the hours in 24-hour format (e.g. 14)
■
mm is two digits giving the minutes
■
ss is two digits giving the seconds
■
day is two digits giving the day of the month
■
month is the first three letters of the month name (e.g. sep)
■
year is four digits giving the year
Example
To set the time to 14:00:00 on 25 January 2012, use the command:
awplus#
show clock
UTC Time: Wed, 16 May 2013 16:08:14 +0000
Timezone: UTC
Timezone Offset: +00:00
Summer time zone: None
awplus#
clock set 14:00:00 25 jan 2012