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

Joseph Huber joseph.huber at NOSPAM.web.de
Fri Mar 27 08:49:51 EDT 2009


jbriggs444 at gmail.com wrote:

> On Mar 27, 6:45 am, Rogal <michal.rog... at gmail.com> wrote:
>> On 26 Mar, 22:01, Michael Austin <maus... at firstdbasource.com> wrote:
>>
>> > Rogal wrote:
>> > > Hello!
>>
>> > > I've been using VMS for just a few weeks, so this question may be
>> > > lame :). I need to write DCL script which compares system time drift
>> > > between two nodes in a cluster (VMS 7.3). Is there any method to
>> > > fetch system time from another node? I hoped that F$GETSYI would have
>> > > such capability but no...
>>
>> > > thanks in advance
>>
>> > > MR
>>
>> > Is there some reason you are not using NTP to keep systems in sync?
>>
>> NTP is used there  but I need additional control over this - in case
>> of failure of some kind. As this machine is a GSM SMS Centre where
>> timestamps are critical, I need an alert to be raised when clock skew
>> is more than 15-20 seconds.
> 
> I would probably use DECnet task to task communications for this.
> 

Since OP says he needs the time from within a cluster,
"sysman config show time" will have -as said earlier- a faster response than
a loop of network scripts for each member, and it needs no
programming/installation:

$ PIPE WRITE SYS$OUTPUT "config show time" |  SYSMAN SET ENV/CLuster
>checktime.tmp

Then analyze the output.

I just checked this on a 8 node cluster (with 2 nodes only connected by 10Mb
ethernet): all responses within 1/2 second.

--
Joseph Huber, http://www.huber-joseph.de



More information about the Info-vax mailing list