home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / zines / phrack2 / phrack37.007 < prev    next >
Encoding:
Text File  |  2003-06-11  |  25.3 KB  |  589 lines

  1.  
  2.       <:=--=:><:=--=:><:=--=:><:=--=:>\|/<:=--=:><:=--=:><:=--=:><:=--=:>
  3.       <:=--=:>                                                   <:=--=:>
  4.       <:=--=:>    >>>>>=-*  Users Guide to VAX/VMS  *-=<<<<<     <:=--=:>
  5.       <:=--=:>                                                   <:=--=:>
  6.       <:=--=:>                   Part II of III                  <:=--=:>
  7.       <:=--=:>                                                   <:=--=:>
  8.       <:=--=:>            Part C: Using the Utilities            <:=--=:>
  9.       <:=--=:>         Part D: Advanced Guide to VAX/VMS         <:=--=:>
  10.       <:=--=:>                                                   <:=--=:>
  11.       <:=--=:>                    By Black Kat                   <:=--=:>
  12.       <:=--=:>                                                   <:=--=:>
  13.       <:=--=:><:=--=:><:=--=:><:=--=:>/|\<:=--=:><:=--=:><:=--=:><:=--=:>
  14.  
  15.  Index
  16.  ~~~~~
  17. Part C contains information on the following topics:
  18.  
  19.    o  Help Utility       o  Phone Utility
  20.    o  Backup Utility     o  Library Utility
  21.    o  Mail Utility       o  Sort Utility
  22.  
  23. Part D contains information on the following topics:
  24.  
  25.    o  Subprocesses               o  DECnet
  26.    o  Attaching to a Process     o  Proxy Access
  27.    o  Interrupting a Process     o  Task-to-Task Communication
  28.    o  Batch Processing           o  Remote Printing
  29.    o  Controlling Batch Jobs     o  VAXclusters
  30.  
  31.                      <:=- Part C : Using the Utilities -=:>
  32.  
  33.  Help Utility
  34.  ~~~~~~~~~~~~
  35. The VAX/VMS Help Utility is almost like having a DCL dictionary online.  It
  36. includes an explanation of each DCL command and can optionally explain valid
  37. command parameters.  Help also provides information about other VAX/VMS
  38. utilities and system services.
  39.  
  40. There are two modes available for the help utility.  If you know the DCL
  41. command, utility or system service you want more information about, use direct
  42. mode.  If you don't know the command, use query mode.  Query mode can also be
  43. used to see which other commands and other subjects are referenced by the help
  44. utility.
  45.  
  46. To use query mode, just type HELP <enter> at the DCL command level.  Help will
  47. display an alphabetical listing of all DCL commands and other topics for which
  48. information is available and you will be prompted with:  "Topic?"
  49.  
  50. You can exit Help by pressing <enter> or <Ctrl-C> or <Ctrl-Z> or get
  51. information by typing in the command or subject name followed by <enter>.  When
  52. you request information on a command, Help will display details including how
  53. the command is invoked, what it does and the default values.  Most topics will
  54. have subtopics available which will be listed alphabetically followed by the
  55. prompt:  "COMMAND-NAME Subtopic?"
  56.  
  57. You can select subtopic help or press <enter> to return to the "Topic?" prompt.
  58. If you want to see all the information available on a command, type in "HELP
  59. command_name ..." or "HELP command_name *".
  60.  
  61. To use direct mode, enter HELP topic_name <enter>.  This will bypass the
  62. listing of available topic.  Additionally, you can enter a valid DCL command
  63. with or without qualifiers in this mode.  For example, to get information on
  64. the DCL SET command /TERMINAL qualifier, you could enter $ HELP SET TERMINAL.
  65. The help utility will provide information on the SET/TERMINAL command and
  66. prompt you for another subtopic since information on other qualifiers is
  67. available.
  68.  
  69. For more information and details on the help utility, you can use:
  70.    $ HELP HINTS   or   $ HELP HELP/INSTRUCTIONS.
  71.  
  72.  
  73.  Backup Utility
  74.  ~~~~~~~~~~~~~~
  75. The backup utility is usually used by system managers to back up system disks,
  76. insuring a recent copy of data should the system disks become unreliable.
  77. Generally, the system disks are backed up to magnetic tape or removable disk
  78. packs, which are then removed and stored in a save location offline.  Users may
  79. use the backup utility on files in their own accounts to make copies for safe
  80. keeping, transferring to another system, or for offline storage.
  81.  
  82. To use the backup utility, you have to decide what you want to back up, and how
  83. you want it done.  You have the following options:
  84.  
  85. Selective   :  Files are backed up according to a specified criteria.
  86.                Qualifiers (e.g. /DATE) and file specifications (e.g. *.TXT)
  87.                are used for specifying these criteria.
  88. File by File:  Individual files or entire file directories are backed up.
  89.                Directories are created when copying, unlike the copy command.
  90. Incremental :  Saves file created since the most recent backup.  Usually
  91.                performed by system operators.
  92. Physical    :  An exact duplicate of a volume is saved.  All file structures
  93.                are ignored and the copy is a bit-by-bit duplicate.
  94. Image       :  A functionally equivalent copy of the original volume is
  95.                created.  Typically done on bootable volumes and system disks.
  96.  
  97.  
  98. To back up files to a subdirectory:  $ BACKUP F1.TXT,F2.TXT,*.DAT [BY.JUNK]
  99.  
  100. To copy a directory tree:  $ BACKUP [dir...]file_spec [dir...]file_spec
  101.  
  102. To copy disk volumes:  $ MOUNT/FOREIGN DJA1:
  103.                        $ BACKUP/IMAGE DUA2: DUA1:
  104.  
  105. To copy to tape:       $ INITIALIXE MUA0: TAPE  (the first time its used)
  106.                        $ MOUNT/FOREIGH MUA0:
  107.                           MOUNT-I-MOUNTED, TAPE mounted on __MUA0:
  108.                        $ BACKUP [.DRV]MV_DYDRV.MAR MUA0:[]MV_DYDRV.MAR
  109.  
  110. A save set is a single file containing multiple files that have been backed up.
  111. To make a save set:
  112.  
  113.                        $ MOUNT/FOREIGN MUA0:
  114.                           MOUNT-I-MOUNTED, TAPE mounted on __MUA0:
  115.                        $ BACKUP DUB1:[BY.JUNK]*.*;* MUA0:08JUN.BAK/SAVE_SET
  116.  
  117. A single file can be retrieved from a save set by using the /SELECT qualifier.
  118. For example, to restore the file LOGIN.COM from the previously backed up save
  119. set:
  120.  
  121.                   $ MOUNT/FOREIGH MUA0:
  122.                      MOUNT-I-MOUNTED, TAPE mounted on __MUA0:
  123.                   $ BACKUP
  124.                  __From: MUA0:08:JUN.BAK/SAVE_SET/SELECT=[BY.JUNK]LOGIN.COM
  125.                  __To: *.*
  126.  
  127. Listing a save set:  $ MOUNT/FOREIGN MUA0:
  128.                         MOUNT-I-MOUNTED, TAPE mounted on __MUA0:
  129.                      $ BACKUP/LIST MUA0:08JUN.BAK/SAVE_SET
  130.  
  131. Selective backups:   $ BACKUP *.*/SINCE=12-APR-1988 MUA0:08JUN.BAK/SAVE_SET
  132.                      $ BACKUP
  133.                      __From: *.*/SINCE=12-APR-1988/EXCLUDE=[*.TMP,*.LOG]
  134.                      __To: MUA0:08JUN.BAK/SAVE_SET
  135.  
  136.  
  137. The following is a list of some other qualifiers you'll find useful.
  138.  
  139.  Qualifier  Function
  140.  ~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  141. /LOG        Writes log message to terminal as each backup file is written.
  142. /VERIFY     Verifies the copy or save set with the original after copy.
  143. /CONFIRM    Display each filename and ask for confirmation before copy.
  144. /DELETE     Deletes source file after destination file written.
  145.  
  146.  
  147.  Mail Utility
  148.  ~~~~~~~~~~~~
  149. When you receive new mail, a message will be sent to your terminal unless the
  150. /NOBROATCAST qualifier has been specified with the SET TERMINAL command.  Mail
  151. is an interactive utility that understands many commands in a format identical
  152. to DCL commands.  The utility is invoked by typing "$ MAIL" at the DCL command
  153. level.  Mail has a built in help feature which works the same way as the
  154. VAX/VMS Help Utility.  Mail may be sent interactively or directly.
  155.  
  156. Interactive implies the use of the mail utility in conversational mode by
  157. invoking mail at the DCL command level.  After invoking the mail utility, use
  158. the SEND command, and mail will prompt you for the name of the user(s) you want
  159. to send the mail to, your name, the subject, and the message text which you
  160. will terminate with <Ctrl-Z>.  When you press <Ctrl-Z> the message is sent and
  161. you are returned to the mail prompt where you can type EXIT to quit.
  162.  
  163. To send mail in direct mode from the DCL command line, use the following
  164. format:  $ MAIL file_spec user /SUBJECT="character string" where "file_spec"
  165. is a valid VAX/VMS file specification containing the body of your mail message
  166. and "user" is the name of a user on your local system or remote node.  The
  167. /SUBJECT qualifier is optional.
  168.  
  169. To send mail to multiple users (like a mailing list) create a file with a list
  170. of the account names of every user you want to receive the message.  Then enter
  171. @FILENAME at the "To:" prompt and each user listed in the distribution list
  172. will receive a copy of your mail.  A distribution list may also contain another
  173. distribution list by preceeding the second name with an at sign (@).  Comments
  174. are included by using an exclamation point (!).  The following is a sample
  175. distribution list:
  176.  
  177.   ! VAX.DIS
  178.   !
  179.   ! Staff
  180.   JONES
  181.   OPER
  182.   BYNON
  183.   !
  184.   ! Accounting personnel
  185.   @ACTLIST
  186.  
  187. To read your mail, just type MAIL <enter> and you will be told how many
  188. messages you have waiting.  Read is the default command, so you can just
  189. press <enter> to start reading them.  To reply to a message, use the REPLY or
  190. ANSWER commands and the mail utility will fill out the header information
  191. automatically.  You can store your mail in folders for later reference.  The
  192. system has three default folders (MAIL, NEWMAIL, and WASTEBASKET).
  193.  
  194. MAIL is the default mail folder and always exists.  It is used to store mail
  195. messages after you've read them unless you file these messages in other folders
  196. you've created.
  197.  
  198. The NEWMAIL folder stores mail messages before you read them, like a mailbox.
  199. They're automatically moved to the MAIL folder after you've read them unless
  200. you specify a different destination folder with the MOVE command.
  201.  
  202. The WASTEBASKET folder is a temporary folder used to store messages that have
  203. been deleted.  These messages remain in the WASTEBASKET folder until you exit
  204. the mail utility, at which time they're thrown out permanently.
  205.  
  206. To create new folders, select a message and enter the MOVE command.  If you
  207. attempt to move a message to a nonexistent folder, you'll be asked if you want
  208. to create a new folder.  For example:
  209.  
  210.    MAIL> 11
  211.    MAIL> MOVE MEMOS
  212.    Folder MEMOS does not exist. Create it (Y/N, default is N)? Y
  213.    MAIL-NEWFOLDER, folder MEMOS created MAIL>
  214.  
  215. The SELECT command allows you to move from one folder to another.  For example,
  216. if you type SELECT JUNK at the "MAIL>" prompt, you will be moved to the JUNK
  217. folder, and mail will respond with the number of messages contained in the new
  218. folder.
  219.  
  220. The DELETE command accepts a message number as a parameter or deletes the
  221. current message if a message number is not supplied.  To delete a folder, just
  222. delete all the messages in that folder with the DELETE qualifier /ALL.
  223.  
  224. To log a mail message to a file, use the EXTRACT qualifier.  If the /NOHEADER
  225. qualifier is used, the header information will not be included.  For example:
  226. EXTRACT/NOHEADER MEMO.TXT will save the currently selected message to a file
  227. named MEMO.TXT.
  228.  
  229. For more information on the mail utility, use mail's HELP command.
  230.  
  231.  
  232.  Phone Utility
  233.  ~~~~~~~~~~~~~
  234. The VAX/VMS Phone Utility allows you to talk to other users on your system.  It
  235. simulates a real telephone with such features as call holding, conference calls
  236. and telephone directories.  The Phone utility only works with VT100, VT200 or
  237. compatible terminals.
  238.  
  239. To call someone with the phone utility, enter "$ PHONE username" where username
  240. is the person you want to talk to.  Your screen will split horizontally in half
  241. and indicate that the phone utility is ringing the other person.  Your half of
  242. the conversation will be displayed on the top of the screen and the other
  243. person's will appear on the lower half.
  244.  
  245. The phone utility may also be used interactively by entering "$ PHONE", and you
  246. will now be given the phone prompt (%).  You can enter commands directly now
  247. (e.g. "% DIRECTORY").  The phone utility has an online help facility just like
  248. the mail utility.
  249.  
  250.  
  251.  Library Utility
  252.  ~~~~~~~~~~~~~~~
  253. Sometimes its easier to maintain a single file instead of a group of related
  254. files.  The VAX/VMS Library Utility lets you create and maintain a specially
  255. formatted file called a library in which you can store groups of single files
  256. called modules.  Predefined libraries include text, help, object, sharable
  257. image and macro.  Many VAX/VMS utilities such as HELP and LINK are capable of
  258. processing library files.  Unless you're a programmer or system manager,
  259. you'll probably only use text and help libraries.
  260.  
  261. To create a library use the LIBRARY command's /type qualifier and the /CREATE
  262. qualifier.  The /type qualifiers are:  /TEXT, /SHARE, /HELP, /OBJECT, /MACRO.
  263. For example to create a text library named BOOK.TLB:
  264.  
  265.    $ LIBRARY/TEXT/CREATE BOOK.
  266.  
  267. You may optionally specify a list of files to be included in a library when it
  268. is created.  For example:
  269.  
  270.    $ LIBRARY/TEXT/CREATE BOOK TOC,C1,C2,INDEX
  271.  
  272. To list the names of modules in a library, use the /LIST qualifier:
  273.  
  274.    $ LIBRARY/TEXT/LIST BOOK
  275.    Directory of TEXT library BOOK.TLB;1 on 12-JUN-1989 14:12:07
  276.    TOC
  277.    C1
  278.    C2
  279.    INDEX
  280.  
  281. You can also display a history of updates made to the library by using the
  282. /HISTORY qualifier with the /LIST qualifier.
  283.  
  284. To add modules to an existing library, use the /INSERT qualifier:
  285.  
  286.    $ LIBRARY/TEXT/INSERT BOOK CH3
  287.  
  288. To update a module in a library, do the following:
  289.  
  290.    o  Extract the module to be updated with the /EXTRACT qualifier.
  291.    o  Make the necessary changes.
  292.    o  Write over the old module with the /REPLACE qualifier.
  293.  
  294. For example:  $ LIBRARY/TEXT/EXTRACT BOOK CH2
  295.               $ EDIT CHAP2.TXT
  296.                 .
  297.                 .    (edit the file)
  298.                 .
  299.               $ LIBRARY/TEXT/REPLACE BOOK CH2
  300.  
  301.  
  302.  Sort Utility
  303.  ~~~~~~~~~~~~
  304. The VAX/VMS Sort Utility will reorganize records within a file.  The simplest
  305. form of the sort command will organize records in ascending alphabetical order.
  306. For example, to sort BOOK.TXT, you could issue the command:
  307.  
  308.    $ SORT BOOK.TXT SORTED.TXT
  309.  
  310. The Sort utility sorts on the first character of the field in each record in
  311. the input file.  If there is more than one field or column in a record, the
  312. entire record is ordered, not just the first field.
  313.  
  314. Here's an example of sorting in descending order numerically with multiple
  315. fields.  The sample data file JUNK.TXT contains two fields of data. The first
  316. field contains a name, and the second field, starting in column 9 contains the
  317. two-digit number we're sorting by:
  318.  
  319.    PAT     47
  320.    PAT     47
  321.    JIM     09
  322.    TOM     23
  323.    RICH    43
  324.    GARY    02
  325.    KURT    13
  326.    KEVIN   27
  327.  
  328. Sort the file:  $ SORT/KEY=(POSITION=9,SIZE=2,DESCENDING) JUNK.TXT SORTED.TXT
  329.  
  330. The sorted file (SORTED.TXT) will now look like this:
  331.  
  332.    PAT     47
  333.    RICH    43
  334.    KEVIN   27
  335.    TOM     23
  336.    KURT    13
  337.    JIM     09
  338.    GARY    02
  339.  
  340.  
  341.                   <:=- Part D : Advanced Guide to VAX/VMS -=:>
  342.  
  343.  Subprocesses
  344.  ~~~~~~~~~~~~
  345. A major benefit of the VAX/VMS operating system is its support of multi-
  346. processing.  This is not restricted to multiple users logged into different
  347. terminals however.  VAX/VMS users may create multiple processes known as
  348. subprocesses from within their main processes.
  349.  
  350. The DCL SPAWN command is used to create a subprocess.  The SPAWN command will
  351. create a subprocess with the attributes (default directory, privileges, memory,
  352. etc.) of its parent process unless otherwise specified.  For example:
  353.  
  354.    $ SPAWN
  355.    % DCL-S-SPAWNED, process BYNON_1 spawned
  356.    % DCL-S-ATTACHED, terminal now attached to process BYNON_1
  357.  
  358. In this case, the parent process is put into hibernation, the subprocess is
  359. given control of the keyboard, and we are left at the DCL prompt.  You can now
  360. enter any DCL commands, utilities, or other programs.  To return to the parent
  361. process, just $ LOGOUT of the subprocess:
  362.  
  363.    $ LOGOUT
  364.      Process BYNON_1 logged out at 12-JUL-1981 13:04:17.10
  365.    $ DCL-S-RETURNED, control returned to process BYNON
  366.  
  367. The SPAWN qualifier /NOLOG can be used to suppress the informational messages
  368. generated when a subprocess is created or logged out.  DCL Commands, procedures
  369. and VAX/VMS images (utilities and programs) may be executed directly with SPAWN
  370. by entering the correct syntax for the command or procedure after the SPAWN
  371. command.  For example:  $ SPAWN/NOLOG MAIL
  372.  
  373. If you have a task that can execute without user intervention (e.g. a program
  374. compiler), you can spawn a task to run as a background process to your current
  375. process.  For example: $ SPAWN/NOWAIT FORTRAN VAXBBS
  376.  
  377. The SPAWN qualifier /NOWAIT spawns the task to run concurrently (parallel) to
  378. the parent process.  Both processes will share the terminal and any messages
  379. >from the background task will be displayed at the terminal.  To avoid possible
  380. conflicts, use the /OUTPUT qualifier:
  381.  
  382.    $ SPAWN/NOWAIT/OUTPUT=COMPILE.LOG FORTRAN.VAXBBS
  383.  
  384. When the job in the subprocess is complete it will terminate and be removed
  385. >from the system.
  386.  
  387.  
  388.  ATTACHing to a Process
  389.  ~~~~~~~~~~~~~~~~~~~~~~
  390. You can use the DCL ATTACH command to connect your keyboard to any process or
  391. subprocess you've created.  To exit from BYNON_1 back to BYNON with the ATTACH
  392. command, enter "$ ATTACH BYNON" and the subprocess hibernates while you are
  393. returned to the parent process.
  394.  
  395.  
  396.  Interrupting a Process
  397.  ~~~~~~~~~~~~~~~~~~~~~~
  398. You can interrupt a process at anytime to create a subprocess by pressing
  399. <Ctrl-Y> and then using the SPAWN command.  When you're done working with the
  400. subprocess and have returned to the interrupted process, type CONTINUE to start
  401. processing again where you left off.  Some VAX/VMS utilities, such as MAIL,
  402. support SPAWN intrinsically, so you can spawn a process within these utilities
  403. by entering the SPAWN command without pressing <Ctrl-Y> first.
  404.  
  405.  
  406.  Batch Processing
  407.  ~~~~~~~~~~~~~~~~
  408. The SUBMIT command was briefly discussed in Part II: Programming the VAX.  A
  409. batch job is one or more DCL command procedures that execute from a detached
  410. process with your privileges and quotas.  The controller of the process is the
  411. batch queue which accepts jobs via the SUBMIT command.  Batch jobs execute
  412. without user interaction, permitting you to use your terminal for interactive
  413. work while the system executes the batch job (command procedure).  Batch jobs
  414. are used to execute tasks that take a long time to run, use many system
  415. resources, or need to be scheduled to execute at a specific time.
  416.  
  417. The SUBMIT command will enter a command procedure to the default batch queue
  418. (SYS$BATCH) if a specific queue is not provided.  A command procedure submitted
  419. for batch execution is given a job name which defaults to the command procedure
  420. name unless otherwise specified.  The entry number given to the job is used to
  421. control it (delete, rename, etc.)
  422.  
  423.  
  424.  Controlling Batch Jobs
  425.  ~~~~~~~~~~~~~~~~~~~~~~
  426. You can specify a name for a batch job with the /NAME qualifier:
  427.  
  428.    $ SUBMIT BACKUP /NAME=DAILY_BACK
  429.  
  430. You may also execute more than one command procedure by separating the
  431. procedure names with a comma:
  432.  
  433.    $ SUMBIT SORT_DATA,REPORT /NAME=WEEKLY_REPORT
  434.  
  435. To schedule a batch job to execute after a specific time:
  436.  
  437.    $ SUMBIT CLEANUP /AFTER=11:40
  438.    Job CLEANUP (queue SYS$BATCH, entry 39) holding until 1-JUN-1989 11:40
  439.  
  440. To hold a job in the queue to be released later:
  441.  
  442.    $ SUMBIT REMINDER /HOLD
  443.    Job REMINDER (queue SYS$BATCH, entry 12) holding
  444.    $
  445.    $ SET QUEUE/ENTRY=32/RELEASE SYS$BATCH
  446.  
  447. To submit a job to a different queue:  $ SUBMIT TESTJOB /QUEUE=SLOW
  448.  
  449. To lower the priority (e.g. if it's CPU intensive):
  450.  
  451.    $ SUBMIT CRUNCH /PRIORITY=2
  452.  
  453. To pass parameters:  $ SUBMIT COMPILE / PARAMETERS=(WINDOWS,MISC,DISP_IO)
  454.  
  455. To disable the automatic printing of the batch job's log (file instead):
  456.  
  457.    $ SUBMIT GOJOB /NOPRINT /LOG_FILE=DUA2:[BYNON]
  458.  
  459. This will create a file DUA2:[BYNON]GOJOB.LOG.  If the /NOPRINT qualifier is
  460. not specified, the log file will be printed and deleted.  To print and keep the
  461. log file, use the /KEEP qualifier with the /LOG_FILE qualifier.
  462.  
  463. After you submit a procedure to a batch queue, you can monitor its status and
  464. job characteristics by using the SHOW QUEUE command.  This will display the
  465. name, entry number and status of all the jobs you have in queue.  The /ALL
  466. qualifier will display all jobs you have enough privilege to see, and the /FULL
  467. qualifier provides more information about jobs, such as operating
  468. characteristics and submission time.
  469.  
  470. You can use the SET QUEUE/ENTRY command to modify a job's priority
  471. (/PRIORITY), name (/NAME), or status (/RELEASE or /AFTER).  For example:
  472.  
  473.    $ SET QUEUE /ENTRY=217 /PRIORITY=2 SYS$BATCH
  474.  
  475. Use the DELETE /ENTRY command to delete jobs:  $ DELETE /ENTRY=18 SYS$BATCH
  476.  
  477.  
  478.  Using DECnet
  479.  ~~~~~~~~~~~~
  480. DECnet uses the standard VAX/VMS file specifications for remote file access.
  481. In addition to a node specification, you may also include access control
  482. information (username and password) in quotes.  For example:
  483.  
  484.     BURG"JONES MYPW"::DUA2:JUNK.TXT
  485.      |     |    |       |     |
  486.      |     |    |       |     +---- Filename.Extension
  487.      |     |    |       |
  488.      |     |    |       +---------- Device name
  489.      |     |    |
  490.      |     |    +------------------ Password
  491.      |     |
  492.      |     +----------------------- Username
  493.      |
  494.      +----------------------------- Node name
  495.  
  496. Unless a specific DECnet account exists on the host node, or proxy exists, you
  497. must supply access control information to execute a command on a remote system.
  498. (e.g. $ TYPE BURG""JONES MYPW"::DUA2:JUNK.TXT)
  499.  
  500.  
  501.  Proxy Access
  502.  ~~~~~~~~~~~~
  503. Because including access control information in a command string is a security
  504. risk, Digital provides proxy access, which works by keeping a database of users
  505. and hosts who may gain access to the system via DECnet.  The format of the
  506. database is: SYSTEM::REMOTE_USERNAME LOCAL_USERNAME.
  507.  
  508.  
  509.  Task-to-Task Communication
  510.  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  511. This is a feature of DECnet which allows programs on one system to communicate
  512. with programs on another (e.g. the DCL TYPE command)  To execute a procedure on
  513. a remote system, use the TYPE command with the TASK=xxx parameter.  For
  514. example:
  515.  
  516.    $ TYPE VAX1::"TASK=SHOW_USERS"
  517.  
  518. To show the users on a remote system you would write a command procedure
  519. something like this:
  520.  
  521.    $! Show_Users.Com
  522.    $!
  523.    $      IF FMODE() .EQS. "NETWORK" THEN GOTO NETWORK
  524.    $      SHOW USERS
  525.    $      EXIT
  526.    $  NETWORK:
  527.    $      DEFINE/USER_MODE SYS$OUTPUT SYS$NET
  528.    $      SHOW USERS
  529.    $      EXIT
  530.  
  531. Since SYS$OUTPUT is redirected to SYS$NET, the output is redirected to your
  532. terminal over DECnet.  Task-to-Task communication can be simple (like
  533. Show_Users) or complicated (like programs passing data back and forth).
  534.  
  535.  
  536.  Remote Printing
  537.  ~~~~~~~~~~~~~~~
  538. If your DECnet network contains a LAN such as Ethernet, you'll probably have to
  539. share printers with other nodes on the network.  The easiest way to print a
  540. file is to copy it directly to the print device.  This works fine as long as
  541. the device is spooled and set up with world write privileges.  For example:  $
  542. COPY JUNK.TXT BURG::LCA0:  will copy the file JUNK.TXT to the device LCA0: on
  543. node BURG.
  544.  
  545. Another way to print is to use the DCL PRINT/REMOTE command.  However, the file
  546. must be located on the remote system to use this, which is inconvenient if the
  547. file you're printing is on the local system.  You can still do it though:
  548.  
  549.    $ COPY JUNK.TXT BURG::[BYNON]
  550.    $ PRINT /REMOTE BURG::[BYNON]JUNK.TXT
  551.       Job JUNK (queue SYS$PRINT, entry 512) started on LCA0
  552.    $ DELETE BURG::[BYNON]JUNK.TXT
  553.  
  554.  VAXclusters
  555.  ~~~~~~~~~~~
  556. The main purpose of a VAXcluster is high processor ability, shared resources,
  557. and a single security and management area.  There are two basic type of
  558. VAXclusters, heterogeneous and homogeneous, but a mix of the two is possible.
  559. The main difference between these types is how they share resources,
  560. specifically the VAX/VMS OS environment.
  561.  
  562. The VAX/VMS OS environment is identical on each cluster in a homogeneous
  563. VAXcluster.  This is done by using a common system disk for all the nodes.
  564. User accounts, system files, queues and storage devices are shared, and all of
  565. the computers behave the same way.
  566.  
  567. In a heterogeneous VAXcluster, the environment on each system is different.
  568. Each VAX has its own system disk, user accounts and system files.  Queues and
  569. storage devices may or may not be shared.  Users can work in different
  570. operating environments, depending on the system they're using.
  571.  
  572. Usually a VAXcluster is accessed by an Ethernet-based terminal server.  Using
  573. a terminal server, a user can establish a session with any VAXcluster member,
  574. and the connection is identical to that of a directly connected terminal.
  575. However, terminal sessions can support multiple simultaneous sessions to
  576. different nodes.  In the unlikely event that a VAXcluster is set up with
  577. directly connected terminals and you need to access a different system, you
  578. can DECnet via the SET HOST facility.  All VAXcluster systems support DECnet
  579. within the cluster.
  580.  
  581. VAXcluster members (nodes) often share processing resources through the use
  582. of print and batch queues known as cluster-wide queues, which are used the
  583. same as a normal queue.  The only extra information you need is the queue
  584. name.  A list of all the queues in a cluster can be called up with the DCL
  585. SHOW QUEUE command.  If you submit a job to a cluster-wide queue, you must
  586. insure that the node on which it resides has access to the file you want to
  587. print or the command procedure you want processed.
  588.  
  589.