HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

DTSS

 
SOLVED
Go to solution
djk
Advisor

DTSS

How do I determine if DTSS is running?

4 REPLIES
Steven Schweda
Honored Contributor

Re: DTSS

Perhaps:

show system /process = *dtss*

Somewhat crude:

ALP $ set time = 15:03
%SET-E-NOTSET, error modifying time
-SYSTEM-E-TIMENOTSET, time service enabled; enter a time service command to update the time

There are probably good ways, too.
H_Bachner
Regular Advisor

Re: DTSS

$ MC NCL SHOW DTSS STATE
should show you whether DTSS is defined at all (if not, you get an "entity class not supported" or similar message), and if, whether it is enabled (running).

This is at least true for the various incarnations of DECnet Phase V, DECnet/OSI and DECnet-Plus (different names for the same product across several versions). If you are using DECnet Phase 5 Extensions on (Open)VMS/VAX 5.x, I'm not sure how you'd exactly check for DTSS presence. Scanning SHOW SYSTEM output (as the previous post suggests) would probably help.

HTH,
Hans.
John Gillings
Honored Contributor
Solution

Re: DTSS

There are a number of logical names defined when DTSS is running. I have code that determines if DTSS is running by the existence of logical name DTSS$_SERVICE_ACTIVE in the system logical name table.

$ IF F$TRNLNM("DTSS$_SERVICE_ACTIVE").NES.""
$ THEN
...

You can find other useful things like the host it's synching from. See $ SHOW LOGICAL DTSS$*

You could also look for the existence of DTSS processes.

$ ctx = ""
$ temp = F$CONTEXT ("PROCESS", ctx, "PRCNAM", "DTSS$*","EQL")
$ IF F$PID(ctx).NES."" THEN (at least one DTSS$ process exists)

when finished, clean up context

$ IF F$TYPE(ctx) .eqs. "PROCESS_CONTEXT" THEN temp = F$CONTEXT ("PROCESS", ctx, "CANCEL")

A crucible of informative mistakes
djk
Advisor

Re: DTSS

Good recommendations from all. Much thanks.