Moxa V2403-C3-W-T [10/90] Setting the time manually

Moxa V2403-C7-W-T [10/90] Setting the time manually
V2403 Series Linux Software Software Configuration
2-4
Adjusting the System Time
The V2403-LX has two time settings. One is the system time, and the other is provided by an RTC (Real Time
Clock) built into the V2403- LX’s hardware.
Setting the Time Manually
Use the date command to query the current system time or set a new system time. Use hwclock to query the
current RTC time or set a new RTC time.
Use the following command to set the system time.
moxa@Moxa:~# date MMDDhhmmYYYY
MM: Month
DD: Date
hhmm: Hour and Minute
YYYY: Year
Use the following command to write the current system time to the RTC.
root@Moxa:~# hwclock
root@Moxa:/home/moxa# date ; hwclock
Mon Jun 30 11:39:04 CST 2014
Mon 30 Jun 2014 11:39:05 AM CST -0.860107 seconds
root@Moxa:/home/moxa#
root@Moxa:/home/moxa# ntpdate time.stdtime.gov.tw
21 Aug 15:28:10 ntpdate[5876]: step time server 118.163.81.61 offset 36042533.994253
sec
root@Moxa:/home/moxa#
root@Moxa:/home/moxa# hwclock -w
root@Moxa:/home/moxa# date ; hwclock
Fri Aug 21 15:28:18 CST 2015
Fri 21 Aug 2015 03:28:19 PM CST -0.078792 seconds
root@Moxa:/home/moxa#
NTP Client
The V2403-LX has a built-in NTP (Network Time Protocol) client that is used to initialize a time request to a
remote NTP server. Use ntpdate to update the system time.
#ntpdate time.stdtime.gov.tw
#hwclock –w

Содержание

Похожие устройства

Скачать