How To
Summary
This article explains the steps to set the system time manually by using QRadar Console's Command Line Interface (CLI). If an NTP server is not configured and there is a mismatch between the actual time and the system time, then the time needs to be configured manually.
Steps
- SSH to the QRadar Console
- Check the current date and time of the system:
# date Tue Oct 4 15:37:37 IST 2022
-
Check the status of the NTP:
# timedatectl status Local time: Tue 2022-10-04 15:39:54 IST Universal time: Tue 2022-10-04 10:09:54 UTC RTC time: Tue 2022-10-04 10:09:55 Time zone: Asia/Kolkata (IST, +0530) NTP enabled: yes NTP synchronized: no RTC in local TZ: no DST active: n/a
- If NTP is enabled, then turn it off:
# timedatectl set-ntp false
- Run the timedatectl command on the Console to reset the date and time (the new date and time values are to be derived from a valid source):
# timedatectl set-time "2022-10-04 15:41:00"
-
Set NTP back to enabled:
# timedatectl set-ntp true
-
Stop and start the services on the Console:
# systemctl stop tomcat # systemctl stop hostcontext # systemctl stop hostservices # systemctl start hostservices # systemctl start hostcontext # systemctl start tomcat
-
Kindly perform the steps during downtime as all the services are stopped and started during the procedure, and the GUI is inaccessible till Tomcat is up.
-
If you forgot to turn off the NTP and ran the command to reset the time, you get the 'Failed to set time' error:
# timedatectl set-time "2022-10-04 15:39:00" Failed to set time: Automatic time synchronization is enabled
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
15 November 2022
UID
ibm16839457