본문 바로가기

Management

[Operations] NTP for vROPS nodes

vROPS 설치 시, Express Installation이 아닌 일반 Installation을 선택하면 다음 화면과 같이 NTP 설정하는 단계가 확인됩니다. 

## 아래 화면은 7.x 지만 8.x 에도 동일

이 단계에서 vROPS Node가 바라볼 NTP 서버 주소를 기입하면 되는데요.

 

최초 Node 구성 후에 추가로 구성하는 Node들은 자동으로 위 단계에서 설정한 NTP 서버를 바라보도록 추가 시에 설정됩니다.

이는 각 Node의 /etc/ntp.conf 파일에서 확인 가능합니다. 

아래는 vROPS Master Node에 추가한 Remote Collector에서 확인한 /etc/ntp.conf 파일 결과입니다.

보시면 초기 설치 시점에 NTP로 지정했던 192.168.1.2 IP를 확인하실 수 있습니다.

server 192.168.1.2 iburst prefer

root@vropsrc01 [ ~ ]# cat /etc/ntp.conf
################################################################################
## This file was placed by vRealize Operations Manager.
## If you had an existing configuration at /etc/ntp.conf, it has been moved to
## /etc/ntp.conf.before.vrops.bak if such a file did not previously exist. It is
## strongly recommended you use vRealize Operations Manager to modify your NTP
## configuration as any manual edits below may have unintended consequences.
################################################################################
 
################################################################################
## /etc/ntp.conf
##
## Sample NTP configuration file.
## See package 'ntp-doc' for documentation, Mini-HOWTO and FAQ.
## Copyright (c) 1998 S.u.S.E. GmbH Fuerth, Germany.
##
## Author: Michael Andres,  <ma@suse.de>
##         Michael Skibbe,  <mskibbe@suse.de>
##
################################################################################
 
##
## Radio and modem clocks by convention have addresses in the
## form 127.127.t.u, where t is the clock type and u is a unit
## number in the range 0-3.
##
## Most of these clocks require support in the form of a
## serial port or special bus peripheral. The particular
## device is normally specified by adding a soft link
## /dev/device-u to the particular hardware device involved,
## where u correspond to the unit number above.
##
## Generic DCF77 clock on serial port (Conrad DCF77)
## Address:     127.127.8.u
## Serial Port: /dev/refclock-u
##
## (create soft link /dev/refclock-0 to the particular ttyS?)
##
# server 127.127.8.0 mode 5 prefer
 
##
## Undisciplined Local Clock. This is a fake driver intended for backup
## and when no outside source of synchronized time is available.
##
## CaSA Section Start  # added by CaSA
tinker panic 0  # added by CaSA
disable auth  # added by CaSA
server 192.168.1.2 iburst prefer  # added by CaSA   ### <--
restrict -6 ::1  # added by CaSA
# server 127.127.1.0            # local clock (LCL)  # commented out by CaSA
# fudge  127.127.1.0 stratum 10 # LCL is unsynchronized  # commented out by CaSA
 
##
## Add external Servers using
## # rcntp addserver <yourserver>
##
#server time.nist.gov burst iburst
 
# Access control configuration; see /usr/share/doc/packages/ntp/html/accopt.html for
# details.  The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.
 
# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
 
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1
 
# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict 192.168.123.0 mask 255.255.255.0 notrust
 
##
## Miscellaneous stuff
##
 
driftfile /var/lib/ntp/drift/ntp.drift # path for drift file
 
logfile   /var/log/ntp          # alternate log file
# logconfig =syncstatus + sysevents
# logconfig =all
 
# statsdir /tmp/                # directory for statistics files
# filegen peerstats  file peerstats  type day enable
# filegen loopstats  file loopstats  type day enable
# filegen clockstats file clockstats type day enable
 
#
# Authentication stuff
#
keys /etc/ntp.keys              # path for keys file
trustedkey 1                    # define trusted keys
requestkey 1                    # key (7) for accessing server variables
# Default NTP configuration was updated to include controlkey, so we need to update as well
controlkey 1                    # key (6) for accessing server variables
 
restrict default kod nomodify notrap nopeer noquery

 

현재 상태에서 NTP 정보는 Product UI와 Admin UI 양 쪽에서 모두 확인 가능합니다.

Product UI는 Administration > Cluster Management 로 이동한 후, Actions에서 Network Protocol Time Settings 메뉴를 선택하면 확인할 수 있습니다.

 

Admin UI에서는 우측 상단의 아래 빨간색으로 표시한 아이콘을 클릭하면 동일한 내용을 확인할 수 있습니다.