Using DECnet To Access Remote Files

DECnet file access is very easy to use. It is so well integrated with the OpenVMS file system that you may be only peripherally aware that you are using it. You only need to identify the system on which a file resides and, in some circumstances, to provide a username and password for the remote system.

You will recall the full file specification format presented earlier:

     NODE::DEVICE: [DIR.SUBDIR1.SUBDIR2(...)]NAME.EXT; VERSION 

Notice the first element of a full specification, NODE::. Simply specifying a node in a file specification automatically causes DECnet to perform the file operation. If the remote node requires user authentication, this field takes the form NODE username password::.

Note 

This is a conventional DECnet file specification. For remote file specifications that do not conform to OpenVMS filename rules, see "Foreign File Specifications" below.

Imagine a file existing on the remote DECnet node TAMPA. You may display its contents simply by specifying its location in the file specification, as in the following example:

     $ TYPE TAMPA"username password"::CALENDAR.TXT 

The command above causes DECnet to contact the remote node TAMPA. TAMPA will verify that the username and password you supplied match a valid user on TAMPA. If so, the DECnet software on TAMPA will act on your behalf to access the file. Of course, the username you supply must have permission to access the file exactly as if you had logged in interactively.

Since no disk or directory was specified, the login directory (SYS$LOGIN) of the username you specified will be assumed. If the file exists in some other directory, simply add that information to the file specification:

     $ TYPE TAMPA"username password"::DKB400:[USERS.SMITH]CALENDAR.TXT 

Virtually any DCL command can be used with DECnet file access, just as if the files were local. Here are some examples:

     $ DIRECTORY TAMPA"username password"::DKA300:[SMITH]     $ EDIT TAMPA"username password"::LOGIN.COM     $ COPY TAMPA"username password"::DKA300:[SMITH]*.TXT []*.*     $ DELETE TAMPA"username password"::DKA300:[SMITH]JUNK.DAT;* 



Getting Started with OpenVMS(c) A Guide for New Users
Getting Started with OpenVMS: A Guide for New Users (HP Technologies)
ISBN: 1555582796
EAN: 2147483647
Year: 2005
Pages: 215

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net