[opensuse] How to query time with ntpd?
Hello:
I used to use ntpdate to query the time of a given time server occasionally.
'ntpdate -q
On Mon, 2010-02-08 at 12:27 +0100, Istvan Gabor wrote:
Hello:
I used to use ntpdate to query the time of a given time server occasionally. 'ntpdate -q
' showed the difference between the system and server time. Now in openSUSE 11.2 ntpdate is not available anymore, it is replaced by ntpd. How can I use ntpd on command line to check the difference between server and system time without adjusting the latter one (ie. imitate -q option of ntpdate)? I have read the ntpd man page but could not find out myself how to do it.
My 11.2 system has /usr/sbin/ntpdate. Perhaps you were not root when trying to run it? -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
2010. február 8. 12:52 napon Roger Oberholtzer
On Mon, 2010-02-08 at 12:27 +0100, Istvan Gabor wrote:
Hello:
I used to use ntpdate to query the time of a given time server occasionally. 'ntpdate -q ' showed the difference between the system and server time. Now in openSUSE 11.2 ntpdate is not available anymore, it is replaced by ntpd. How can I use ntpd on command line to check the difference between server and system time without adjusting the latter one (ie. imitate -q option of ntpdate)? I have read the ntpd man page but could not find out myself how to do it.
My 11.2 system has /usr/sbin/ntpdate. Perhaps you were not root when trying to run it?
But it is not the ntpdate program: ~> /usr/sbin/ntpdate -q ntp1.ptb.de !!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!! The ntpdate program is deprecated and should not be used any more. To quote the upstream ntp developers: "The functionality ntpdate offered is now provided by the ntpd daemon itself. If you call ntpd with the command line option -q it will retrieve the current time and set it accordingly." If I run the above as root it invokes "ntpd -q ntp1.ptb.de", and sets the system time which I don't want yet. I just would like to see the offset. Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Feb 8, 2010 at 6:42 AM, Istvan Gabor
2010. február 8. 12:52 napon Roger Oberholtzer
írta: On Mon, 2010-02-08 at 12:27 +0100, Istvan Gabor wrote:
Hello:
I used to use ntpdate to query the time of a given time server occasionally. 'ntpdate -q ' showed the difference between the system and server time. Now in openSUSE 11.2 ntpdate is not available anymore, it is replaced by ntpd. How can I use ntpd on command line to check the difference between server and system time without adjusting the latter one (ie. imitate -q option of ntpdate)? I have read the ntpd man page but could not find out myself how to do it.
My 11.2 system has /usr/sbin/ntpdate. Perhaps you were not root when trying to run it?
But it is not the ntpdate program:
~> /usr/sbin/ntpdate -q ntp1.ptb.de !!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!
The ntpdate program is deprecated and should not be used any more. To quote the upstream ntp developers:
"The functionality ntpdate offered is now provided by the ntpd daemon itself. If you call ntpd with the command line option -q it will retrieve the current time and set it accordingly."
If I run the above as root it invokes "ntpd -q ntp1.ptb.de", and sets the system time which I don't want yet. I just would like to see the offset.
Istvan
sntp pool.ntp.org man sntp -- I have seen the future and I'm not in it! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
ntpdate is depricated. Look at the man page for 'sntp'. On 02/08/2010 06:27 AM, Istvan Gabor wrote:
Hello:
I used to use ntpdate to query the time of a given time server occasionally. 'ntpdate -q
' showed the difference between the system and server time. Now in openSUSE 11.2 ntpdate is not available anymore, it is replaced by ntpd. How can I use ntpd on command line to check the difference between server and system time without adjusting the latter one (ie. imitate -q option of ntpdate)? I have read the ntpd man page but could not find out myself how to do it. Thanks, Istvan
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Feb 8, 2010 at 4:57 PM, Istvan Gabor
Hello:
I used to use ntpdate to query the time of a given time server occasionally. 'ntpdate -q
' showed the difference between the system and server time. Now in openSUSE 11.2 ntpdate is not available anymore, it is replaced by ntpd. How can I use ntpd on command line to check the difference between server and system time without adjusting the latter one (ie. imitate -q option of ntpdate)? I have read the ntpd man page but could not find out myself how to do it.
I used to update the kernel clock @ regular intervals via cron, until in one server I found that dovecot would stop. I found that dovecot was quite sensitive to shift in time (as coming from the cron sync's).
From then on I have been using ntpd. I would suggest that you do the same.
Take a look at the output of "# service ntp status" and see if it gives you the information. -- Arun Khan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I have a Minolta QMS magicolor 2350 and can not install it via YAST -> printer -> add YAST CUPS install insists on a PPD file. I downloaded from the vendor the latest driver (KM2350NP.ppd http://printer.konicaminolta.com/support/current_printers/mc2350_sup.htm) and took the original ppd from the product CD (mq2350np.ppd). Neither is accepted by YAST for the detected printer over USB. The printer can process raw PS and PCL files and has been installed that way on older Suse versions. Seems YAST printer config is too packaged and not flexible any more. I see at http://www.novell.com/documentation/suse91/suselinux-adminguide/html/ch05s05... an example for older version. Any advice on how to set up 'raw printer' on Suse 11.1 64 bit? Some manual setup? Thanks for help, Allen Wilkinson ---- Address: Allen Wilkinson (cell) (216) 548-2349 1286 Yellowstone Road (work) (216) 433-2075 Cleveland Heights, OH 44121 USA (INTERNET) aw(at)chaff(dot)biz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello, On Feb 8 22:31 Allen Wilkinson wrote (shortened):
Any advice on how to set up 'raw printer' on Suse 11.1 64 bit?
Enter "raw" in the driver search field to get "Raw Queue [raw]". Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Allen Wilkinson
-
Andrew Bacchi
-
Arun Khan
-
Dog Walker
-
Istvan Gabor
-
Johannes Meixner
-
Roger Oberholtzer