User guide

set time
Chapter 2 Command Descriptions 221
set time
Device support This command is supported in PortServer TS 8/16 Family and PortServer
TS 8/16 MEI Family devices only.
Purpose Configures or displays the time and date in a device.
Required
permissions
The root user can configure the time and date. Normal users can display
the current time and date.
Syntax Configure time and date
set time [{am|pm}]
[date=mn.day.yr]
[hrmode={12|24}]
[time=hr:mn:sec]
Display current time and date
set time
Options {am|pm}
The period of the day when "hrmode=12."
date=mn.day.yr
The month (expressed numerically), day, and year (use only two digits for
the year), separated by periods.
hrmode={12|24}
Either 12 or 24.
time=hr:mn:sec
The hour (24-hour clock), minute, and second, separated by colons.
Examples Display the current time and date
#> set time
Set the time and date
#> set time time=17:05:00 date=12.25.97
See also "revert" on page 79.
"set sntp" on page 206.
"set timezone" on page 222.