Can the status of a NTP server be known from command line ?
How to know the status of a ntp server ,given its ip address.?
Is there any way out to know whether the ntpd service is running and is up in the server ? ip address of server will be provided from the command line |
The 'ntpq' program should do what you want.
|
DO
Code:
#ntpdate @IP DIAGNOSTICS ntpdate's exit status is zero if it found a server and could update the clock, and nonzero otherwise. |
All times are GMT -5. The time now is 03:25 PM. |