Auto set time of day on Solaris 10

The time on My Solaris 10 server has drifted off by nearly 10 minutes. I thought there ought to be an automatic way to synchronize the time with the atomic clock on the Internet. The following may work if your server is behind a firewall (not proxy server) that has access to the Internet. Thanks to who provides the real time clock.

Login as root
run “crontab -e”
add the following lines:

# sync up server time every day 4am
0 4 * * * rdate

I’ve got my tip from Rich Burrridge’s Weblog.