User Guide
DDOC0108-000-A2
CNS4 CSfC
11 - 39
Command Line Interface
Revision 0.0
11.2.27
sysdate
Syntax
sysdate [-h | --help | --version]
sysdate [-d M/D/Y] [-t H:M:S]
Description
The sysdate command allows for configuration and retrieval of the time and date. When no
options are given, the current date is printed.
Options
-h, --help.............................. Print help message.
--version .............................. Print program version.
-d,
--
date <str> .................. Set date. (Month/Date/Year)
-t,
--
time <str>.................... Set time. (Hour:Minute:Second)
Response
DATE [date] [time] <status>
DATE................................... CNS4 date and time
[date] ................................... Date <str> (Month/Date/Year)
[time] ................................... Time <str> (Hour:Minute:Second)
<status> .............................. Status <enum> (OK, NA, ERR "<str>")
INVALID <status>
INVALID .............................. Command parameter(s) invalid
<status> .............................. Status <str> (ERR "<str>")
ERROR <status>
ERROR ............................... Critical error has occurred
<status> .............................. Status <str> (ERR "<str>")
Example 1
Example 2
cns>
sysdate -d 04/01/2018 -t 00:00:01
[sysdate]
DATE: status=OK
[!sysdate] OK
cns>
sysdate
[sysdate]
DATE: date=04/01/2018 time=00:00:01 status=OK
[!sysdate] OK