On Tue, 24 Oct 2000 07:33:52 +0600, you wrote:
> Hi all,
>
> I have a server standing in a remote office
> and I need to adjust the time on that machine.
>
> How do I do that remotely,
> without going to the office and rebooting,
> going to bios
> and setting time.
>
> The machine is a standard P I 133.
> I can telnet to the machine
> and I run Redhat 6.0
>
> Thanks in advance
> Jacob
Telnet or ssh (preferable since you will need to change to root) to your machine. Use
the date command to change the time and then set it into the system with the hwclock
command.
Do a man on date to get the specifics of that. Should be simple like date -s hh.mm.ss
The full command for hwclock is: hwclock --systohc
Now here is the way I do it. I run a little script when I need to that grabs the time
off a time server and then sets it to the hardware. The script is really nothing more
than two commands:
#!/bin/sh
netdate 128.118.25.3
hwclock --systohc
For systems that are not very time critical this works well. If you have more time
sensitive software or needs you should set up xntp. It will automatically update your
clock and keep it on time. It's really very easy to set up.
Good luck
-DRW
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Darren R. Weber
[EMAIL PROTECTED]
AIM: TuxUser
ICQ#: 2849193
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list