Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'ntpq -p host (NOT!)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
ntpq -p host (NOT!)
Authored by: captain on Dec 23, '06 12:37:32AM

Actually "ntpq -p" should display all configured timeservers that localhost (i.e. the computer on which your shell is running) knows about and the data as mentioned above. If you type the host nothing should happen differently because:

from the man page:
-p Print a list of the peers known to the server as well as a sum-
mary of their state. This is equivalent to the peers interactive

In other words: "ntpq -p" is equivalent to "ntpq -c peers", however "ntpq -p [hostname]" *should* just ignore hostname, while "ntpq -c peers [hostname]" should display all the know peers of hostname, NOT localhost.

Make sense? Good. :-)

RTFM next time, okay? :-P

[ Reply to This | # ]