Operating System - HP-UX
1820257 Members
2880 Online
109622 Solutions
New Discussion юеВ

See NTP clients that connect to my NTP server

 
dragana s-v
Advisor

See NTP clients that connect to my NTP server

Hi,
Few of my boxes are set up as NTP servers. I was asked to provide list of all devices that connect to those servers to retrieve time. Does anyone know how can get this be done?

Thank you,
Dragana S-V
4 REPLIES 4
Court Campbell
Honored Contributor

Re: See NTP clients that connect to my NTP server

I don't know of any command that will supply this for you. But you could install tcpdump and run it for awhile. Just have it look for things that come over port 123.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
B. Hulst
Trusted Contributor

Re: See NTP clients that connect to my NTP server

Hi,

The quickest way is to monitor UDP port 123 on your system (with nettl,tcpdump or ethereal/wireshark) or check the logs on the firewall(s) in your network.

Regards,
Bob
A. Clay Stephenson
Acclaimed Contributor

Re: See NTP clients that connect to my NTP server

One approach would be to disable the HP supplied xntpd daemon and replace it with ntpd that you can get from here:
http://www.ntp.org/

The package is distributed as source and you can customize it to meet any need you have.
It's actually an easy build as long as you have a development system on your box.
If it ain't broke, I can fix that.
Court Campbell
Honored Contributor

Re: See NTP clients that connect to my NTP server

if you do as ACS suggests I believe you can do a

# ntpdc monlist

to get the list.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"