Link to home
Start Free TrialLog in
Avatar of Eric
EricFlag for United Kingdom of Great Britain and Northern Ireland

asked on

List time on all servers

Hi All

Is there a way I can either monitor the time on all my windows servers or take a regular list type report of the times on the servers at particular intervals during the day?   I am trying to see variances in times as some of our applications are time sensitive.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Rich Weissler
Rich Weissler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eric

ASKER

Hi Razmus

Thank you for your comments - I am aware of the w32tm and net time but they only display singular servers or in the case of using /domain it gives the DC with the PDC role.  I am not conversant with powershell at the moment so I don't know whether w32tm or net time could be put into a loop to catch all the servers and PCs on the network.

The computers are in 2 Domains and I have the DCs  pull from an atomic clock, but some servers and workstation PCs for whatever reason drift anything up to 2 or 3 minutes which causes problems with one of our applications, so I would like a list of times or a way of alerting me to the drift.
Avatar of Rich Weissler
Rich Weissler

I understand the motivation.

I'd be tempted to write a batch or command file with one line per server you are concerned about, and append the output to a text file, which you can run at will and compare times.  Shouldn't be more than a couple minutes to write.

Then I'd be very concerned about the times which are drifting, and try to fix that.  2-3 minutes is a LONG time to be out of sync.  Your application obviously complains, and kerberos authentication won't work at all when you get to five minutes.  (Or do you need to dynamically enumerate all the servers/workstations and report the time/drift for all of them?)

This would be a temporary tool to track down what is happening to your time synchronization.

Do the PDC emulators drift from the atomic clock?
Do the DCs drift from the PDCs?
or is it the workstations/servers drifting from the DCs?

Are any of these systems virtualized?
Avatar of Eric

ASKER

Hi Razmus

There is little drift from Atomic or PDC, only other servers and PCs have the larger drift, I think that might be because they are virtual servers.  I have read that virtual servers can drift due to heavy workloads on the hosts.  I have used your workaround using the w32tm /monitor /computername: comp1,comp2,etc redirected to a file in a batch file and scheduled with bmail so I get a regular email.  Thanks for your input it was helpful.