1823114 Members
3222 Online
109646 Solutions
New Discussion юеВ

Re: NTP clients

 
Susan Pellerito
Advisor

NTP clients

Is there a way to determine which servers are using the NTP server to sync their time?
12 REPLIES 12
Michael Steele_2
Honored Contributor

Re: NTP clients

ntpq -p from clients. refer to table 4 -7 in this link:

Table 4-7. An ntpq Output Indicating Known NTP Hosts


remote refid st t when poll reach delay offset disp==================================================================*GPS_HP(1) GPS 0 l 48 64 377 0.00 0.516 4.19hpps.cup.hp cupertino 3 u 467 1024 377 7.20 -12.430 15.67+server2 WWVB 1 u 173 256 377 279.95 20.56 16.40+node1 node3 2 u 131 256 373 9.89 16.28 23.25

http://docs.hp.com/en/B2355-90774/ch04s02.html
Support Fatherhood - Stop Family Law
James R. Ferguson
Acclaimed Contributor

Re: NTP clients

Hi Susan:

# ntpq -pn

...see the manpages for more information. An asterisk ("*") in column-1 denotes the server to which synchronization has occured.

Regards!

...JRF...
Susan Pellerito
Advisor

Re: NTP clients

Thanks for your suggestions, however, these commands only return the peers. I was looking for a way to determine what 'clients' are using my ntp server to sync time from.
Steven E. Protter
Exalted Contributor

Re: NTP clients

Shalom,

You can also look at /etc/ntp.conf

That will tell you what machine you INTEND to use. Compare it to the ntpq output and see whats going on.

I've found older versions of HP-UX have difficulty correcting time that is off by more than an hour with NTP. This may be a patching issue, have not had time to explore it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Susan Pellerito
Advisor

Re: NTP clients

Sorry...NO this is not what I am looking for. I want to know who is using MY time to sync from.
Deoncia Grayson_1
Honored Contributor

Re: NTP clients

One way, which is sure to be the long way around is going to the clients and looking at their /etc/ntp.conf and see which server they are using to sync their time.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
spex
Honored Contributor

Re: NTP clients

Susan,

You could try turning up the daemon logging level in /etc/syslog.conf, and then consult syslog after a client syncs to your server. Having never run an NTP server under HP-UX, I'm not sure that this will work.

Or write a script/program which monitors 123/udp.

PCS
Hemmetter
Esteemed Contributor

Re: NTP clients

Hi Susan

You can try to catch ntpclients with
tcpdump:

> tcpdump -n udp port ntp


Rgds
HGH
Susan Pellerito
Advisor

Re: NTP clients

I am not familiar with tcpdump. Is this freeware and is there a version for HP-UX?
spex
Honored Contributor
Michael Steele_2
Honored Contributor

Re: NTP clients

Tcpdump may not be the best internet sniffer or network monitor. A better GNU sniffer might be 'etheral':

http://www.ethereal.com/

or 'snort':

http://gatekeep.cs.utah.edu/hppd/cgi-bin/search?package=on&description=on&term=sniffer

These are just suggestions to the subject of network sniffers and monitors. And of course, the best ones cost and often appear on network nodes, ie routers.

Support Fatherhood - Stop Family Law
BUPA IS
Respected Contributor

Re: NTP clients

Hello Susan

try xntpdc -c monlist
or if you want lots more try the -d (debug option )on the xntpd start command this comes out to your root screen however which may have nuisance value

good luck
Mike
Help is out there always!!!!!