T.R | Title | User | Personal Name | Date | Lines |
---|
45.1 | Try try again
| DECWIN::FISHER | Burns Fisher 381-1466, ZKO3-4/W23 | Mon Jan 30 1989 17:19 | 11 |
| Are you talking about system startup time and waiting for DECwindows to get
started? YOu could problably look at the DECW$SERVER process and wait for it
to go into HIB, but that is not very reliable. Besides, it does not tell you
if the user has logged in, and it does not work on a node that is remote from
the server.
Why not just try to connect? If you succeed fine; if you fail, well try
again. This is what loginout does.
Burns
|
45.2 | Why I want this | LESLIE::LESLIE | Andy ��� Leslie, CSSE / VMS | Tue Jan 31 1989 01:05 | 6 |
| I discovered that DW takes much longer to start up of my batch job to
set known nods all was running. So I wanted to waut until DWS had
started before pressing ahead.
Andy
|
45.3 | Just don't tell VMS... | WJG::GUINEAU | | Wed Feb 01 1989 17:23 | 5 |
| Take the SET KNOWN NODES ALL out of STARTNET.COM and submit it as a batch job
with a /AFTER="+0-00:10:00)".
John
|
45.4 | This works for us | AKO455::SHEPRO | B-I-Biky-bi B-O-Bo | Thu Feb 02 1989 08:18 | 39 |
| When upgrading to VMS 5.0-2 or 5.1 (I forgot which), we were told
by various sources not to fold, spindle, or mutilate STARTNET.COM
Submit or start a detached process of STARTNET.COM and while it
is running, check for the existance of a system logical name, SYS$NODE.
If it exists, for all intends and purposes, DECNET has started and
the SET KNOWN NODES ALL is probably running by this time.
$!
$!
$ NETNODE_UPDATE :== SYS$MANAGER:NETNODE_UPDATE.COM
$ IF F$SEARCH(NETNODE_UPDATE) .NES. "" THEN @'NETNODE_UPDATE'
$ RUN/DETACH SYS$SYSTEM:LOGINOUT.EXE /PROCESS=STARTNET -
/INPUT=SYS$MANAGER:STARTNET.COM/OUTPUT=SYS$MANAGER:STARTNET.LOG
$ X = 0
$CHECK_FOR_SYS$NODE:
$ WRITE SYS$OUTPUT "WAITING FOR DECNET TO START....."
$ WAIT 00:00:10
$ X = X + 1
$ IF X .EQ. 30 THEN GOTO NET_PROBLEM
$ NET_STARTED = F$TRNLMN("SYS$NODE")
$ IF NET_STARTED .EQS. "" THEN GOTO CHECK_FOR_SYS$NODE
$ @SYS$STARTUP:LTLOAD.COM
$!
$!
$!
$! start layered products here
$!
$!
$ EXIT
$!
$!
$NET_PROBLEM:
$ MAIL/SUBJECT="Problem starting Decnet on ''NODE'" NL: SYSTEM
$ REPLY/BELL "Problem starting Decnet on ''NODE'"
$ EXIT
|
45.5 | The correct way is to wait for the NET: device to show up.... | IO::MCCARTNEY | James T. McCartney III - DTN 381-2244 ZK02-2/N24 | Thu Feb 02 1989 18:01 | 18 |
| The code that I lifted from STARTNET.COM to wait for the network is:
$ !
$ ! Make sure NETACP is finished initializing before continuing.
$ !
$ WAIT_FOR_NETACP_COUNTER = 0
$WAIT_FOR_NETACP:
$ IF .NOT. F$GETDVI("_NET0","EXISTS") THEN GOTO LOADNET_FAILURE
$ IF F$GETDVI("_NET0","MNT") THEN GOTO NETACP_INITIALIZED
$ WAIT_FOR_NETACP_COUNTER = WAIT_FOR_NETACP_COUNTER + 1
$ IF WAIT_FOR_NETACP_COUNTER .EQ. 120 THEN GOTO LOADNET_FAILURE
$ WAIT 0:0:1
$ GOTO WAIT_FOR_NETACP
$NETACP_INITIALIZED:
$ !
$ ! Do what ever you were waiting for the network to get started for....
$ !
|