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

x
?
Solved

How to setup NTP time server and sync time in SLES 11?

Posted on 2010-11-30
4
Medium Priority
?
5,500 Views
Last Modified: 2012-08-13
This is using a SUSE Linux enterprise 11 server. I am thinking to setup this server as time server for other workstations to sync from. And at the same time, sync this server with Internet time server, how to do that?
0
Comment
Question by:Balack
[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
  • 2
4 Comments
 
LVL 3

Expert Comment

by:chrios
ID: 34237017
This is not specific to SUSE, but usually you need to install ntpd, and in the file /etc/ntp.conf add one or more server lines (where you want to get the time from), and add a broadcast line to your subnet.

# list of servers to get the time from
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org

# if your network is using 192.168.1.x/255.255.255.0
broadcast 192.168.1.255

Open in new window


There are of course other settings in ntp.conf aswell, but server and broadcast is usually what you need to look at to get started.
0
 
LVL 5

Expert Comment

by:maques
ID: 34237077
Install and configure ntpd (yast/network services/ntp servers) - it is both client and server.
Setting up "as client" - eg. to synchronize to internet - should be very easy.
Then set up to provide time services too, see wiki below "be a time server" section.
Make sure you run as daemon, not just at startup, firewall not blocking ntp [UDP 123], etc.

Best reference (relates to gentoo), but apart from that should be the same:
http://en.gentoo-wiki.com/wiki/NTP

simple setting up as client, short guide:
http://www.linuxquestions.org/questions/suse-novell-60/ntp-time-servers-with-suse-10-2-a-538419/
0
 

Accepted Solution

by:
Balack earned 0 total points
ID: 34275791
have followed all the steps. May be we overlooked are Novell AppArmor can blocked the ntpd through ntp profile. Keep on getting writing to /var/lib/ntp/drift/ntp.drift.TEMP permission denied problem. After disabled apparmor, the whole thing works.
0
 

Author Closing Comment

by:Balack
ID: 34308517
It really works
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

670 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