Syncing time in Linux and Windows with NTP - Bug Reaper

                  Bug Reaper

Lean about Automation Testing,Selenium WebDriver,RestAssured,Appium,Jenkins,JAVA,API Automation,TestNG,Maven, Rest API, SOAP API,Linux,Maven,Security Testing,Interview Questions

Friday 29 August 2014

Syncing time in Linux and Windows with NTP

How to Sync time in Linux and Windows with NTP


Below are the commands that you can run on Windows server like:Win2012R2

Open Power Shell or cmd
Type following Stepwise:

w32tm /config /manualpeerlist:NTP_server_IP_Address  /syncfromflags:MANUAL /update /reliable:yes

net stop w32time
net start w32time
w32tm /resync


We can also  check using following command
w32tm /query /status

w32tm /query /configuration


To confirm go to System clock on Windows

Right click on the clock in the system tray
Choose adjust time
On the internet time tab Check if your clock is in sync





No comments:

Post a Comment