Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you adjust time in Solaris 9?

Status
Not open for further replies.

uncgis

MIS
Apr 9, 2004
58
US
I just updated to solaris 9 and I think I configured the time wrong during the installation. I have checked under the /etc/TIMEZONE and I have the right TZ setting...but my clock is two hours behind.

Does anyone know how to adjust the time?

Thanks
 
Time is fairly easy to change with the date command. See its man page.

You may want to consider activating xntpd on your system. This will keep your system continually up to date.

A basic setup just involves creating a /etc/inet/ntp.conf file with a couple of reliable time servers and starting xntpd.

Here are the two lines I have in my ntp.conf file.
server tock.usno.navy.mil
server tick.usno.navy.mil

Start nptd by running "/etc/init.d/xntpd start"

I'd recommend doing a man on xntpd for more info on the command.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top