Solved

List time on all servers

Posted on 2013-05-23
4
226 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 29

Accepted Solution

by:
Rich Weissler earned 500 total points
Comment Utility
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
Comment Utility
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 29

Expert Comment

by:Rich Weissler
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now