Wednesday, 11 December 2019

Check ssh date on both 2 node RAC Server



  • [grid@srv2 ~]$ cat /etc/hosts

#127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

127.0.0.1   localhost.localdomain localhost
# Public
192.168.56.71   srv1.example.com        srv1
192.168.56.72   srv2.example.com        srv2
192.168.56.73   srv3.example.com        srv3
# Private
192.168.10.1    srv1-priv.example.com   srv1-priv
192.168.10.2    srv2-priv.example.com   srv2-priv

# Virtual
192.168.56.81   srv1-vip.example.com    srv1-vip
192.168.56.82   srv2-vip.example.com    srv2-vip

# SCAN (in production this should be configured in DNS)
192.168.56.91   srv-scan.example.com    srv-scan
192.168.56.92   srv-scan.example.com    srv-scan
192.168.56.93   srv-scan.example.com    srv-scan


  • [grid@srv2 ~]$ ssh srv1.example.com date;ssh srv2.example.com date

Wed Dec 11 12:59:04 IST 2019
Wed Dec 11 12:59:04 IST 2019
[grid@srv2 ~]$

NOTE : set date ===> date -s "2 OCT 2006 18:00:00"


No comments:

Post a Comment