Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: icemannz on April 08, 2004, 10:31:07 AM

Title: Anyone know how to sync time with an SME Server
Post by: icemannz on April 08, 2004, 10:31:07 AM
Hi, I can sync my time between my SME Server and the Internet - no problem.
But when I want my Windows PC to sync time with my SME Server it says could not locate a time server.
My SME Server is just running in Server-Only mode so I wouldn't have thought it would be a network problem.
On windows I type
net time /setsntp:smeserver
net time /set /yes

Any suggestions would be appreciated.
Thanks
Title: Setting time
Post by: Anonymous on April 08, 2004, 01:10:32 PM
you need to type

net time \\servername /set /yes
Title: set time with XP
Post by: patrickthickey on April 08, 2004, 03:08:37 PM
Under XP you need to type

net time /setsntp:ntp.server.name

and verify it by typing

net time /querysntp


regards,

patrick
Title: Anyone know how to sync time with an SME Server
Post by: kozel on April 08, 2004, 03:53:50 PM
I think the first response is the correct one.  I believe that setting the time from a 'server' and setting the time from a 'time server' are 2 different concepts.  The 2nd response is in reference to a 'time server' and I don't think the SME server functions as a 'time server'.  The 'net time' example has functions this way on most netbios like networks (Lantastic, CBIS, Powerlan and Windows). Do a 'net' command from a command promt and see the options available.  One other consideration is, expecially under XP, the user (if you're putting this into some script) must have permissions to alter the time on the workstation they are using.
Title: SME will serve up the time either way
Post by: MSmith on April 08, 2004, 10:48:47 PM
It operates as an NTP server to the local network as well as an NTP client to an Internet timeserver; and you can use the NET TIME command to access it locally as you would an XP/2K/NT server.
Title: Now that I think about it
Post by: MSmith on April 08, 2004, 10:49:49 PM
Perhaps you need to specify your server's IP address instead of NetBIOS name when using the /setsntp switch.
Title: Anyone know how to sync time with an SME Server
Post by: RavenIV on April 09, 2004, 12:17:16 AM
there are many tools for windows that act as time-clients.
i use "tclock". This is an extention to the windows-clock and acts as a time-client, it connects to my SME-server -> gets the correct time -> sets the system time to the correct time.
search with google for "tclock" or go to here http://www.buzzys.net/tclock.html
it's freeware.

cheers
Title: Problem Solved - Many thanks
Post by: icemannz on April 09, 2004, 01:22:03 AM
Many thanks to all who replied.
The "net time \\smeserver /set /yes" worked.
It does seem that the SME Server is not really acting as a time server so "net time /setsntp:smeserver" dosn't work.
Title: Anyone know how to sync time with an SME Server
Post by: bobk on April 09, 2004, 02:21:16 AM
I use SNTP Client Service (http://groups.yahoo.com/group/SNTPClientService) to keep all the Windows workstations on the network synchronized with the SME server. This little program is free, runs as a service and is configurable through a Control Panel Applet. I have version 1.8 installed on a few hundred machines and have never had a single problem with it.

Set your SME server to update time via your favorite SNTP server then point SNTP Client Service to SME's internal IP. I set the polling for hourly and all workstations stay perfectly in snyc. with the SME server.
Title: uhhhhh
Post by: patrickthickey on April 09, 2004, 03:58:21 AM
SME absolutely operates as a time server. It is configured in the panel, via the GUI. By default it is "off".

Then, assuming you are running XP you can set the time as I depicted above.

I'm not invalidating any of the other programs or approaches. I am insisting to those who are stating SME is not a time server, and client to a time server upstream once configured- you are factually incorrect.

Glad you got it working!

regards,

patrick
Title: Anyone know how to sync time with an SME Server
Post by: ansentry on April 09, 2004, 07:27:42 AM
First go to /home/e-smith/files/samba/netlogon

you will see an example there just remove the rem and change the name to your server name.

net time \\yourservername /set /yes

You can also enter script here that will connect your users to their home drive.

Drives that all users can connect to and also works with groups.

I have this working fine with Win2K and XP Pro but Win98 does not seem to like it. Any one have any ideas re logon script for win98 (I am using 6.0.1-01 Custom)



Regards

 :-)
Title: Anyone know how to sync time with an SME Server
Post by: kozel on April 09, 2004, 02:04:37 PM
I could be wrong in this; but the GUI configuration panel PH referes to is for the SME server to GET it's time from a 'Time Server' source and does not configure the SME server as a time server. I think there is a distinction between a 'Time Server' and a server from which you can synch your clock from. I've used the GUI to set my SME server to synch it's clock from a Time Server and my workstations synch their clock to the SME servers clock using 'NET TIME ....'
Title: Anyone know how to sync time with an SME Server
Post by: Anonymous on April 09, 2004, 04:04:07 PM
Quote from: "kozel"
I could be wrong in this; but the GUI configuration panel PH referes to is for the SME server to GET it's time from a 'Time Server' source and does not configure the SME server as a time server. I think there is a distinction between a 'Time Server' and a server from which you can synch your clock from. I've used the GUI to set my SME server to synch it's clock from a Time Server and my workstations synch their clock to the SME servers clock using 'NET TIME ....'


SME also acts as a Network Time Protocol Server. From the console type ps -A and you will see that ntpd is running on your SME server. Any machine on the network can synch with the SME server using ntp.
Title: Anyone know how to sync time with an SME Server
Post by: persmith on April 09, 2004, 04:24:06 PM
ntpd is not a time server, its only a deamon maintaining the time on the current machine.

Take a look at this link: http://www.eecis.udel.edu/~mills/ntp/html/ntpd.html

regards
Per Smith
Title: Anyone know how to sync time with an SME Server
Post by: wellsi on April 09, 2004, 11:53:49 PM
After some interesting reading I hope I can add a little to this debate.

"Unless restricted using facilities described later, this host can provide synchronization to dependent clients, which do not have to be listed in the configuration file."
http://www.eecis.udel.edu/~mills/ntp/html/notes.html

And

"clients are simply servers that have no dependents"
http://www.eecis.udel.edu/~mills/ntp/html/index.html#conf

By which I understand ntpd to operate both as a client and a server. Depending on your ntp.conf the SME server can be configured to be a Time Server or just a client.
Title: Anyone know how to sync time with an SME Server
Post by: bobk on April 10, 2004, 12:53:30 AM
Quote from: "wellsi"
...
By which I understand ntpd to operate both as a client and a server. Depending on your ntp.conf the SME server can be configured to be a Time Server or just a client.


Correct. Out of the box SME will operate in both modes without any additional configuration other than entering the address of the Public NTP Time Server to snyc with.

I operate several networks containing multiple SME servers (1 "server/gateway" and the others "server only"). I set the server/gateway to snyc with the closest Public NTP Secondary Time Server (in my case The University of Adelaide in South AUSTRALIA). The remaining servers and workstations are set to snyc with the server/gateway machine using its internal address. Network time is kept very acturate on these networks.

A good HowTo for Windows administrators can be found here http://techrepublic.com.com/5100-6268-1032165-1.html
Title: Anyone know how to sync time with an SME Server
Post by: persmith on April 10, 2004, 10:38:31 PM
Ooops, I may have read that document too fast  :-? Sorry! I think I got boored reading it ;-)

Regards
Per Smith
Title: Anyone know how to sync time with an SME Server
Post by: bavel on April 14, 2004, 12:57:11 PM
SME 6.01, Windows XP SP-1 clients.
When I do > net time \\servername /setas admin, it works. But when I enter the same command as any other user, I get a system error 1314 and a message that the client does not have one of the required priviliges...
Title: Anyone know how to sync time with an SME Server
Post by: Anonymous on April 14, 2004, 03:46:33 PM
Quote from: "bavel"
SME 6.01, Windows XP SP-1 clients.
When I do > net time \\servername /setas admin, it works. But when I enter the same command as any other user, I get a system error 1314 and a message that the client does not have one of the required priviliges...


Do the other users have admin priviliges?
Title: Anyone know how to sync time with an SME Server
Post by: bavel on April 14, 2004, 04:00:06 PM
admin privileges? they can only log in on the domain - not locally...
Title: Anyone know how to sync time with an SME Server
Post by: Anonymous on April 14, 2004, 04:11:32 PM
Then it is working properly. Ypu need admin privliges to start, stop or change services.
Title: Anyone know how to sync time with an SME Server
Post by: Anonymous on April 14, 2004, 04:46:56 PM
Which privilege would that be? If I know, I can start the service at machine level instead of user level...
Title: Anyone know how to sync time with an SME Server
Post by: mike_mattos on April 14, 2004, 05:16:43 PM
there is definitely something weird with the SME time service, I've got two SME 6's here, and only one of them let's me set my Windows box time!  But Windows explorer opens both servers!

I'd like any MACHINE ( not USER ) on my local network to be able to set time from the SME box, but that isn't the case.  ( Among other things, I want to sync time BEFORE the users log in so I can track login times! )

So what has to be set on the SME box?

Mike
Title: Anyone know how to sync time with an SME Server
Post by: bobk on April 14, 2004, 06:37:10 PM
Quote from: "mike_mattos"
there is definitely something weird with the SME time service, I've got two SME 6's here, and only one of them let's me set my Windows box time!  But Windows explorer opens both servers!

I'd like any MACHINE ( not USER ) on my local network to be able to set time from the SME box, but that isn't the case.  ( Among other things, I want to sync time BEFORE the users log in so I can track login times! )

So what has to be set on the SME box?

Mike


The only thing to set on your SME is to have one (the gateway) sync to a Time Server on the internet. Have the other one sync to the Gateway machine. There is nothing else to set or do on your SME machines.

Your Win machines should be set to sync to the Gateway also. Unfortunately the Win time service is a poor subsitute for the real thing. So go get a freeware third-party program that runs as a service and will do all the work for you. There are several of these around. I use and recommend SNTP Client Service, you can down load it here http://groups.yahoo.com/group/SNTPClientService. I had some problems with the early ver 2 but ver 18 works great on  W2K and XP.

Both SME machines on my network, setup as above, allow manual time sync:
Code: [Select]

C:\>net time \\mabit01 /set
Current time at \\mabit01 is 4/15/2004 12:23 AM

The current local clock is 4/15/2004 12:23 AM
Do you want to set the local computer's time to match the
time at \\mabit01? (Y/N) [Y]: y
The command completed successfully.


C:\>net time \\fax /set
Current time at \\fax is 4/15/2004 12:23 AM

The current local clock is 4/15/2004 12:23 AM
Do you want to set the local computer's time to match the
time at \\fax? (Y/N) [Y]: y
The command completed successfully.
Title: Anyone know how to sync time with an SME Server
Post by: Anonymous on May 11, 2004, 11:27:28 AM
Quote from: "mike_mattos"
there is definitely something weird with the SME time service, I've got two SME 6's here, and only one of them let's me set my Windows box time!  But Windows explorer opens both servers!

I'd like any MACHINE ( not USER ) on my local network to be able to set time from the SME box, but that isn't the case.  ( Among other things, I want to sync time BEFORE the users log in so I can track login times! )

So what has to be set on the SME box?

Mike
Title: Anyone know how to sync time with an SME Server
Post by: Anonymous on May 11, 2004, 11:28:00 AM
Quote from: "mike_mattos"
there is definitely something weird with the SME time service, I've got two SME 6's here, and only one of them let's me set my Windows box time!  But Windows explorer opens both servers!

I'd like any MACHINE ( not USER ) on my local network to be able to set time from the SME box, but that isn't the case.  ( Among other things, I want to sync time BEFORE the users log in so I can track login times! )

So what has to be set on the SME box?

Mike
.