Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

RedHat 4 NTP Server with Clients No External NTP Source

Posted on 2009-06-30
5
Medium Priority
?
525 Views
Last Modified: 2013-12-06
Hi Experts ---

I am in a lab environment and need to establish a temporary NTP server to run some tests.  The server will be on a machine running RedHat 4.  How do I set-up the server ( what does the conf file look like) and how do I set-up the NTP clients?  
0
Comment
Question by:GDC4S1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24745363
Hi,

You can find the configutarion files under /etc/ntp.conf and sstll others under /etc/ntp. If you're missing these files then probably you're missing the ntp installation files (this is ery unlikley becasue RHEL4 installs this packaes as a mandatory extension during setup)

To check if it is active you can use this command:

chkconfig --list ntpd

It should respond with:
ntpd            0:off   1:off   2:off   3:on    4:off   5:on    6:off

If it is all off you need to enable it for start durinf startup like that:
chkconfig ntpd on

Then the above command should return on fer level 3 and 5.

Cheers,
K.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24745388
If hovewer you feel that you're missing the package you can install it using the command:

up2date ntpd

or

yum install ntpd.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24746593
To start and stop the service you'd use the command

service ntpd start | stop | restart

0
 

Author Comment

by:GDC4S1
ID: 24756856
KeremE ---

I have ntpd on my system.  The question is what goes in the conf file.  For example, I don't have an external timing source which is in the conf file.  So, do I just keep that and it times out or do I comment it out?
0
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 750 total points
ID: 24758945
oh ok. Your intial  comment also told that. If all you have is a NTP server and you have no internet connection.  If this is the case you needto find the server lines in your /etc/ntp.conf

server 127.127.1.0
fudge   127.127.1.0 stratum 10

Just leave these lines. then you'll have lines similar to these:

server 0.pool.ntp.org
server 1.pool.ntp.org


Comment each line bebings with server statement. Not you're good to go.

you can usee chkconfig to enable sntp set to start on reboot using:

chkconfig --list ntpd  

will display if it is set to run.. If it is off for all levels then it won2t run when the system reboots. to change this use the command such as this:

chkconfig ntpd  on

Then the list command must show that it is on for levels 3 and 5

f you want to start the service manually can use service command

service ntpd start

service ntpd stop

service ntpd restart





0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question