There are many ways to setup NTP client in RHEL 5.2. They are:
1. By GUI
- Executing command system-config-ntp
- Enter the NTP server that wants to be synchronized
- Click "Synch before starting up" in the tab advanced
2. By command line
- Typing ntpdate -b servername
- Create new cron if you want to force NTP client to update time every exact time.
- Below is the crontab example for NTP client to update time every 10 minutes
# crontab -e
SHELL=bin/bash
*/10 * * * * ntpdate -b servername
1. By GUI
- Executing command system-config-ntp
- Enter the NTP server that wants to be synchronized
- Click "Synch before starting up" in the tab advanced
2. By command line
- Typing ntpdate -b servername
- Create new cron if you want to force NTP client to update time every exact time.
- Below is the crontab example for NTP client to update time every 10 minutes
# crontab -e
SHELL=bin/bash
*/10 * * * * ntpdate -b servername
0 comments:
Post a Comment