Configuring the NTP client at the command line
The NTP client enables the appliance or virtual machine to synchronize its internal clock with an NTP server on your network or on the internet. You can also configure the NTP client through the UI (the preferred method). For more information, see Performing time synchronization.
NTP and VMware Tools
If you are using NTP on a BMC Discovery Virtual Appliance, disable the VMware tools time syncing. This is explained in VMware's timekeeping best practices for Linux based Virtual Machines, which can be found here under the heading VMware Tools time synchronization configuration.
To configure the NTP client, you must be logged in to the command line as the root user.
- Edit the
Search for the lines beginning
Replace the server entries with the IP address or hostname of the NTP server or servers with which you want to synchronize. For example:
- Save the file.
Configure the NTP client service to start at run level 3 when the appliance boots. Enter:
Check to ensure that this change has been made correctly. Enter the following command and ensure that the output is the same as that shown:
Start the service. Enter:
The NTP client is now running and needs no further attention.
Rebaseline the appliance after configuring the NTP client
If you use appliance baseline, you must rebaseline the appliance as the tidway user after making this change:
For more information about tripwire and baselining the appliance, see Baseline configuration.
Message - ntpd is not configured to run at run level 5
The following message, which is displayed in the appliance baseline window when
ntpd is running, is erroneous:
ntpd is not configured to run at run level 5