1827808 Members
2252 Online
109969 Solutions
New Discussion

NTP on OpenVMS?

 
Scott Frye_1
Super Advisor

NTP on OpenVMS?

In our Unix world, we can set each server to do an NTP sync to a server so all times are in sync... Is there such a thing in VMS? If so, can someone help me in setting this up for VMS?

Thanks

Scott
32 REPLIES 32
Dale A. Marcy
Trusted Contributor

Re: NTP on OpenVMS?

Yes, NTP can be set up in VMS, the how depends on your IP stack. I am guessing that you have TCPIP from HP, but there are at least 2 other stacks available from Process (Multinet and TCPware). We use Multinet here. To determine if you have multinet, you can type the following command:

$ multinet show/version

(can be shortened to mu sho/ver)

If you do not have multinet, it will respond with %DCL-W-IVVERB, unrecognized command verb - check validity and spelling

If you do have multinet, it will respond with the version of multinet you have installed.
Dale A. Marcy
Trusted Contributor

Re: NTP on OpenVMS?

If you do have TCPIP from HP, here is a link to a previous question about configuring NTP:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=752540
Antoniov.
Honored Contributor

Re: NTP on OpenVMS?

Scott,
welcome in VMS world.
I hope you like this operating system.
Now some tips.
In vms you can execute any command file with symbol @ before file name.
You want to activate NTP server, that's a component of TCP/IP suite; execute TCP/IP configurator with
$ @SYS$STARTUP:TCPIP$CONFIG
where,
$ symbol means shell level (you don't type it)
@ symbol means you want execute command file
SYS$STARTUP: is a logical name where file is located; it is like a mapped file of window
TCPIP$CONFIG is file name; in VMS dollar is no special character (doesn't mean variable transaltion like unix)

I hope read you again.

Antonio Vigliotti
Antonio Maria Vigliotti
Scott Frye_1
Super Advisor

Re: NTP on OpenVMS?

OK, I just ran TCPIP$CONFIG and I can see where NTP is not enabled on this node. What I don't see is where I tell in the IP address of the server it needs to sync with. Can anyone give me pointers on that?

Thanks for the great info! I love the HP forum!

Scott
Scott Frye_1
Super Advisor

Re: NTP on OpenVMS?

Also, to answer a previous question, we are not using multinet (not anymore). We just migrated off it about 8 months ago.

Thanks

Scott
Martin Vorlaender
Honored Contributor

Re: NTP on OpenVMS?

Scott,

>>>
What I don't see is where I tell in the IP address of the server it needs to sync with. <<<

TCP/IP Services (nee UCX) uses an NTP.CONF file. See the docs at http://h71000.www7.hp.com/doc/732final/6526/6526pro_028.html#ntp_config for details.

HTH,
Martin
Scott Frye_1
Super Advisor

Re: NTP on OpenVMS?

I created my conf file with the same settings we had on our testing node. I then enabled and started the NTP. Now when I do a show system /process=NTP* I don't see it running.

Antoniov.
Honored Contributor

Re: NTP on OpenVMS?

Scott,
NTP process name is like TCPIP$NTP_1 so you could issue
$ SHOW SYS/PROC=*NTP*
to see it.

Antonio Vigliotti
Antonio Maria Vigliotti
Antoniov.
Honored Contributor

Re: NTP on OpenVMS?

Again,
the right way to see active tcp/ip services is
$ TCPIP SHOW SERVICE
or else
$ TCPIP SHOW SERVICE NTP /FULL

Antonio Vigliotti

Antonio Maria Vigliotti
Volker Halle
Honored Contributor

Re: NTP on OpenVMS?

Scott,

if the TCPIP$NTP_1 process does not show up after starting the NTP service, consdier to check the logfile: SYS$SYSROOT:[TCPIP$NTP]TCPIP$NTP_RUN.LOG for possible error messages.

Volker.
Scott Frye_1
Super Advisor

Re: NTP on OpenVMS?

I was lazy in my typing, I did do a 'show system /proc=TCPIP$NTP_1 and nothing was running.

I will check the logs pointed out here.

Thanks!!
Antoniov.
Honored Contributor

Re: NTP on OpenVMS?

Scott,
you have to learn the right way to find what you need.
For any tcp/ip service the best way is:
$ TCPIP SHOW SERVICE /FULL
in this case
$ TCPIP SHOW SERVICE NTP /FULL
You can see process name, command file to execute, log file (that is SYS$SPECIFIC:[TCPIP$NTP]TCPIP$NTP_RUN.LOG) and some other information.
SYS$SPECIFIC usually is the same of SYS$ROOT as posted by Volker.

Antonio Vigliotti
Antonio Maria Vigliotti
Scott Frye_1
Super Advisor

Re: NTP on OpenVMS?

Thanks Antonio...
I entered @SYS$STARTUP:TCPIP$CONFIG. I took server options then ntp then start and enable ntp. then I ran your command TCPIP SHOW SERVICE NTP /FULL and got this output.

Service: NTP
State: Disabled
Port: 123 Protocol: UDP Address: 0.0.0.0
User_name: not defined Process: TCPIP$NTP

Scott Frye_1
Super Advisor

Re: NTP on OpenVMS?

I tried to start NTP but it doesn't appear to be running.

8060SF03 HNAC$ @SYS$STARTUP:TCPIP$NTP_STARTUP.COM
%TCPIP-I-INFO, image SYS$SYSTEM:TCPIP$NTP.EXE installed
%TCPIP-I-INFO, logical names created
%TCPIP-I-INFO, service enabled
%TCPIP-S-STARTDONE, TCPIP$NTP startup completed
8060SF03 HNAC$ TCPIP SHOW SERVICE

Service Port Proto Process Address State

FTP 21 TCP TCPIP$FTP 0.0.0.0 Enabled
MQ_PROD 1414 TCP MQ_PROD 0.0.0.0 Enabled
NTP 123 UDP TCPIP$NTP 0.0.0.0 Disabled
REXEC 512 TCP TCPIP$REXEC 0.0.0.0 Disabled
RLOGIN 513 TCP not defined 0.0.0.0 Disabled
RSH 514 TCP TCPIP$RSH 0.0.0.0 Disabled
SMTP 25 TCP TCPIP$SMTP 0.0.0.0 Disabled
TELNET 23 TCP not defined 0.0.0.0 Enabled
TFTP 69 UDP TCPIP$TFTP 0.0.0.0 Disabled
Robert_Boyd
Respected Contributor

Re: NTP on OpenVMS?

It looks as if you have not set up your NTP config file.

Please check to see if you have a file SYS$SYSROOT:[TCPIP$NTP]TCPIP$NTP.CONF

If not then you will want to edit the TCIP$NTP.TEMPLATE in the same directory to suit your needs and save it to TCPIP$NTP.CONF

Presumably you will want to replicate the kinds of settings you use on your other systems.

Robert
Master you were right about 1 thing -- the negotiations were SHORT!
Volker Halle
Honored Contributor

Re: NTP on OpenVMS?

Scott,

the NTP service logfile is: SYS$SPECIFIC:[TCPIP$NTP]TCPIP$NTP_RUN.LOG - please check for errors.

Volker.
Antoniov.
Honored Contributor

Re: NTP on OpenVMS?

Hi Scott,
your NTP service can't start. This checklist can help you.
1) Go into NTP directory; type
$ SET DEF SYS$SPECIFIC:[TCPIP$NTP]
2) Look at this directory; type
$ DIR ;

Directory SYS$SPECIFIC:[TCPIP$NTP]

LOGIN.COM;1
TCPIP$NTP.CONF;4
TCPIP$NTP.DRIFT;77
TCPIP$NTP.TEMPLATE;
TCPIP$NTP_RUN.LOG;55

Total of 5 files, 20 blocks.

3) May be you don't see TCPIP$NTP.CONF; if you don't see it do:
$ COPY TCPIP$NTP.TEMPLATE TCPIP$NTP.CONF
4) Look at log file; type
$ TYPE TCPIP$NTP_RUN.LOG
If you have some dubt about information, attach it and we can help you.

At now I have no any idea about your trouble.

Antonio Vigliotti
Antonio Maria Vigliotti
Scott Frye_1
Super Advisor

Re: NTP on OpenVMS?

Here are the files:

8060SF03 HNAC$ set def sys$specific:[tcpip$ntp]
8060SF03 HNAC$ dir

Directory SYS$SPECIFIC:[TCPIP$NTP]

LOGIN.COM;1 1/9 4-AUG-2005 09:11:52.48 4-AUG-2005 09:11:52.49
TCPIP$NTP.CONF;4 6/9 10-AUG-2005 15:41:54.28 10-AUG-2005 15:41:54.33
TCPIP$NTP.CONF;3 6/9 4-AUG-2005 11:01:03.98 4-AUG-2005 11:01:03.99
TCPIP$NTP.CONF;2 6/9 4-AUG-2005 10:40:24.06 4-AUG-2005 10:40:24.07
TCPIP$NTP.TEMPLATE;2 6/9 4-AUG-2005 10:35:16.41 4-AUG-2005 10:35:16.43
TCPIP$NTP.TEMPLATE;1 6/9 4-AUG-2005 09:11:52.55 4-AUG-2005 09:11:52.57

Total of 6 files, 31/54 blocks.

Also, I'm attaching my conf file


Andy Bustamante
Honored Contributor

Re: NTP on OpenVMS?


Your config file came out with carrage return/line feeds stripped. Type this out on the VMS system, make sure this isn't 1 line.

type sys$specific:[tcpip$ntp]TCPIP$NTP.CONF

Assuming it was scrambled in the transfer,

You'll want to comment out the sample peer entries. "SERVER host" should be added.

Execute "@sys$manager:tcpip$define_commands" This will make NTPDATE available allowing you to make sure your VMS system is getting properly from server. NTPDATE -h will show the UNIX expected options.

Other thing to check is your time zone configuration. "SHOW LOGICAL *TIME*" and look for SYS$LOCALTIME, SYS$TIMEZONE_DAYLIGHT_SAVING, SYS$TIMEZONE_DIFFERENTIAL. These are set with SYS$MANAGER:@UTC$TIME_SETUP.COM

Recent verions of VMS will make the time zone change automatically if you elect to configure this although patches are required.


Andy
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
Scott Frye_1
Super Advisor

Re: NTP on OpenVMS?

Yes, my config file lost its CR on the FTP.

I looked at another node that has the working properly and copied the config file as is. It has two entries in the peer section just as I do.

I did the show logical *time*
8060SF03 HNAC$ show logical *time*

(LNM$PROCESS_TABLE)

(LNM$JOB_81D9E5C0)

(LNM$GROUP_000501)

(LNM$SYSTEM_TABLE)

"PATROL$POLLTIME_HNAC3181" = "<3181>00:10:00"
"SYS$DST_DELTA_TIME" = "ffff73cfa1a67b63"
"SYS$LOCALTIME" = "SYS$SYSROOT:[SYS$ZONEINFO.SYSTEM.US]EAST-INDIANA."
"SYS$TIMEZONE_DAYLIGHT_SAVING" = "0"
"SYS$TIMEZONE_DIFFERENTIAL" = "-18000"
"SYS$TIMEZONE_NAME" = "EST"
"SYS$TIMEZONE_RULE" = "EST5"
"TCPIP$BIND_TIMEOUT" = "...."
"TCPIP$TELNETSYM_IDLE_TIMEOUT" = "0 00:00:05.00"

(LNM$SYSCLUSTER_TABLE)

(DECW$LOGICAL_NAMES)
Antoniov.
Honored Contributor

Re: NTP on OpenVMS?

Scott,
may you attach log file?

Antonio Vigliotti
Antonio Maria Vigliotti
Scott Frye_1
Super Advisor

Re: NTP on OpenVMS?

There is no log file.
Antoniov.
Honored Contributor

Re: NTP on OpenVMS?

Scott,
missed log file is very interesting.
Even without conf file, my NTP create a log file.
So, why your server NTP can't create log file (and can't start)?
At first glance, there is some installation mismatch.
Try follow checklist:
1) You must find a user TCPIP$NTP in sysuaf. This user must be like this
Username: TCPIP$NTP Owner: TCPIP$NTP
Account: TCPIP UIC: [3655,1] ([TCPIP$AUX,TCPIP$N)
CLI: DCL Tables: DCLTABLES
Default: SYS$SPECIFIC:[TCPIP$NTP]
LGICMD: LOGIN
Flags: Restricted
Primary days: Mon Tue Wed Thu Fri
Secondary days: Sat Sun
Primary 000000000011111111112222 Secondary 000000000011111111112222
Day Hours 012345678901234567890123 Day Hours 012345678901234567890123
Network: ##### Full access ###### ##### Full access ######
Batch: ----- No access ------ ----- No access ------
Local: ----- No access ------ ----- No access ------
Dialup: ----- No access ------ ----- No access ------
Remote: ----- No access ------ ----- No access ------
2) In SYS$SPECIFIC:[TCPIP$NTP] file LOGIN.COM must be almost empty.
3) Check for SYLOGIN.COM if lock network session.

Antonio Vigliotti
Antonio Maria Vigliotti
Scott Frye_1
Super Advisor

Re: NTP on OpenVMS?

Here is my user:

Username: TCPIP$NTP Owner: TCPIP$NTP
Account: TCPIP UIC: [3655,5] ([TCPIP$AUX,TCPIP$NTP])
CLI: DCL Tables: DCLTABLES
Default: SYS$SPECIFIC:[TCPIP$NTP]
LGICMD: LOGIN
Flags: Restricted
Primary days: Mon Tue Wed Thu Fri
Secondary days: Sat Sun
Primary 000000000011111111112222 Secondary 000000000011111111112222
Day Hours 012345678901234567890123 Day Hours 012345678901234567890123
Network: ##### Full access ###### ##### Full access ######
Batch: ----- No access ------ ----- No access ------
Local: ----- No access ------ ----- No access ------
Dialup: ----- No access ------ ----- No access ------
Remote: ----- No access ------ ----- No access ------

My login.com file has one line in it.
8060SF03 HNAC$ type login.com
$! login.com for Compaq TCP/IP Services for OpenVMS auxiliary service