Operating System - OpenVMS
1826379 Members
4356 Online
109692 Solutions
New Discussion

How can I auto make alpha system time to be the same as windows ?

 
likuair_1
Advisor

How can I auto make alpha system time to be the same as windows ?

I need to make the alpha system time to be the same as windows every day,I know that the Windows system has the function of synchronization with Internet ,does alpha system have this function?
13 REPLIES 13
Heinz W Genhart
Honored Contributor

Re: How can I auto make alpha system time to be the same as windows ?

hi likuair

You can configure NTP on OpenVMS. What Version of OpenVMS do you have?
Normaly you can configure NTP with @SYS$STARTUP:TCPIP$CONFIG. Select Client Components and then NTP. After doing this, you will find the NTP Configuration File TCPIP$NTP.CONF in SYS$SPECIFIC:[TCPIP$NTP] and there you can define Your NTP Servers

Hope that helps

Regards

Geni
Karl Rohwedder
Honored Contributor

Re: How can I auto make alpha system time to be the same as windows ?

Typically the NTP service is used to synchroniize the system with an external time provider. Read up the TCPIP manuals and setup using @SYS$MANAGER:TCPIP$CONFIG. Check your windows system for the address of your time servers.

regards Kalle
likuair_1
Advisor

Re: How can I auto make alpha system time to be the same as windows ?

Dear Heinz Genhart ,

I just checked the TCPIP$CONFIG,in the Client components,i did not found NTP server;is it because i did not install this ?
I found that in Server components there is NTP server ,and i tested that windows synchronized with alpha system ,but did not successful.
Heinz W Genhart
Honored Contributor

Re: How can I auto make alpha system time to be the same as windows ?

Hi Likuair

you are right, you find the NTP configuration part in TCPIP$CONFIG Server Components.

There you have to enable NTP and after this ypu can find a file called SYS$SPECIFIC:[TCPIP$NTP]TCPIP$NTP.TEMPLATE. You have to copy this file to TCPIP$NTP.CONF. In this configuration file (TCPIP$NTP.CONF) you have to specify your NTP Servers (you can find examples within this conf file).

After defining you NTP Servers you have to restart NTP.
(1. @SYS$STARTUP:TCPIP$NTP_SHUTDOWN,
2. @SYS$STARTUP:TCPIP$NTP_STARTUP)

NTP will start synchronizing within the next minutes (Be patient for 5-10 min). You can check this with:

$ NTPQ :== $SYS$SYSTEM:TCPIP$NTPQ
$ NTPQ
ntpq> ass
ind assID status conf reach auth condition last_event cnt
===========================================================
1 42188 9614 yes yes none sys.peer reachable 1
2 42189 9414 yes yes none candidat reachable 1
3 42190 9414 yes yes none candidat reachable 1
ntpq>
ntpq> readvar 42188 ! (42188 is the assID displayed by ntpq

Hope that helps

Regards

Geni
likuair_1
Advisor

Re: How can I auto make alpha system time to be the same as windows ?

Dear Heinz Genhart ,

I just test as what you said,and found some error.
My computer IP address is 192.168.100.62,and the alpha server IP is 192.168.100.201,i wanted the two to be synchronization.
I just modified the TCPIP$NTP.CONF :
peer 192.168.100.62
peer quickly
peer 192.168.100.20

server 192.168.100.62
server 192.168.100.20
server quickly

and restart the server,the result is :
ntpq> ass
ind assID status conf reach auth condition last_event cnt
===========================================================
1 9204 8000 yes yes none reject
2 9205 8000 yes yes none reject
3 9206 8000 yes yes none reject
4 9207 8000 yes yes none reject

what's wrong with me?
Heinz W Genhart
Honored Contributor

Re: How can I auto make alpha system time to be the same as windows ?

Hi Likuair

I think you would be able to configure your OpenVMS machine, that it synchronizes its time with a NTP server. So you do not have to define the address of your OpenVMS machine within TCPIP$NTP.CONF but the address (or Name) of a internal or public NTP server.

What is the address of your ntp server? As I can see from your forums profile, you seems to stay in china. Are there some public NTP servers which you can reach from your machines?

I live in Switzerland and I prefere to use swisstime.ethz.ch as my NTP time provider.

So in my TCPIP$NTP.CONF are lines like this:

server swisstime.ethz.ch prefer
server 130.60.127.148
server 130.60.127.149

So my OpenVMS machine is able to synchronize with one of this 3 NTP servers in Switzerland

Regards

Geni
Jim_McKinney
Honored Contributor

Re: How can I auto make alpha system time to be the same as windows ?

At http://www.pool.ntp.org/zone/asia it says that there are currently 4 active servers in the public pool within China. So, you could just use the same server directive 4 times and round robin through the address list

server cn.pool.ntp.org
server cn.pool.ntp.org
server cn.pool.ntp.org
server cn.pool.ntp.org


fwiw there are now 5 servers registered with the China host name (contrary to what the web pages says):

$ mu nsl cn.pool.ntp.org
Server: LOCALHOST
Address: 127.0.0.1

Non-authoritative answer:
Name: CN.POOL.NTP.ORG
Addresses: 222.73.106.220, 61.129.66.79, 61.153.197.226, 218.21.130.42
218.75.4.130
likuair_1
Advisor

Re: How can I auto make alpha system time to be the same as windows ?

Dear Heinz Genhart and Jim_McKinney ,

I forgot to say that i don't know how to make alpha system connecting to Internet,our alpha system is in our office lan,and the ip is like 192.168.100.*,and our gateway is 192.168.100.1,how can it connect to Internet?

I just try Mr.Jim's server,but also no effection,so what can i do ?
Steven Schweda
Honored Contributor

Re: How can I auto make alpha system time to be the same as windows ?

> [...] our gateway is 192.168.100.1 [...]

Does the VMS system know this?

tcpip show route

Have you configured the DNS (BIND) or Routing
items using TCPIP$CONFIG.COM?

> I forgot to say [...]

Anything else?
likuair_1
Advisor

Re: How can I auto make alpha system time to be the same as windows ?

I know how to config the route ,but don't know how to config the DNS,anybody can tell me ,more detail,thank you!
Steven Schweda
Honored Contributor

Re: How can I auto make alpha system time to be the same as windows ?

> [...] don't know how to config the DNS [...]

And I don't know your domain name or the IP
address(es) of your DNS server(s).
Generally, you can use TCPIP$CONFIG.COM:

1 - Core environment
4 - BIND Resolver

and answer the questions.

There are whole manuals for TCPIP:

http://h71000.www7.hp.com/doc/tcpip56.html

A command like
tcpip show version
should tell you where to go from there.
Jim_McKinney
Honored Contributor

Re: How can I auto make alpha system time to be the same as windows ?

192.168..x.x is a private LAN address that cannot be exposed directly to the internet and known only within your organization. Is your environment NATed or otherwise gatewayed to the internet? If so, you could use those IP addresses revealed by the NSLOOKUP in my prior response as the arguments to your NTP server directives - however; the hostname will likely always exist but those addresses may change.
Steven Schweda
Honored Contributor

Re: How can I auto make alpha system time to be the same as windows ?

> Is your environment NATed or otherwise
> gatewayed to the internet?

> [...] our gateway is 192.168.100.1 [...]

Let's not get carried away with exotic
diversions until we know whether the DNS
resolver can be configured (and made to work
properly).