Solved

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

Posted on 2010-11-30
4
5,255 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

631 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