Setup Guide
rtctool
The rtctool allows setting and testing of the real time clock (RTC) in the system.
Tests
CLI options
root@dellemc-diag-os:~# rtctool
DellEmc Diag - RTC Tool
version 1.1, x.xx.x.x-x
build, 2019/07/03,
Syntax: rtctool <option>
Show the help-text:=
rtctool --help (or)
rtctool -h
Read the current RTC:=
rtctool --readrtc (or)
rtctool -r
Test RTC device with user interrupt:=
rtctool --testuie (or)
rtctool -u
Test RTC device with alarm interrupt:=
rtctool --testaie (or)
rtctool -a
Test RTC device with periodic interrupt:=
rtctool --testpie (or)
rtctool -p
Test the RTC device:=
rtctool --test (or)
rtctool -t
Set rtc to new time (input all params in same order):=
rtctool --setrtc --year=<year>, --mon=<month> --day=<day> --hour=<hour> --min=<min> --
sec=<sec> --tz=<offset>
(or)
rtctool -s -y <year> -m <month> -D <day> -H <hour> -M <min> -S <sec> -Z <offset>
Execute repeatedly command by count:=
rtctool --iteration=max/<count> [option1] [option2]... (or)
rtctool -I max/<count> [option1] [option2]...
Usage:=
-h, --help Show the help text
-r, --readrtc Read operation
-s, --setrtc Set operation
-u, --testuie Test RTC device with user interrupt
-a, --testaie Test RTC device with alarm interrupt
-p, --testpie Test RTC device with periodic interrupt
-I, --iteration= Iteration command execution
-y, --year= Year
-m, --month= Month
-D, --day= Day
-H, --hour= Hour
-M, --min= Minute
-S, --sec= Second
-Z, --offset= +12.0 to -12.0 timezone offset
root@dellemc-diag-os:~#
Test options
root@dellemc-diag-os:~# rtctool --test
Testing RTC Devices .......................
Testing RTC Device for rollover .......................
Set Current RTC date to 1/1/2000, RTC time to 00:00:59.
68
Dell EMC DIAG-OS tools