Link to home
Start Free TrialLog in
Avatar of jamie_lynn
jamie_lynn

asked on

Update time on Solaris

Hi,
When I use the date command, my time is off by 30min. What is the command to update the time on my solaris machine?
Thanks
Jamie
SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yuzh
yuzh

It is better to use "rdate" to get the correct time from the other
*nix box, or "ntpdate" to get time from a NTP server.

login as root, type in:

eg:
/usr/bin/rdate  timeservername
 /usr/sbin/ntpdate ntpserver

man rdate
man ntpdate
to learn more details.

you can put it in the crontab.
Avatar of jamie_lynn

ASKER

What is the exact command to add 30 min? Do I have to type in the the entire time format?
Thanks
Jamie
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial