Path: utzoo!utgpu!water!watmath!clyde!rutgers!gatech!bloom-beacon!tut.cis.ohio-state.edu!uwmcsd1!ig!agate!ucbvax!ANDREW.CMU.EDU!jj1h+ From: jj1h+@ANDREW.CMU.EDU (Joseph Jackson) Newsgroups: comp.os.vms Subject: RE: Testing for a node Message-ID: Date: 21 Mar 88 17:26:07 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 31 I was recently working on a DCL procedure and needed to see if a node was available enough to let me access various files on its system disk. I recalled this quick and nifty method that a manager once showed me. If a node is there, then you can expect to find this file: nodename::DUA0:[000000]000000.DIR That is, the root directory file on the disk DUA0:. This is the line that I used to assign a "boolean" DCL symbol used as the condition of a later IF statement: Node_down = F$Search ("''Nodename'::DUA0:[000000]000000.dir") .eqs. "" This assumes that every DECnetted machine has a disk called DUA0:. Hopefully, I'm not completely off-base in this respect! Joe Jackson. ;-) ___________________________________________________________ | | | Joseph L. Jackson, Jr. | | Carnegie-Mellon University | | | | Overland: Network: | | 4705 Fifth Ave, Apt.#4M JJ1h+@andrew.cmu.edu | | Pittsburgh, PA 15213-2937 Jackson@laurel.psy.cmu.edu | | (412) 268-5540 JJ1h+%andrew.cmu.edu@CMCCVMA | |___________________________________________________________|