[Info-vax] How to read system time from cluster node

VAXman- at SendSpamHere.ORG VAXman- at SendSpamHere.ORG
Thu Mar 26 09:51:01 EDT 2009


In article <gqfodq$ffl$1 at south.jnrs.ja.net>, "Richard Brodie" <R.Brodie at rl.ac.uk> writes:
>
><BaxterD at tessco.com> wrote in message 
>news:b5809c64-805f-4749-b209-abc03af0203f at e38g2000yqa.googlegroups.com...
>
>> I just noticed that you want to do this in a script.    This makes the
>> problem much more complex.    You will probably have to arrange for
>> your script to put the output from SYSMAN into a file, and then parse
>> the file to get to the actual information.
>
>CONFIG SHOW TIME/OUT=FILENAME is probably better.
>Come to think of it, I would do a CONFIG SET TIME instead,
>then the answer to the original question would be 'negligible'.
>
>The other approach would be run NTP, and use NTP queries
>to measure the clock skew. 
>
>


Put a file such as the following on each node:

TIMESERVICE.COM is:

$ OPEN/APPEND NET SYS$NET
$ WRITE NET "''F$fao("!6AS: !%D",F$getsyi("NODENAME"),0)'"
$ CLOSE NET
$ EXIT

If you don't want the nodename, 

$ WRITE NET "''F$fao("!%D",0)'"



Define this as a TCP/IP Service

$ tcpip show service/full timeservice
 
Service: TIMESERVICE
                           State:     Enabled
Port:             2112     Protocol:  TCP             Address:  0.0.0.0
Inactivity:          5     User_name: SYSTEM          Process:  TIMESERVICE
Limit:               1     Active:        0           Peak:         1
 
File:         SYS$MANAGER:TIMESERVICE.COM
Flags:        Listen
 
Socket Opts:  Rcheck Scheck
 Receive:            0     Send:               0
 
Log Opts:     None
 File:        not defined
 
Security
 Reject msg:  not defined
 Accept host: 0.0.0.0
 Accept netw: 0.0.0.0

Then, in your script, $ TELNET/LOG_FILE={time.txt} host 2112

THen do what you need with the info in the {time.txt] file.

-- 
VAXman- A Bored Certified VMS Kernel Mode Hacker    VAXman(at)TMESIS(dot)ORG

  http://www.quirkfactory.com/popart/asskey/eqn2.png
  
  "Well my son, life is like a beanstalk, isn't it?"



More information about the Info-vax mailing list