Server Date and Time

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Server Date and Time
# 1  
Old 07-11-2011
Server Date and Time

Hi,
I am trying to change server date and time for testing purposes but every time i change the date and time it gets switched back to system date and time after half an hour or so. Is there a way to change the server date and time temporarily? My guess is that the server time is in sync with time server.
# 2  
Old 07-12-2011
To stop
Code:
 
service ntpd stop

To start
Code:
 
service ntpd start

Time Synchronization with NTP
Quick HOWTO : Ch24 : The NTP Server - Linux Home Networking
# 3  
Old 07-12-2011
Server Date and time

Thanks for your reply. I stopped the ntpd service but i can still see in the log that after about 26 minutes, time changes back to current time. I am trying to change the server date and time on my development server to september 7, 2010 for testing purpose(i have pasted a portion of the log below)

<Nov 7, 2010 12:55:25 PM EST> <Warning> <WLI-Monitoring Runtime> <BEA-473224> <Aggregator did not receive statistics from [ALSB_STAGE_MNG_1] for the aggregation performed for tick 95176500.>
<Nov 7, 2010 12:56:25 PM EST> <Warning> <WLI-Monitoring Runtime> <BEA-473224> <Aggregator did not receive statistics from [ALSB_STAGE_MNG_1] for the aggregation performed for tick 95176560.>
<Jul 11, 2011 3:59:15 PM EDT> <Info> <Log Management> <BEA-170017> <The log file /opt/bea/user_projects/domains/ALSB_STAGE_DOMAIN/servers/ALSB_STAGE_MNG_1/logs/ALSB_STAGE_MNG_1.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Jul 11, 2011 3:59:15 PM EDT> <Info> <Log Management> <BEA-170018> <The log file has been rotated to /opt/bea/user_projects/domains/ALSB_STAGE_DOMAIN/servers/ALSB_STAGE_MNG_1/logs/ALSB_STAGE_MNG_1.log44744. Log messages will continue to be logged in
# 4  
Old 07-12-2011
check is there any cron setup to synch the time for every 30 mins
# 5  
Old 07-12-2011
i checked the cron jobs and this is what i got. Do you see anything that is changing the time?

[weblogic@sdpsb01 ~]$ crontab -l
#00,05,10,15,20,25,30,35,40,45,50,55 * * * * CLASSPATH=$CLASSPATH:/opt/bea/weblogic92/server/lib/weblogic.jar:/opt/bea/weblogic92/common/lib/jython.jar:/opt/bea /weblogic92
#00,05,10,15,20,25,30,35,40,45,50,55 * * * * /opt/bea/jrockit90_150_06/bin/java org.python.util.jython /home/weblogic/EGScript/Monitoring/wlsMonitor1.py -f /hom e/weblogic/E#GScript/Monitoring/monitor.xml >> /home/weblogic/EGScript/Monitori g/wlsmonitor.txt 2>&1
#00,05,10,15,20,25,30,35,40,45,50,55 * * * * cd /home/weblogic/EGScript/Monitori ng && /opt/bea/jrockit90_150_06/bin/java org.python.util.jython wlsMonitor1.py - f /home/webl#ogic/EGScript/Monitoring/monitor.xml >> /home/weblogic/EGScript/Montoring/wlsmonitor.txt 2>&1
00,30 * * * * /home/weblogic/EGScript/Monitoring/runMonitoring.sh >> /home/weblogic/EGScript/Monitoring/error1.txt 2>&1
00,10,20,30,40,50 * * * * mail -s "Daily Monitoring" l.kaushik@accenture.com <wlsmonitor.txt
[weblogic@sdpsb01 ~]$
You have new mail in /var/spool/mail/weblogic
# 6  
Old 07-12-2011
cek your /etc/ntp.conf configuration and see whether is it pointing to any specific ip address.. and you can disable the synchronization from the time clock if u use gui just click the time in the taskbar and later u untick the sync(there are 2 radio button at the bottom)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Displaying current date time of EDT in IST time

Hi Folks, My server time is in EDT. And i am sending automated mails from that server in which i need to display the current date time as per IST (GMT+5:30). Please advice how to display the date time as per IST. IST time leads 9:30 mins to EDT. and i wrote something like below. ... (6 Replies)
Discussion started by: Showdown
6 Replies

2. Shell Programming and Scripting

Adding time to date time in UNIX shell scipting

I needed some help in adding a duration (in seconds) to a start time (in hhmmss format) and a start date (in mmddyy format) in order to get an end date and end time. The concept of a leap year is also to be considered while incrementing the day. The code/ function that I have formed so far is as... (3 Replies)
Discussion started by: codehelp04
3 Replies

3. Solaris

modifying date and time and time zone on solaris 5.10 with (redundant server) veritas

I have a cluster of two Solaris server (veritas cluster). one working and the other is standby I am going to change the date on them , and am looking for a secure solution as it is giving an important service. my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
Discussion started by: barry1946
1 Replies

4. UNIX for Dummies Questions & Answers

Converting string date time to unix time in AWK

I'd like to convert a date string in the form of sun aug 19 09:03:10 EDT 2012, to unixtime timestamp using awk. I tried This is how each line of the file looks like, different date and time in this format Sun Aug 19 08:33:45 EDT 2012, user1(108.6.217.236) all: test on the 17th ... (2 Replies)
Discussion started by: bkkid
2 Replies

5. UNIX for Advanced & Expert Users

Changing Time and date on Virtual server

Hello Everyone I am running a Sunos 5.10 Generic_138888-02 sun4u sparc SUNW,SPARC-Enterprise machine with more than one virtual servers are on this box. My question is possable to change the date and time on the virtual server without change the time on the main server? Thanks Peter (4 Replies)
Discussion started by: Peterh
4 Replies

6. UNIX for Dummies Questions & Answers

to get remote server date & time

Hi, i dont have remote m/c user credential. i only know remote m/c ip address. and i am able to ping that remote m/c. In windows we use: "net time \\computername" to get the remote m/c time. so how can i get remote m/c time in unix m/c? (means a unix command) Thanks for the help. ... (9 Replies)
Discussion started by: partha_ori
9 Replies

7. Shell Programming and Scripting

Check Time/Date on a server

I have two servers which are not in sync. I need to write a script that checks the time on the corresponding server and another script to call the above script on both the servers simulataneously to check if there is a time difference. Can anyone provide me with such scripts as I am new to... (3 Replies)
Discussion started by: ravneet123
3 Replies

8. Shell Programming and Scripting

Convert Epoch Time to Standard Date and Time & Vice Versa

Hi guys, I know that this topic has been discuss numerous times, and I have search the net and this forum for it. However, non able to address the problem I faced so far. I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies

9. UNIX for Advanced & Expert Users

Sync Time/date with NTP server

Hello all, What would be the most convienint and proper way on syncing up the time and date on Solaris 8 servers with an NTP server? Any help would be appreciated. Thanks (2 Replies)
Discussion started by: Sunguy222
2 Replies

10. Shell Programming and Scripting

FTP - Get the file date and time on the remote server

I would like to know if there is a way to get the date and timestamp of the file that is being FTP from the remote server using shell script. Currently the get command from FTP will have current date and timestamp. Tried the earlier suggestion 'HardFeed' but still getting the current date and time... (12 Replies)
Discussion started by: gthokala
12 Replies
Login or Register to Ask a Question