Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

List time on all servers

Posted on 2013-05-23
4
Medium Priority
?
239 Views
Last Modified: 2013-05-28
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
0
Comment
Question by:Eric
  • 2
  • 2
4 Comments
 
LVL 30

Accepted Solution

by:
Rich Weissler earned 1500 total points
ID: 39190950
Have you already looked at the built in w32tm command?  It has a monitor feature available.

alternately you can issue "net time //<computername>" and "net time //domain:<domainname>" to collect times.

I've not done it, but I'm sure you can collect the time in powershell as well.

Are the servers in question already in a single domain?  And/or Do you have your servers already configured to pull time from a common time source?
0
 

Author Comment

by:Eric
ID: 39191013
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.
0
 
LVL 30

Expert Comment

by:Rich Weissler
ID: 39191131
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?
0
 

Author Closing Comment

by:Eric
ID: 39201139
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.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Resolve DNS query failed errors for Exchange
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

772 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