Sunday 16 November 2014

LINUX : Sync Time between Two servers

Solution:
date --set="$(ssh user@server date)"

Eg:

[root@driebsapp01 ~]# date
Mon Feb 23 12:08:22 GST 2015
[root@driebsapp01 ~]# date --set="$(ssh root@10.101.40.10 date)"
The authenticity of host '10.101.40.10 (10.101.40.10)' can't be established.
RSA key fingerprint is 29:94:78:7d:13:92:8b:b2:4c:02:e2:76:68:56:f4:8d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.101.40.10' (RSA) to the list of known hosts.
root@10.101.40.10's password:
Mon Feb 23 11:10:30 GST 2015
[root@driebsapp01 ~]#

No comments:

Post a Comment

Oracle : Database Startup Time

 Oracle Instance Startup Time SET LINES 2000 SET PAGES 9999 COLUMN INSTANCE_NAME FOR A20 SELECT     instance_name,     to_char(startup_time,...