Page 1 of 1 1
Topic Options
#66966 - 2002-06-13 09:48 PM remotely "pushing" time config
tr6boy Offline
Starting to like KiXtart

Registered: 2001-10-24
Posts: 131
I'm used to using kix as an "on logon" solution. Can it also be used for example to remotely push a time setting to a windows NT server without logging on to it (assuming admin rights)?
Thanks,
tr6boy

Top
#66967 - 2002-06-13 09:54 PM Re: remotely "pushing" time config
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Search for W32time. Jens posted a script just today that does just that.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#66968 - 2002-06-13 11:15 PM Re: remotely "pushing" time config
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Remotely pushing???

The preferred choice would be to run a time server (W32TIME) on that server. This will update the time in regular intervals.

Alternatively, you will need to execute a piece of code on the remote server. One way of doing this would be to copy a batch file like
code:
NET TIME /SET /Y

to the remote server with e.g. COPY SETTIME.BAT \\server\admin$\ and then use the Task Scheduler to run this batch file once, or regularly (like a cheap time server). There is a ScheduleTask UDf in the UDF section that programs a remote Task Scheduler.

Nevertheless, W32TIME is highly recommended for this type of problem.
_________________________
There are two types of vessels, submarines and targets.

Top
#66969 - 2002-06-14 12:53 AM Re: remotely "pushing" time config
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
w32time is no good if you don't have time server running on w2k PDC!!!

that's also why I disabled it from every w2k installation our net has.

w2k timeserver is no problem otherwise, but it seems to be unable, uttleast here in finland to get time info from timeservers.
of any class or type.
I had one program which did work, but it did have to be ran by user or trough servany.

this is also why net time services on our domains runs trough linux samba server which has broven to be much more reliable.

but in other hand, if you have w2k server as PDC, your networks machines is easiest to be synched via w32time.
it is another issue to get the correct world wide time...
_________________________
!

download KiXnet

Top
#66970 - 2002-06-14 01:25 AM Re: remotely "pushing" time config
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You can set up W32TIME in any way you want. Normally, you'd set up a three-tierd system.
1) At least one Primary Time Server that pulls from a well-defined time source (list of those is publicly available and I believe also listed in W32TIME documentation)
2) At least one Secondary Time Server which pulls time from local Primary Time Server
3) Workstations pull from Secondary Time Server

In order to make this setup work, you will need to modify W32TIME.INI accoridng to the documentation.

Of course you could use the Samba Server as time source for the W32TIME server. I have found W32TIME to be very reliable.
_________________________
There are two types of vessels, submarines and targets.

Top
#66971 - 2002-06-14 01:32 AM Re: remotely "pushing" time config
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jens,
there was two problems:
1. w32time did not get the times from even secondary time servers.
and actually, I have got no connection to finnish "public" time servers whatsoever.

2. w2k clients poll the timeserver info from domain controller.
even if do configure other machine to be the server it does not accept it.

I've found lots of comments on the internet, mostly from europe I quess, stating that w32time does not work correctly, but it needs other app to get the correct time to the server.
ok, I can pull all my servers time from network but as long as my network is nt4 controlled I will have, if I enable w32time service on clients, event viewer full of w32time related errors and warnings.
_________________________
!

download KiXnet

Top
#66972 - 2002-06-14 01:38 AM Re: remotely "pushing" time config
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
W32Time will pull time from any NTP time source. There are lots of NTP time sources to choose from. I pull time from a GPS but can also pull it from my Cisco router. W32Time can be configured to make the server a LANMAN tile source and then the clients will pick up their time from it.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#66973 - 2002-06-14 02:57 AM Re: remotely "pushing" time config
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I'll post my .INI files tomorrow to illustrate my time server configs. It might give you more insight.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.123 seconds in which 0.093 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org