Work/Solaris

ntp 확인

Flyyunha 2014. 8. 13. 14:18

# ntpq -p


remote           refid      st t when poll reach   delay   offset    disp

================================================================================

*192.168.0.1  .GPS.            1 u  730 1024  377     7.84    2.588    0.15


remote 에 있는 ip(192.168.0.1) 가 NTP 서버 ip 입니다

 

Remote 서버 IP 앞에 있는 ‘ * ’는 그서버에서 시간을 가져온다는 의미입니다


# cd /etc/inet

# ls | grep ntp

ntp.client

ntp.server

ntp.conf


.conf 파일이 있으면 ntp 관련 ( server 혹은 client ) 설정이 되어있다.


# cat ntp.conf

파일 확인해서 server 구성 or Client 구성 확인 


# ntpdc -n -c sysinfo -c peers -c monlist


# ntpdc

ntpdc>monlist



# vi /etc/inet/ntp.conf ( ntp 서버 일경우 )

** monlist 제한 **

IPv4 : restrict default limited kod nomodify notrap nopeer

IPv6 : restrict -6 default limited kod nomodify notrap nopeer 


참고

https://www.us-cert.gov/ncas/alerts/TA14-013A