Solved

List time on all servers

Posted on 2013-05-23
4
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 30

Accepted Solution

by:
Rich Weissler earned 500 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

710 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