> Hi, > > I am trying to set system date using > date/rdate/ntpdate command but I am not able to set > that: > > bash-2.03# date > Tue Dec 5 04:16:52 GMT 2006 > bash-2.03# rdate 172.16.101.100 > Tue Dec 5 01:11:01 2006 > bash-2.03# date > Tue Dec 5 04:17:02 GMT 2006
You probably can't set it with 'date' either. Can you run a quick test and do the following? (Feel free to replace the date contents with whatever is appropriate for the time you run it) # date -u 12060300 ; while [ 1 ] ; do date ; done (Then ^C shortly after). My expectation is that the date you set will be visible until the next clock tick, and then the date will change to something strange. If so, there is no network issue here. The time issue is local. I've seen such behavior 2 or 3 times on Sun machines. It appeared to be hardware related and had nothing to do with the software or networking. You could confirm that by booting from installation media and setting the clock with 'date'. If that fails to stay set, you almost certainly have a hardware problem. On at least 2 of the machines I've seen in that condition, things deteriorated to the point that support swapped the motherboard. Once done, no more clock issues. > "xntpd" server is not running. > > bash-2.03# ps -ef |grep xntpd > root 24736 22653 0 04:17:22 pts/1 0:00 grep > xntpd > > bash-2.03# uname -a > SunOS fes1 5.8 Generic_108528-29 sun4u sparc > SUNW,Netra-CP2300 > > I cann't reboot the server since it is deployed in > live network. Ah, makes checking by rebooting from install media harder. Do you have a backup server? > I also tried "ntpdate" but that didn't hepled > either: > > bash-2.03# ntpdate -b 172.16.101.100 > 5 Dec 01:12:53 ntpdate[24754]: step time server > 172.16.101.100 offset -11159.602679 sec > ash-2.03# date > Tue Dec 5 04:18:54 GMT 2006 I think this is actually setting the clock, but it's taking more than a second for you to type 'date', and it's changed back in that time. -- Darren This message posted from opensolaris.org _______________________________________________ networking-discuss mailing list [email protected]
