Operating System - OpenVMS
1753284 Members
5323 Online
108792 Solutions
New Discussion юеВ

Re: How do I get the real 'NTP' time?

 
Richard McGorman
New Member

How do I get the real 'NTP' time?

Our test environments are typically not on current time. For that reason the process that would normally call NTP and set the time is not active. We have a need to get the real time on these systems. It looks like O/S's supply something that will get the NTP time and sync the system time with it. We'd like to be able to just ask NTP for the current time. Is that possible in OpenVMS 8.4?
Thx.
4 REPLIES 4
Steven Schweda
Honored Contributor

Re: How do I get the real 'NTP' time?

> [...] OpenVMS 8.4?

Actual output from, say, TCPIP SHOW VERSION
might be more useful.

> [...] get the NTP time [...]

Define "the NTP time".

Around here, there seems to be a
SYS$SYSTEM:TCPIP$NTPDATE.EXE, which might be
suitable. You may need to set a Web search
engine to work to find the how-to on the
thing, but a quick use-any-old-socket (-u)
and don't-really-set-my-clock (-q) run seemed
to look plausible:

ALP $ mcr TCPIP$NTPDATE.EXE -q -u time.apple.com
Looking for host time.apple.com
host found : time.apple.com
server 17.151.16.22, stratum 2, offset 0.777970, delay 0.14645
9 May 16:49:56 ntpdate[538969709]: step time server 17.151.16.22 offset 0.777970 sec


(It's the one time source whose name I can
remember easily.)
Andy Bustamante
Honored Contributor

Re: How do I get the real 'NTP' time?

With a recent version of HP TCPIP
http://h71000.www7.hp.com/doc/83final/6526/6526pro_034.html#ntpdate_sec

@sys$manager:tcpip$define_commands


ntpdate -d -q time.domain.com

-d debug
-q query


NTP services must be stopped for this to execute properly. Drop the -q to set time to the designated time server.

If you don't have time to do it right, when will you have time to do it over? Reach me at first_name + "." + last_name at sysmanager net
Richard McGorman
New Member

Re: How do I get the real 'NTP' time?

That got our programmer on the right track. Thank you very much. :-)
Lucifer Megacruel
Valued Contributor

Re: How do I get the real 'NTP' time?

This article may help you with time zone issues

 

http://h71000.www7.hp.com/openvms/journal/v17/troubleshooting.html

 

 

Truly Evil

Lucifer Megacruel

"To Denouce the Evils of Truth and Love. To cause may hem and destruction and necromancy , Lucifer is here"