Hi All,
I need to find a way of syncing the date on 4 linux pcs and 2 windows pc's using eiter a linux script or windows :( I would rather not use a samba share and get dos to run a if exist statment.
Does anyone have any suggestions?
Anyone know if cygwin allows a Linux box to ssh using a rsa key and run commands?
????
Why not the the NTP protocol? Set up one of your Linux machines as the serve which you can sync to some global time server, and then have all your other machines sync to it. for the windows machines there are NTP clients as well. -B
Paul Ward wrote:
Hi All,
I need to find a way of syncing the date on 4 linux pcs and 2 windows pc's using eiter a linux script or windows :( I would rather not use a samba share and get dos to run a if exist statment.
Does anyone have any suggestions?
Anyone know if cygwin allows a Linux box to ssh using a rsa key and run commands?
????
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Paul Ward wrote:
Hi All,
I need to find a way of syncing the date on 4 linux pcs and 2 windows pc's using eiter a linux script or windows :( I would rather not use a samba share and get dos to run a if exist statment.
Does anyone have any suggestions?
Anyone know if cygwin allows a Linux box to ssh using a rsa key and run commands?
????
Paul,
Set up one of your Linux systems with NTP and get all the other machines to sync with it.
http://www.brennan.id.au/09-Network_Time_Protocol.html
Cheers, Miles.
Hi Paul,
2006/9/29, Paul Ward pnward@googlemail.com:
Hi All,
I need to find a way of syncing the date on 4 linux pcs and 2 windows pc's using eiter a linux script or windows :( I would rather not use a samba share and get dos to run a if exist statment.
Does anyone have any suggestions?
Anyone know if cygwin allows a Linux box to ssh using a rsa key and run commands?
????
My be the simple and faster way is to elect one or two of your Linux box to run ntpd and to sync time from the internet. Then in the M$Win box uset the NET TIME command to point to the Linux box. HTH
Alessandro Brezzi
I thought of that but apparently we need the date chagne to take effect almost immediatly, well within 30 mins.
If we set the date of our test network fwd 1 year the ntp would take several hours or probably more to catch up.
On 29/09/06, Alessandro Brezzi alessandro.brezzi@gmail.com wrote:
Hi Paul,
2006/9/29, Paul Ward pnward@googlemail.com:
Hi All,
I need to find a way of syncing the date on 4 linux pcs and 2 windows pc's using eiter a linux script or windows :( I would rather not use a samba share and get dos to run a if exist statment.
Does anyone have any suggestions?
Anyone know if cygwin allows a Linux box to ssh using a rsa key and run commands?
????
My be the simple and faster way is to elect one or two of your Linux box to run ntpd and to sync time from the internet. Then in the M$Win box uset the NET TIME command to point to the Linux box. HTH
Alessandro Brezzi
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Paul Ward wrote:
I thought of that but apparently we need the date chagne to take effect almost immediatly, well within 30 mins.
If we set the date of our test network fwd 1 year the ntp would take several hours or probably more to catch up.
It would take a LOT longer then that to catch up ;-) there is also a ntpdate utility on Linux at least to do an automatic sync. Not sure on the cygwin, but it may be worth a shot...then you could cron/batch an ntpdate like command to run every X minutes.
On 29/09/06, Alessandro Brezzi alessandro.brezzi@gmail.com wrote:
Hi Paul,
2006/9/29, Paul Ward pnward@googlemail.com:
Hi All,
I need to find a way of syncing the date on 4 linux pcs and 2 windows pc's using eiter a linux script or windows :( I would rather not use a samba share and get dos to run a if exist
statment.
Does anyone have any suggestions?
Anyone know if cygwin allows a Linux box to ssh using a rsa key and run commands?
????
My be the simple and faster way is to elect one or two of your Linux box to run ntpd and to sync time from the internet. Then in the M$Win box uset the NET TIME command to point to the Linux box. HTH
Alessandro Brezzi
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
On Fri, 29 Sep 2006, Paul Ward wrote:
I thought of that but apparently we need the date chagne to take effect almost immediatly, well within 30 mins.
If we set the date of our test network fwd 1 year the ntp would take several hours or probably more to catch up.
Ntp will give up trying to sync if the clocks are off by more than 5 minutes.
What are you really trying to do??
Regards,
We have a test environment using an oracle database on redhat. During testing we need to wind the clock forward and backwards to ensure that certain actions are carried out correctly on the dates. It is also connected to several citrix servers which also have to have the same time and dates else the applications fail to run.
Currently we are having to do each machine by hand but wish to find a way to automate this action as it is very repetitive.
On 29/09/06, Tom Diehl tdiehl@rogueind.com wrote:
On Fri, 29 Sep 2006, Paul Ward wrote:
I thought of that but apparently we need the date chagne to take effect almost immediatly, well within 30 mins.
If we set the date of our test network fwd 1 year the ntp would take several hours or probably more to catch up.
Ntp will give up trying to sync if the clocks are off by more than 5 minutes.
What are you really trying to do??
Regards,
-- Tom Diehl tdiehl@rogueind.com Spamtrap address mtd123@rogueind.com
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
On Fri, 29 Sep 2006, Paul Ward wrote:
We have a test environment using an oracle database on redhat. During testing we need to wind the clock forward and backwards to ensure that certain actions are carried out correctly on the dates. It is also connected to several citrix servers which also have to have the same time and dates else the applications fail to run.
Currently we are having to do each machine by hand but wish to find a way to automate this action as it is very repetitive.
AAH!! That makes more sense. First thing that pops into my head is write a script that runs the date command from one of the Red Hat machines. Then use ssh to run the command on the rest of the Red Hat boxes.
On the windoze boxes use a login script that syncs the time using the net time command. Even better install cygwin on the windoze boxes and use the same script that you use to set the clocks on the Red Hat boxes to set the clock on the windoze boxes.
If you do it right you should be able to run the script on one of the boxes and have all of the clocks get set to the time you desire.
All of this is of course totally untested and just random thoughts coming out of my brain.
HTH
Regards,
On Fri, 2006-09-29 at 10:45 -0400, Tom Diehl wrote:
I thought of that but apparently we need the date chagne to take effect almost immediatly, well within 30 mins.
If we set the date of our test network fwd 1 year the ntp would take several hours or probably more to catch up.
Ntp will give up trying to sync if the clocks are off by more than 5 minutes.
What are you really trying to do??
The init script that starts ntpd runs ntpdate first for the initial setting at bootup. After other programs (especially cron) are started you normally want to adjust less than a second at a time so you don't miss any timer boundaries.
Alessandro,
My be the simple and faster way is to elect one or two of your Linux box to run ntpd and to sync time from the internet. Then in the M$Win box uset the NET TIME command to point to the Linux box.
NET TIME needs the user to confirm the change, keying "y". Do you know any means of swtiching this confirmation off, so I can use NET TIME from windows login scripts?
[]s, Fernando Lozano
On Fri, 29 Sep 2006, Fernando Lozano wrote:
Alessandro,
My be the simple and faster way is to elect one or two of your Linux box to run ntpd and to sync time from the internet. Then in the M$Win box uset the NET TIME command to point to the Linux box.
NET TIME needs the user to confirm the change, keying "y". Do you know any means of swtiching this confirmation off, so I can use NET TIME from windows login scripts?
net time \foggy /set /y
Season to taste. You should really ask this on a windoze list though.
Regards,
Hi Fernando,
2006/9/29, Tom Diehl tdiehl@rogueind.com:
On Fri, 29 Sep 2006, Fernando Lozano wrote:
Alessandro,
My be the simple and faster way is to elect one or two of your Linux box to run ntpd and to sync time from the internet. Then in the M$Win box uset the NET TIME command to point to the Linux box.
NET TIME needs the user to confirm the change, keying "y". Do you know any means of swtiching this confirmation off, so I can use NET TIME from windows login scripts?
net time \foggy /set /y
Season to taste. You should really ask this on a windoze list though.
Regards,
Tom pointed out the correct form; I'm not a M$Win guru at all and I recalled back in Win2000 no question was posed. Sorry for the delay.
Hi Tom,
NET TIME needs the user to confirm the change, keying "y". Do you know any means of swtiching this confirmation off, so I can use NET TIME from windows login scripts?
net time \foggy /set /y Season to taste. You should really ask this on a windoze list though.
The "/y" switch is undocumented, FYI.
And, if you use Fedora to host a samba server for windows clients, I see no problem asking questions about login scripts samba will provide to those clients. After all, this is sysadmin job also.
[]s, Fernando Lozano
FYI (slight off topic but not entirely):
When Windows (any version) boots, it uses the hardware clock to set its time and it *always* believes this clock to be your local time.
So be careful with your dual boot computers. Linux may set your hardware clock to UTC, which will confuse Windows.
Regards,
Michael Martinez Engineering Manager Tech Computer Center (TCC), Speare Room 128 New Mexico Tech, 801 Leroy Place, Socorro, NM 87801 (505) 835-5388 mikem@nmt.edu http://www.nmt.edu/tcc/ -- http://sftplogging.sourceforge.net http://atftplocalnet.sourceforge.net/
Fernando Lozano wrote:
Hi Tom,
NET TIME needs the user to confirm the change, keying "y". Do you know any means of swtiching this confirmation off, so I can use NET TIME from windows login scripts?
net time \foggy /set /y Season to taste. You should really ask this on a windoze list though.
The "/y" switch is undocumented, FYI.
And, if you use Fedora to host a samba server for windows clients, I see no problem asking questions about login scripts samba will provide to those clients. After all, this is sysadmin job also.
[]s, Fernando Lozano