ntp service

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

ntp service

Postby rgmhtt » Fri Mar 13, 2009 2:14 pm

Amahi should be the ntp source for the local network.

Let the one system go out and find the time, then have all the clients look to it.

I think ntp can be controlled on the client with a dhcp option.


And whatabout SMB timeservices?

NET TIME \\hda set yes?

I think that takes an option set in the smb.conf file?

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: ntp service

Postby cpg » Fri Mar 13, 2009 2:38 pm

good idea. one less thing to get traffic out.
i did a quick test adding

Code: Select all

option ntp-servers 192.168.1.10;
to my dhcpd conf file, released and renewed my lease and it did not work.

it's easy work:

- patch hdactl
- patch the installer to set it up as a service
- monitor it to make sure it does not go down

good idea about samba. i was not aware of that!

more later ...

(incidentally, we have some changes for the way we use monit to make it way more flexible and easier to add these, dosable individually, etc. ...)
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: ntp service

Postby rgmhtt » Fri Mar 13, 2009 2:59 pm

Three are a few steps on setting up hda to be an ntp server. I have a few systems here set up as servers, so I have notes on what to do. I am shutting down for now, and will post them later during the weekend.

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: ntp service

Postby rgmhtt » Mon Mar 16, 2009 6:11 am

Here is what you need to do to setup Amahi to be an ntp server to systems on its network.

First are changes to /etc/ntp.conf:

You have to remove restrictions for systems on the local net:

# Hosts on local network are less restricted.
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

Note this is the only change which is install specific.

And you have to enable the fake servers. Uncomment out them as follows:

# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 127.127.1.0
fudge 127.127.1.0 stratum 10

Next there is an addtion to /etc/sysconfig/ntpd:

# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=yes

Now restart ntpd and you are a ntpd server for your network.


Finally there is making net time work as shown at: http://oreilly.com/catalog/samba/chapte ... 08_01.html

8.1.1.1 time server

If your Samba server has an accurate clock, or if it's a client of one of the Unix network time servers, you can instruct it to advertise itself as an SMB time server by setting the time server option as follows:

[global]
time service = yes

The client will still have to request the correct time with the following DOS command, substituting the Samba server name in at the appropriate point:

C:\NET TIME \\server /YES /SET

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: ntp service

Postby rgmhtt » Mon Mar 16, 2009 6:15 am

;)

oops, I see that you already have /etc/samba/smb.conf setup for time services....

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: ntp service

Postby moredruid » Mon Mar 16, 2009 6:17 am

shweet...
I'm going to try this ASAP :)
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

Who is online

Users browsing this forum: No registered users and 42 guests