8.9. Procedure to change the date and time of the GCap
A - Introduction
Important
If there is a discrepancy between the GCap and the GCenter, the GCap time is the one to be changed.
To perform this procedure, you must perform all the steps described in the following sections:
B - Prerequisites
User: setup
Commands used in this procedure:
C - Preliminary operations
Connect to the GCap (refer to Procedure to remote connection to GCap via an SSH tunnel)
Connect as setup
D - Procedure to view the date and time on the GCap and GCenter
The command prompt is displayed.
(gcap-cli)
Enter the command
show datetime
Validate
show datetime Current datetime is 2022-01-26 16:10:44
The`datetime`command of the`show`sub-group enables displaying the date and time of the GCap in the format`YYYY-MM-DD HH:MM:SS`.Log in to the GCenter
- Display the GCenter date and time and note them downIf there is a discrepancy between the GCap and the GCenter, the GCap time is the one to be changedTo correct this, perform the following procedure
F - Procedure to change the date and time of the GCap
The command prompt is displayed.
(gcap-cli)
- Enter the show datetime command followed by the parameters in the following order {YYYY-MM-DDThh :mm :ssZ}Example: set datetime 2022-01-26T16:00:00Z
YYYY indicates a four-digit year from 0000 to 9999
MM indicates a two-digit year from 01 to 12
DD indicates a two-digit year from 01 to 31
T indicates the beginning of the field defining the time format
hh indicates the two-digit hour from 00 to 23
mm indicates the two-digit minutes from 00 to 59
ss indicates the two-digit seconds from 00 to 59
Z indicates CUT (Coordinated Universal Time)
set datetime 2022-01-26T16:00:00Z
- ValidateA confirmation window is displayed
Date successfully changed to Wed Jan 26 2022 16:00:00