Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Time update
#1
I'm normally used to using FreeBSD, which has the ntpdate command to update the server's time to match a time server. However, that command doesn't exist on redhat. What's the equivalent? I badly need to update the time on my webserver.
Reply
#2

use ntpd

 

do a man ntpd for more info

 

more info here

 

[/url][url=http://www.siliconvalleyccie.com/linux-hn/ntp.htm]http://www.siliconvalleyccie.com/linux-hn/ntp.htm

 

cheers

 

anyweb

Reply
#3

[root@web root]# man ntpd

No manual entry for ntpd

[root@web root]# ntpd now.okstate.edu

bash: ntpd: command not found

[root@web root]#

Reply
#4

are you logged in as root using su - ?

 

thats

 

su -

 

what version of redhat are you using ?

 

check poackage manager for installing the ntpd rpm

 

or do a locate ntpd

 

cheers

Reply
#5

[root@web etc]# su -

[root@web root]# ntpd

bash: ntpd: command not found

[root@web root]# locate ntpd

[root@web root]# uname -a

Linux web.snagged.net 2.4.18-27.7.x #1 Fri Mar 14 06:44:53 EST 2003 i686 unknown

 

i think its redhat 9.0

 

where would i find the package manager?

Reply
#6

try

 

up2date ntpd

 

or if you have a gui (X) click on the red hat, system settings/add remove applications

 

that will bring up package manager

 

cat /etc/redhat-release will tell you what version of redhat you are using

 

cheers

 

anyweb

Reply
#7

[root@web root]# up2date ntpd

Error communicating with server. The message was:

SSL_connect error

You have new mail in /var/spool/mail/root

[root@web root]#

 

 

[root@web root]# cat /etc/redhat-release

Red Hat Linux release 7.2 (Enigma)

[root@web root]#

 

 

I can't do a GUI because i'm SSH'd into a remote location

Reply
#8

ok you re using redhat 7.2

 

you'll need to find the rpm for ntpd

 

the ssl error is becuase you need to update your up2date ssl certificate

 

more info on [/url]http://rhn.redhat.com

 

the rpms for redhat 7.2 are at

 

[url=http://ftp.redhat.com/pub/redhat/linux/7.2...86/RedHat/RPMS/]http://ftp.redhat.com/pub/redhat/linux/7.2...86/RedHat/RPMS/

 

cheers

Reply
#9

I updated the up2date SSL certificate, then tried to up2date ntpd.

 

 

[root@web root]# up2date ntpd

 

Fetching package list for channel: redhat-linux-i386-7.2...

########################################

 

Fetching Obsoletes list for channel: redhat-linux-i386-7.2...

########################################

 

Fetching rpm headers...

None of the packages you requested were found, or they are already updated.

[root@web root]# nptd

bash: nptd: command not found

Reply
#10
get the rpm here - [/url][url=http://ftp.redhat.com/pub/redhat/linux/7.2...86/RedHat/RPMS/]http://ftp.redhat.com/pub/redhat/linux/7.2...86/RedHat/RPMS/
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)