Set the Date and Time on Solaris
Setting the system date and time is fairly easy on solaris. Because you can easily set the time from the command line, you can set the time on a server remotely.
date mmddhhmmyy
The date command takes the syntax mmddhhmmyy, or “month day hour minute year”. You have to be superuser to set the time.
Example:
# date 1201010106
Fri Dec 1 01:01:00 PST 2006

Daily Email Updates
You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Hi,
The Unix file system format conatains small shell batches– Where the date time will be formated as like numarical values ” expr `date +%Y%m%d` + 1 ”
Thanks,
Md Yacoob
Hi,
I have a very strange problem in Solaris 10.
I can set the time etc either by the above method or by ntpdate SERVERNAME ETC however after a re-boot the server flicks the time forward 1 hour.
We have a hybrid environment and the server needs to talk to my Server 2008 DC for Sun Ray authentication and with the problem the sun ray admin tool is unable to locate the AD
Only temp fix so far is too put the DC clock 1 hour forward but obv this cannot be done.
Any ideas?
Cheers,
Toby