Solved

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

Posted on 2010-11-30
4
4,670 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
  • 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now