Command descriptions
set time
ConnectPort® LTS Command Reference
141
set time
Purpose
Set system time or display current system time.
Sets the Coordinated Universal Time (UTC) and/or system time and date on the ConnectPort LTS
device. If the “offset” option is set to anything other than “00”, this command assumes that if date
and time are being set, they are system time. Out of the box, all
ConnectPort LTS devices maintain time and date as the UNIX epoch (00:00:00, January 1, 1970) plus
device up-time. Date and time will revert to the UNIX epoch on each reboot or power-cycle. Device
time can be set manually using the web or command-line interfaces. The time and date are
completely local to the device and have limited usefulness since they are not persistent over
reboots/power-cycles. The “offset” option could be useful in adjusting for daylight savings time.
Setting the date and time to standard time and setting “offset” to 1 whenever daylight savings time is
in effect would serve that purpose. For users with several devices in different time zones, keeping
“offset=0” might be useful for comparing logs or traces from different devices, since all would be using
UTC.
Required permissions
Root privileges are required to set system time. Other users can only display the current system time.
Syntax
Set system time
set time time={
hh:mm:ss|hh:mm}
date=
mm.dd.yy
offset={
hh:mm|hh}
Display current system time
set time
Options
time={
hh:mm:ss|hh:mm
}
hh
Hour; ranges from 0 to23.
mm
Minute; ranges from 0 to 59.
ss
Second; ranges from 0 to 59.
date=
mm.dd.yy
)
Содержание ConnectPort LTS 16
Страница 1: ...ConnectPort LTS Command Reference ...
Страница 117: ...Command descriptions set service ConnectPort LTS Command Reference 117 See also n revert n set network n show ...
Страница 152: ...Command descriptions set usb ConnectPort LTS Command Reference 152 Example Format the USB memory set usb format id 1 ...