Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to enable ntp

 
Joe Gibbens
Occasional Contributor

Trying to enable ntp

I'm trying to enable ntp on an alpha running 7.3-2.

In tcpip$config I see..

Enter configuration option: 12

NTP Configuration

Service is defined in the SYSUAF.
Service is not defined in the
TCPIP$SERVICE database.
Service is not enabled.
Service is stopped.

How do I define the service in TCPIP$SERVICE?
8 REPLIES 8
RBrown_1
Trusted Contributor

Re: Trying to enable ntp

Do you not also get a few menu choices to enable, start, etc, and exit the menu?
Andy Bustamante
Honored Contributor

Re: Trying to enable ntp

In sys$manager:tcpip$config, option 3 Server components, 12 NTP. Option 1 should be enable service. Once this is done, edit the file
sys$specfic:[tcpip$ntp]tcpip$ntp.template. Save the file as tcpip$ntp.conf. You'll need to define your time source(s) in this file. See Chapter 13 of TCPIP Services for OpenVMS Management at http://h71000.www7.hp.com/doc/732final/6526/6526pro_028.html#ntp_chap for the format of this file. Generally you'll just want to add server lines.

Configure your time zone logical and offset with @UTC$TIME_SETUP.COM is this hasn't been done. Make sure you know the offset from GMT for your system's time zone.

You can now start NTP, either with TCPIP$CONFIG or @sys$startup:tcpip$ntp_startup.com.

The system time will float into sync with your time source, providing you're within about 17 minutes.



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
Shriniketan Bhagwat
Trusted Contributor

Re: Trying to enable ntp

Hi,

The option 12 in the Server component has few other options like enable service, enable and start service, and exit. Select option 2 to enable and start the service. Check the attachment for more details. Please refer the below link to HP TCP/IP Services for OpenVMS Installation and Configuration

http://h71000.www7.hp.com/doc/732final/6524/6524pro_003.html

Regards,
Ketan
Shriniketan Bhagwat
Trusted Contributor

Re: Trying to enable ntp

Joe Gibbens
Occasional Contributor

Re: Trying to enable ntp

Trying option 1 in tcpip$config gives me this..


Enter configuration option: 12

NTP Configuration

Service is defined in the SYSUAF.
Service is not defined in the TCPIP$SERVICE database.
Service is not enabled.
Service is stopped.

NTP configuration options:

1 - Enable service on this node

2 - Enable & Start service on this node

[E] - Exit NTP configuration


Enter configuration option: 1
Creating NTP Service Entry
%TCPIP-E-INVRECORD, invalid information
-RMS-F-DUP, duplicate key detected (DUP not set)
>
I found a reference to "duplicate key" but I don't see any service using the same process or port on a show service.
Option 2 gives me this..

Enter configuration option: 12

NTP Configuration

Service is defined in the SYSUAF.
Service is not defined in the TCPIP$SERVICE database.
Service is not enabled.
Service is stopped.

NTP configuration options:

1 - Enable service on this node

2 - Enable & Start service on this node

[E] - Exit NTP configuration

Enter configuration option: 2
Creating NTP Service Entry
%TCPIP-E-INVRECORD, invalid information
-RMS-F-DUP, duplicate key detected (DUP not set)
%TCPIP-I-INFO, image SYS$SYSTEM:TCPIP$NTP.EXE installed
%TCPIP-I-INFO, logical names created
%TCPIP-E-STARTERROR, error starting NTP service
-TCPIP-W-NORECORD, information not found
-RMS-E-RNF, record not found
%TCPIP-E-STARTFAIL, failed to start TCPIP$NTP
-TCPIP-E-ENABLERR, error enabling service
Press Return to continue ...

If I go into ucx to look at the service I can see it in a general list but not in a specific query.

TCPIP> sh service

Service Port Proto Process Address State
..........
ntp 123 UDP DCE$NTP_PROVIDE 0.0.0.0 Disabled

TCPIP> sh service ntp
%TCPIP-W-NORECORD, information not found
-RMS-E-RNF, record not found

Hoff
Honored Contributor

Re: Trying to enable ntp

It appears there may be two timekeeping services active here; both DTSS (maybe DCE) and NTP appear active.

The following is the general sequence for dealing with the unfortunately rather user-hostile VMS and TCP/IP Services and DECnet-Plus DTSS (or DCE?) configuration interfaces here.

Shut down TCP/IP Services.

Shut down DCE.

Shut down DTSS, and then disable subsequent startup via the NET$DISABLE_DTSS logical name. (I don't know if this logical name definition is sufficient to get DTSS (or DCE) and its NTP pieces entirely out of the picture; you may need to dig around further if that logical name doesn't work and doesn't shut down the existing NTP giblets that appear active here.)

Fix the NTP configuration file manually.

Reboot VMS.

The pieces +should+ restart appropriately.
Shriniketan Bhagwat
Trusted Contributor

Re: Trying to enable ntp

Hi,

Typically, these errors are occurring from another service that is using the same service parameter that NTP is attempting to use/create, such as same port or same process.

Example:

$ TCPIP
TCPIP>
TCPIP> show service/process=TCPIP$NTP

Service Port Proto Process Address State

NTP 123 UDP TCPIP$NTP 0.0.0.0 Enabled
TCPIP>
TCPIP> show service/port=123

Service Port Proto Process Address State

NTP 123 UDP TCPIP$NTP 0.0.0.0 Enabled
TCPIP>

Disabling the existing service and configuring the service again should solve the problem.

Regards,
Ketan
Joe Gibbens
Occasional Contributor

Re: Trying to enable ntp

Thanks for all the help. I'm going to have to table this problem for now and come back to it when time allows.