Get answers here.
Moderators: BBear, theunknownhost, flaguy
-
shpilkus
- Hosting Superstar
- Posts: 1020
- Joined: Mon Aug 05, 2002 8:23 pm
- Location: Space Coast, FL
-
Contact:
Post
by shpilkus » Sun Nov 04, 2007 10:47 pm
I have successfully SSH-ed into each of our 'virtualized' servers, and they all had different versions of the incorrect time. To reset the clock use the following at the SSH prompt (must be logged in as root):
Adjust the date or time as required. And the quotes are needed.
Craig M.
5DollarHosting.com
-
sixpackmx
- Hard Drive Crasher
- Posts: 640
- Joined: Fri Nov 01, 2002 9:44 am
- Location: Mexico City, Mexico
Post
by sixpackmx » Sun Nov 04, 2007 11:48 pm
Thre should be a ntp server in place. I use time.nist.gov for syncing the clock.
-
HMPGON
- Propeller head licensee
- Posts: 40
- Joined: Wed Oct 31, 2007 1:55 pm
- Location: Texas
Post
by HMPGON » Mon Nov 05, 2007 3:59 pm
What is the comand to just 'check' what the hell my server has as time & date without changing anyting?
-
crashdump
- Hard Drive Crasher
- Posts: 950
- Joined: Thu Oct 17, 2002 5:44 pm
- Location: Virginia
Post
by crashdump » Mon Nov 05, 2007 3:59 pm
-
Greg
- Hosting Superstar
- Posts: 1807
- Joined: Fri Apr 19, 2002 12:00 am
- Location: Earth
Post
by Greg » Tue Nov 06, 2007 10:25 pm
i get a different format when i look at the date, so should i neter the new time/date should i enter the format i got from using "date" or should i use your format?
my current date is
So should i enter your format:
where it is date-month-year-time
or enter in the same format as mine:
Code: Select all
date -s "Tue Nov 6 13:22:22 EST 2007"
where it is
day of week-month-date-time-
time zone-year
-
Greg
- Hosting Superstar
- Posts: 1807
- Joined: Fri Apr 19, 2002 12:00 am
- Location: Earth
Post
by Greg » Tue Nov 06, 2007 10:37 pm
never mind, looked at the man pages, all i need to do was change the time, so i did:
date -s 17:33
-
sixpackmx
- Hard Drive Crasher
- Posts: 640
- Joined: Fri Nov 01, 2002 9:44 am
- Location: Mexico City, Mexico
Post
by sixpackmx » Wed Nov 07, 2007 6:00 am
best way to do this:
ntpdate time.nist.gov
This will sync with the official NIST time.
-
rldev
- Hosting Superstar
- Posts: 1067
- Joined: Tue Aug 05, 2003 10:17 pm
Post
by rldev » Wed Nov 07, 2007 2:44 pm
sixpackmx wrote:best way to do this:
ntpdate time.nist.gov
This will sync with the official NIST time.
how do you always keep it synced? cron?
-
shpilkus
- Hosting Superstar
- Posts: 1020
- Joined: Mon Aug 05, 2002 8:23 pm
- Location: Space Coast, FL
-
Contact:
Post
by shpilkus » Wed Nov 07, 2007 2:46 pm
Supposed to by ntpd but the script to start/stop/restart it is broked. I can start it manually but on reboot it would be down (as is Apache).
Man, once everyone is restored they have a lot of cleanup and rolling out to do as a bunch of the automation is whacked.
Craig M.
5DollarHosting.com
-
Sapphyre
- Official Test Penquin
- Posts: 3337
- Joined: Tue Nov 19, 2002 2:50 am
- Location: Canada
Post
by Sapphyre » Wed Nov 07, 2007 6:43 pm
shpilkus wrote:Supposed to by ntpd but the script to start/stop/restart it is broked. I can start it manually but on reboot it would be down (as is Apache).
Man, once everyone is restored they have a lot of cleanup and rolling out to do as a bunch of the automation is whacked.
Are you seeing this broken on a blade or a box ?
-
shpilkus
- Hosting Superstar
- Posts: 1020
- Joined: Mon Aug 05, 2002 8:23 pm
- Location: Space Coast, FL
-
Contact:
Post
by shpilkus » Wed Nov 07, 2007 7:52 pm
Blades.
Craig M.
5DollarHosting.com
-
Sapphyre
- Official Test Penquin
- Posts: 3337
- Joined: Tue Nov 19, 2002 2:50 am
- Location: Canada
Post
by Sapphyre » Wed Nov 07, 2007 8:26 pm
shpilkus wrote:Blades.
So it wasn't as easy as copying all files including OS over. What happened with all that pretesting they did? No one noticed or thought of testing this stuff?
-
Okidoki
- Official Test Penquin
- Posts: 2179
- Joined: Mon Jan 13, 2003 12:48 pm
Post
by Okidoki » Wed Nov 07, 2007 8:38 pm
The cron job for root on physical server is delete o rename for root.bak
Crerate new cron for root and change this line
*/20 * * * * /usr/sbin/ntpdate -b 209.239.56.43 2>/dev/null >/dev/null
for example
*/20 * * * * /usr/sbin/ntpdate -b 192.43.244.18 2>/dev/null >/dev/null
Okidoki
Who is online
Users browsing this forum: No registered users and 1 guest