Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I would like to get local time of server. Is there command/way to get time of server. Operating system is solaris

share|improve this question

3 Answers 3

One of the best ways to find a suitable time server is to use the NTP Public Pool. Configure three (3) or more time sources from an appropriate pool (i.e. one geographically close to you).

share|improve this answer

googling around found this:

http://www.camelrichard.org/topics/Solaris/Configuring_NTP_in_Solaris_10

To configurate it

and this

http://www.softpanorama.org/Net/Application_layer/NTP/configuring_a_solaris_ntp_server.shtml

to reset it.

svcs -a | grep ntp

svcadm restart ntp
share|improve this answer

I'm not sure why you would like to request the time from a NTP server if you want to get the current local time set on your server.

To do it, simply use the date command.

EDIT: but if you still want to retrieve the time from a NTP server, you can use the ntpdate command followed by the NTP server's IP address.

share|improve this answer
2  
Keeping your local server's time synchronized (with ntp) is critical unless your server operates in isolation from anything else and you don't care about accurate logging, file exchange, etc. NTP is too easy to install and too easy to maintain not to use it. ntpdate is a one-time set-the-clock. Local computer clocks are terrible time-keepers: they drift. ntp keeps time synchronized. –  JRFerguson Sep 11 '12 at 15:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.