home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / zines / n_z / nia012.hac < prev    next >
Encoding:
Text File  |  2003-06-11  |  62.2 KB  |  1,365 lines

  1.   ┌──────────────────┐ ╔═══════════════════════════════╗ ┌──────────────────┐
  2.   │   Founded By:    │ ║  Network Information Access   ║ │   Founded By:    │
  3.   │ Guardian Of Time │ ║            04APR90            ║ │ Guardian Of Time │
  4.   │   Judge Dredd    │ ║       Guardian Of Time        ║ │   Judge Dredd    │
  5.   └───────┬──────────┘ ║            File 12            ║ └──────────┬───────┘
  6.           │            ╚═══════════════════════════════╝            │
  7.           │             ╔═════════════════════════════╗             │
  8.           └─────────────╢ VMS System Manager's Manual ║─────────────┘
  9.                         ║         Chapter 2.11        ║
  10.                         ╚═════════════════════════════╝
  11.  
  12.  
  13.  
  14.                        CHAPTER 2  STARTING UP THE SYSTEM
  15.  
  16. The system startup procedure establishes the computing environment for your
  17. system
  18.  
  19. This chapter covers three major topics:
  20.  
  21. : How to start your system for the first time
  22. : How to create the proper computing environment whenever you restart your
  23.   system
  24. : How to shut down your system
  25.  
  26. Before you can use the procedures described in this chapter, you must first
  27. set up the hardware for each VAX processor.  To set up the hardware and
  28. install the VMS operating system, refer to the instructions in your VAX
  29. processor installation and operations guide.  After you have installed the
  30. operating system, you will be able to log into the SYSTEM account on your
  31. computer.
  32.  
  33. After the operating system has been successfully loaded, you can set up the
  34. proper computing environment for your system.  The site-specific system
  35. startup file, SYSTARTUP_V5.COM, is an essential aspect of establishing an
  36. environment specific to the needs of your site.  Section 2.4 describes how to
  37. modify SYSTARTUP_V5.COM to meet the needs of your site.
  38.  
  39. 2.1 STARTING UP YOUR SYSTEM FOR THE FIRST TIME
  40.  
  41. Instructions for installing the VMS operating system are included in the
  42. installation and operations guide for your processor.  You must choose whether
  43. you are installing the VMS operating system as a new installation or as an
  44. upgrade.  If you are installing the VMS operating system for the first time,
  45. you must use the new installation procedure.  If you already have a previous
  46. version of the VMS operating system on your processor, then you should use the
  47. upgrade procedure.  Instructions for a new installation are found in your
  48. processor installation and operations guide; instructions for an upgrade
  49. procedure are found in the Release Notes for the VMS operating system.
  50.  
  51. When you install the VMS operating system using the new installation
  52. procedure, the disk on which you install the operating system is first erased,
  53. and then a directory structure and the operating system itself is put in
  54. place.  When you use the upgrade procedure, the files for the VMS operating
  55. system are replaced (w/ files for the upgraded operating system), and all
  56. other files on your system disk (for example, data files, executable images
  57. that are NOT part of the operating system, and so on) remain as they are.
  58.  
  59. CAUTION:  if you use the new installation procedure for a processor that
  60. already has a previous version of the VMS operating system, you will DESTROY
  61. the previous contents of the disk that you designate as they system disk.
  62.  
  63. 2.2 BOOTING THE SYSTEM
  64.  
  65. Booting is the process of loading the operating system from the system disk
  66. into processor memory.  You can perform either a nonstop boot or a
  67. conversational boot.  A nonstop boot is the quickest and easiest method, and
  68. the operating system will automatically set system parameters that are
  69. appropriate for most computing activities for your system's hardware
  70. configuration.  A conversational boot requires you to supply more information
  71. during the boot process, but it allows you to change system parameters during
  72. the boot procedure.  See your VAX processor installation and operations guide
  73. for detailed booting instructions.
  74.  
  75. After a system shuts down, it must be rebooted before you can use it.  Some
  76. processors provide the capability of an automatic reboot; when you enable
  77. this feature, the system automatically attempts to reboot itself after it has
  78. been shut down.  For example, if your site experiences a power failure, a
  79. processor that has automatic reboot enabled restarts itself automatically
  80. after the power has been restored.  See your VAX processor installation and
  81. operations guide for information about automatic rebooting.
  82.  
  83. In unusual cases, the normal startup procedures will NOT work properly and
  84. troubleshooting may be necessary.  Section 2.9 describes procedures that you
  85. should follow if the normal startup procedure fails, or if you find yourself
  86. locked out of your system.
  87.  
  88. 2.3 LOGGING INTO THE NEW SYSTEM
  89.  
  90. When the boot procedure is complete, a message is displayed on the terminal
  91. from which the system is booted (except on workstations, where the message is
  92. displayed on the operators window).  The message is similar to the following:
  93.  
  94. VAX/VMS VERSION 5.0 08-JUN-1989 07:00:00.00
  95.  
  96. %%%%%%%%%%% OPCOM, <08-JUN-1980 07:00:01.P> %%%%%%%%%%%
  97. Logfile has been initialized by operator _OPA0:
  98. Logfile is SYS$SYSROOT: [SYSMGR]OPERATOR.LOG;1
  99.  
  100. %SET-I-INTSET, login interactive limit = 64, Current interactive value = 0
  101.   SYSTEM       job terminated at <08-JUN-1980 07:00:00.00
  102.  
  103. After you see this display, you can then log into the system managers account,
  104. using the following procedure:
  105.  
  106. 1.  Press the RETURN/ENTER key on the console terminal.
  107. 2.  In response to the system's request for your USERNAME, type SYSTEM.
  108. 3.  In response to the system's request for your PASSWORD, type the password
  109.     that you chose for the system account during installation.  You should
  110.     change your system password immediately after logging into the system for
  111.     the first time.  To change your password, enter the DCL command SET
  112.     PASSWORD.
  113.  
  114. CAUTION: DIGITAL recommends that you change the system manager's account
  115. password frequently to maintain system security.  The system manager's account
  116. has full privileges by default; therefore, you should exercise caution when
  117. using it.
  118.  
  119. After you enter your password, the system prints a welcome message on the
  120. console terminal.  If it is not your first time loggin in, the system also
  121. prints the time of your last login, for example:
  122.  
  123.      Welcome to VAX/VMS Version n.n
  124.  
  125.      Last interactive login at 01-Jun-1989 15:13:21.07
  126.  
  127. The command procedure SYS$EXAMPLES:MGRMENU.COM generates the system manager
  128. menu.  This command procedure can serve as a sample for designing site-specific
  129. system manager menus.
  130.  
  131. 2.4  STARTUP COMMAND PROCEDURE FOR YOUR SITE (SYSTARTUP_V5.COM)
  132.  
  133. A command procedure that sets up a computing environment for the specific
  134. needs of your site is executed each time that your system starts up.  This
  135. file is located in the system manager's directory, [SYSMGR], and it is called
  136. SYSTARTUP_V5.COM.  In order to customize SYSTARTUP_V5.COM for the needs of
  137. your site, you must make the appropriate edits to the file.  This section
  138. describes how to customize the SYSTARTUP_V5 command procedure.
  139.  
  140. After you install the VMS operating system, the file SYSTARTUP_V5.COM is
  141. placed in the [SYSMGR] directory.  SYSTARTUP_V5.COM is a template file, which
  142. means that it can be used as a basis or guide for creating a startup file that
  143. suits your own system.  In particular, the SYSTARTUP_V5.COM template includes
  144. sections that can perform the following tasks at startup time:
  145.  
  146. :  Mounting public disks
  147. :  Setting the characteristics of terminals and other devices
  148. :  Initializing and starting queues
  149. :  Installing known images
  150. :  Starting up the DECnet network
  151. :  Running the System Dump Analyzer
  152. :  Purging the operator's log file
  153. :  Submitting batch jobs that are run at system startup time
  154. :  Limiting the number of interactive users
  155. :  Starting up the LAT network
  156. :  Site-specific LAT command procedure
  157. :  Creating systemwide announcements
  158. :  Defining a system login command procedure
  159. :  Backing up the system
  160.  
  161. To modify SYSTARTUP_V5.COM, you can use any text editor.  This file is a
  162. command procedure, so any changes that you make must conform to the rules for
  163. command procedures, as described in the VMS GENERAL USER'S MANUAL.  In order
  164. to be used as a site-specific startup file, be sure to keep the file in the
  165. [SYSMGR] directory and use the file name SYSTARTUP_V5.COM.
  166.  
  167. To allow SYSTARTUP_V5.COM to continue in the event of an error, include the
  168. DCL command SET NOON at the beginning of the file, as follows:
  169.  
  170.                   $ SET NOON
  171.  
  172. This command disables error checking after the execution of each command in
  173. the SYSTARTUP_V5.COM.
  174.  
  175. The following sections describe many of the elements of your user environment
  176. that you can establish w/ SYSTARTUP_V5.COM.
  177.  
  178. 2.4.1  MOUNTING PUBLIC DISKS
  179.  
  180. A public disk is a disk that can be accessed by any system process.  In order
  181. to make a public disk available for use, the disk must be physically mounted
  182. and you must then use the MOUNT command.  You do not need to use the mount
  183. command for the system disk, because the system disk is already mounted when
  184. the system starts up.
  185.  
  186. This section describes how to mount disks in the SYSTARTUP_V5.COM file.  If
  187. your system uses any disks that should be mounted whenever the system is
  188. running, you should read this section.
  189.  
  190. To include MOUNT commands in SYSTARTUP_V5.COM to mount your public disks for
  191. systemwide access, use the following MOUNT command syntax:
  192.  
  193.                 $ MOUNT/SYSTEM ddcu:  volume_label logical_name
  194.  
  195. You use the /SYSTEM qualifier to mount the disk for systemwide access; this is
  196. called a public volume.  If you are in a VAXcluster environment, then you
  197. should also use the /CLUSTER qualifier in order to make the volume accessible
  198. to any user in the cluster.
  199.  
  200. The expression ddcu represents the physical device name.  You must always
  201. include a colon after the device name.  The expression volume_label is a label
  202. that you choose for the disk.  For example, if you mount a disk w/ the
  203. physical device name DRA1, and you choose USERFILES as the volume label for
  204. this disk, then you would include the following command in the
  205. SYSTARTUP_V5.COM file:
  206.  
  207.                             $ MOUNT DRA1:  USERFILES
  208.  
  209. The expression logical_name, in the context of the MOUNT command, is a logical
  210. volume name that is associated q/ the volume that you mount.  You can use the
  211. logical volume name (instead of the physical device name) in programs and
  212. procedures that are used on your system, and it is not necessary to know the
  213. physical drive on which the volume is mounted.
  214.  
  215. If you do not specify a logical volume name in the MOUNT command, then the
  216. logical volume name is in the form DISK$volume_label.  In the previous
  217. example, where no logical name was specified and the volume label was
  218. USERFILES, the MOUNT command would automatically assign the logical name
  219. DISK$USERFILES to the disk.
  220.  
  221. The following command produces the logical volume name USER and equates it to
  222. DRA1, the device name.  Note that the logical volume name USER is equivalent
  223. to DRA1 only while the disk is actually mounted; if the volume is dismounted,
  224. then the logical volume name no longer has any systemwide meaning.
  225.  
  226.                      $ MOUNT/SYSTEM  DRA1:  USERFILES USER
  227.  
  228. 2.4.2 SETTING DEVICE CHARACTERISTICS
  229.  
  230. On some systems, certain devices (such as terminals or printers) should have
  231. the same characteristics whenever the system is running.  Characteristics
  232. include defining the device as a printer, setting the transmission speed for
  233. terminals, and so on.  You can define these characteristics in the
  234. SYSTARTUP_V5.COM procedure.  REad this section you want to define certain
  235. characteristics for specific devices on your system.
  236.  
  237. To establish the characteristics of the terminals and other devices on the
  238. system, use a series of SET commands in SYSTARTUP_V5.COM.  Use the SET
  239. TERMINAL command for terminals; you may want to include comments to remind
  240. yourself of the user to whom specific terminals may be assigned.
  241.  
  242. Use the SET PRINTER command for printers.  Printer characteristics must be
  243. set before you establish queues for the printers.
  244.  
  245. The following example shows how you could modify SYSTARTUP_V5.COM to set up
  246. characteristics for terminals and a printer:
  247.  
  248. $ SET TERMINAL TTC2: /SPEED=300 /DEVICE_TYPE=LA36 /PERMANENT !JONES
  249. $ SET TERMINAL TTD1: /SPEED=9600 /PERMANENT                  !WRENS
  250. $ SET TERMINAL TTD4: /SPEED=1200 /PERMANENT                  !JRSMITH
  251. $ SET TERMINAL TTG4: /SPEED=1200 /MODEM /PERMANENT           !DIALUP1
  252. $ SET PRINTER /LA11 /PAGE=60 /WIDTH=80  LPA0:
  253.  
  254. For more information about the qualifiers available w/ the SET TERMINAL and
  255. SET PRINTER commands, see the VMS General Users Manual (NOTE: I'm going to
  256. start to type that manual up at the same time as this one starting 19-Jun-89).
  257.  
  258. 2.4.3 PRINTERS AND BATCH PROCESSING: INITALIZING AND STARTING QUEUES
  259.  
  260. If your system has a printer that you want to make available for general use
  261. (that is, a printer that is not connected directly to an individual terminal),
  262. you must establish a print queue.  Similarly, if you want to allow batch
  263. processing on your system, you must establish a batch queue.  A queue allows
  264. users to submit requests for printing or batch processing, and the system
  265. prints or processes the user' jobs as resources allow.
  266.  
  267. If you want to include printing or batch processing capabilities on your
  268. system, you should include commands in SYSTARTUP_V5.COM that do the following:
  269.  
  270. 1:  Start the system job queue manager
  271. 2:  Initialize and start each queue w/ a separate INITALIZ/QUEUE/START command
  272.     line
  273.  
  274. The following example shows how to start the system job queue manager and
  275. initialize and start queues in SYSTARTUP_V5.COM:
  276.  
  277. $ !
  278. $ ! Start the system job queue manager
  279. $ !
  280. $ START/QUEUE/MANAGER
  281. $ !
  282. $ ! Set printers spooled and establish printer queues
  283. $ !
  284. $ SET PRINTER/LOWER LAO:
  285. $ SET DEVICE/SPOOLED=SYS$PRINT LPA0:
  286. $ INITIALIZE/QUEUE/START/DEFAULT=FLAG/NOENABLE_GENERIC LPA0:
  287. $ !
  288. $ SET PRINTER/LOWER LPA0:
  289. $ SET DEVICE/SPOOLED=SYS$PRINT LPB0:
  290. $ ITITIALIZE/QUEUE/START/DEFAULT=FLAG/NOENABLE_GENERIC LPB0:
  291. $ !
  292. $ INITIALIZE/QUEUE/START/GENERIC=(LPA0,LPB0) SYS$PRINT
  293. $ !
  294. $ !Establish batch queues
  295. $ !
  296. $ INITIALIZE/QUEUE/START/BATCH/JOB_LIMIT=2/BASE_PRIORITY=3 SYS$BATCH
  297.  
  298. NOTE:  DIGITAL recommends using the /RESTART qualifier w/ the
  299. START/QUEUE/MANAGER command.  This qualifier causes the queue manager to
  300. restart automatically if the job controller should abort.
  301.  
  302. A spooled device directs the output of an application to an intermediate file
  303. until the application program finishes.  When the application completes, the
  304. file is submitted for printing.  A spooled device can help balance the
  305. workload demand on line printers if you are running applications on a
  306. time-shared system.  Use the SET DEVICE/SPOOLED command to establish spooled
  307. devices.
  308.  
  309. 2.4.4 INSTALLING KNOW IMAGES
  310.  
  311. You can install commonly used programs as known images to reduce the I/O
  312. overhead in activating those images and to assign attributes or privileges to
  313. the images.  If you have programs on your system that meet any of the
  314. following conditions, you should read this section and install such programs
  315. as known images in the SYSTARTUP_V5.COM startup file:
  316.  
  317. :  Programs that are frequently run
  318. :  Programs that are usually run concurrently by several processes
  319. :  Programs that require special privileges
  320.  
  321. All known images must be reinstalled each time the system is rebooted, because
  322. known file lists are not saved if the system is shut down or fails.  You
  323. include INSTALL commands in SYSTARTUP_V5.COM to install programs as known
  324. images.  Chapter 9 includes a discussion about performance characteristics and
  325. known images.
  326.  
  327. The following example shows a command sequence that might appear in
  328. SYSTARTUP_V5.COM for installing additional known images:
  329.  
  330. $ INSTALL
  331.  
  332. ADD/OPEN/SHARED/HEADER_RESIDENT BLISS32
  333. ADD/OPEN/SHARED MACRO32
  334. ADD/OPEN DIRECTORY
  335.  
  336. 2.4.5  STARTING UP THE DECNET NETWORK
  337.  
  338. The DECnet software lets your system communicate w/ other computers.  If you
  339. install DECnet software on your system, you must include commands in
  340. SYSTARTUP_V5.COM that start up the DECnet network.  REad this section if you
  341. have the DECnet software on your system.
  342.  
  343. If you have started a batch queue on your system (as described in an earlier
  344. section), then you should start the network using the following commands in
  345. SYSTARTUP_V5.COM:
  346.  
  347.  $ IF F$SEARCH("SYS$SYSTEM:NETACP.EXE")  .NES.  "" - ! This is faster, if you
  348.  $ THEN SUBMIT SYS$MANAGER:STARTNET.COM              ! have batch queues setup.
  349.  
  350. These commands submit the network startup procedure (SYS$MANAGER:STARTNET.COM)
  351. as a batch job, which reduces the amount of time it takes to boot your system.
  352. Alternatively, if you have not started a batch queue, use the following
  353. command in SYSTARTUP_V5.COM to start up the network:
  354.  
  355.  $ IF F$SEARCH("SYS$SYSTEM: NETACP.EXE")  .NES.  "" THEN @SYS$MANAGER:STARTNET
  356.  
  357. 2.4.6 RUNNING THE SYSTEM DUMP ANALYZER
  358.  
  359. In the event of a system failure, the System Dump Analyzer (SDA) can help you
  360. determine why the system failed.  In order to use SDA for this purpose, you
  361. should make sure that the system dump file is available for analysis and not
  362. overwritten by a new crash.  REad the rest of this section if you want to
  363. learn about using SDA w/ SYSTARTUP_V5.COM.
  364.  
  365. You can start SDA in your site-specific startup file by using the following
  366. lines in SYSTARTUP_V5.COM:
  367.  
  368.                  $ ANALYZE/CRASH_DUMP  SYS$SYSTEM: SYSDUMP.DMP
  369.                   COPY SYS$ERRORLOG: SYSDUMP.DMP  SYSDUMP.BACK
  370.  
  371. For further information, invoke the SDA for an interactive session upon
  372. completion of startup, or refer to the SDA documentation in the extended VMS
  373. documentation set.
  374.  
  375. CAUTION:  If you use the page file for the crash dump file, when the system
  376. reboots, you MUST enter the SDA command COPY to copy the dump[ from the page
  377. file to another file suitable for analysis.  If you fail to perform the copy
  378. operation, pages used to save the crash dump information are not released for
  379. paging, and your system hangs while executing STARTUP.COM in the rebooting
  380. process.
  381.  
  382. 2.4.7 PURGING OPERATORS LOG FILE
  383.  
  384. Each time the system is rebooted, a new version of OPERATOR.LOG is created in
  385. the SYS$MANAGER directory.  You should devise a plan for regular maintenance
  386. of these files.  Adding the following command to SYSTARTUP_V5.COM purges all
  387. but the last two (2) versions of the operator's log file:
  388.  
  389.                    $ PURGE/KEEP=2  SYS$MANAGER: OPERATOR.LOG
  390.  
  391. See Chapter 10 for additional suggestions for maintaining the operators log
  392. files.
  393.  
  394. 2.4.8 SUBMITTING BATCH JOBS THAT ARE RUN AT STARTUP TIME
  395.  
  396. Some sites may have batch jobs that are submitted at system startup time.  To
  397. submit such batch jobs, add SUBMIT commands to your SYSTARTUP_V5 file, in the
  398. following format:
  399.  
  400.                       $  SUBMIT [/qualifier,...] file-spec
  401.  
  402. In the following example, a batch job is submitted to run a command procedure
  403. that rebuilds the disks each time the system is initalized.
  404.  
  405.                     $  SUBMIT  SYS$MANAGER: SYSDISK_REBUILD
  406.  
  407. If you submit batch processing jobs in SYSTARTUP_V5.COM, make sure that the
  408. batch processing jobs are submitted after the batch queues have been
  409. initialized.  See Chapter 5 for more information on submitting batch jobs.
  410.  
  411. 2.4.9  DEFINING THE NUMBER OF INTERACTIVE USERS
  412.  
  413. You can set a limit for the number of interactive unsers that are allowed to
  414. be logged into your system at one time.  To do this, include the following
  415. command in SYSTARTUP_V5.COM:
  416.  
  417.    $  STARTUP$INTERACTIVE_LOGINS ==n <- where n is is where you would put a #
  418.  
  419. Where n is the maximum number of interactive users that are permitted to log
  420. in at one time.
  421.  
  422. NOTE:  the number of interactive users must be set to a value no greater than
  423. that which is authorized by your VAX processor license.
  424.  
  425. 2.4.10  STARTING UP THE LAT NETWORK
  426.  
  427. A LAT network is any local area network where terminal servers and operating
  428. systems use the Local Area Transport (LAT) protocol.  A LAT network can
  429. coexist on the same Ethernet w/ other protocols.  If your system uses a LAT
  430. network, you should read this section.
  431.  
  432. To configured your system as a service node w/in a LAT network, execute the
  433. command procedure SYS$MANAGER:LTLOAD.COM from w/in SYSTARTUP_V5.COM.LTLOAD.COM
  434. starts up the LAT protocol.  In the LAT protocol, a VMS operating system
  435. advertises its services over the Ethernet and responds to connection requests
  436. from terminal servers supporting user terminals and other asynchronous
  437. devices.
  438.  
  439. to start up the LAT network, add the following command line to
  440. SYSTARTUP_V5.COM:
  441.  
  442.                              $ @SYS$MANAGER: LTLOAD
  443.  
  444. To configured a node as a service node that connects only to interactive
  445. terminals on a terminal server, include the command line shown in the last
  446. example in SYSTARTUP_V5.COM.
  447.  
  448. However, if you want to use remote printers on a terminal server or to create
  449. dedicated application services on the VMS service node, you must modify
  450. LTLOAD.COM
  451.  
  452. SUPPORTING USER TERMINALS ON A TERMINAL SERVER
  453.  
  454. To create a VMS service node on a LAT network that supports only interactive
  455. terminals is a one-step procedure.  You insert the command @SYS$MANAGER:LTLOAD
  456. into SYSTEARTUP_V5.COM and append any of the following arguments:
  457.  
  458.                    $ @SYS$MANAGER:LTLOAD "P1" "P2" "P3" "P4"
  459.  
  460. The arguments P1/P4 have the following meanings:
  461.  
  462. P1..Service name..Name of the VMS service.  For clustered VMS service nodes,
  463. use the cluster name as the service name.  For independent VMS service nodes,
  464. use the physical node name.
  465.  
  466. P2 - P4..any of the following: /IDENTIFICATION="string"..Description of the
  467. node and its services that are advertised over the Ehternet.  The default is
  468. the string defined by the logical name SYS$ANNOUNCE.
  469.  
  470. /ENABLE=group-list..Terminal server groups qualified to establish connections
  471. w/ the VMS service node.  By default, Group 0 is enabled.
  472.  
  473. /DISABLE=group-list..Removes previously enabled terminal server groups.
  474.  
  475. The argument P1 assigns a service name to the node, using the LATCP command
  476. CREATE SERVICE.  Arguments P2 through P4 can be any valid qualifier to the SET
  477. NODE command.
  478.  
  479. For example, the following command creates the service OFFICE on the VMS node,
  480. MOE, which is part of the OFFICE cluster.
  481.  
  482.               $ @SYS$MANAGER:LTLOAD OFFICE "/ENABLE=1" "/DIABLE=0"
  483.  
  484. 2.4.11 CREATING SYSTEMWIDE ANNOUNCEMENTS
  485.  
  486. This section describes how to define the following types of systemwide
  487. announcements in your SYSTARTUP_V5.COM file:
  488.  
  489. : A message to users informing them that the system is available for use
  490.   (after a system boot)
  491.  
  492. : A message to users when first accessing the system for login
  493.  
  494. : A welcoming message when a user logs in
  495.  
  496. When your system has completed the startup procedure and is up and running,
  497. you can send a message to all connected terminals announcing the system's
  498. availability.  To do this, include a line, w/ an appropriate message w/in the
  499. quotation marks, before the $EXIT command in your SYSTARTUP_V5.COM file:
  500.  
  501. $ REPLY/ALL/BELL "VMS Operating System at NIGHTMARE 589-7840..READ FOR USE."
  502.  
  503. if you want to display at the beginning of each user's login procedure,
  504. include a line, w/ an appropriate message w/in the quotation marks, in
  505. SYSTARTUP_V5.COM:
  506.  
  507. $ DEFINE/SYSTEM SYS$ANNOUNCE "NIGHTMARE, 589-7840 -- AUHTORIZED USE ONLY"
  508.  
  509. You can also display a message to all interactive users immediately after they
  510. log in by including a line similar to the following in SYSTARTUP_V5.COM:
  511.  
  512. $ DEFINE/SYSTEM SYS$WELCOME "Welcome to the VMS Operating System at Nightmare,
  513.   589-7840."
  514.  
  515. If you do not define SYS$WELCOME, the following standard massaged is
  516. displayed:
  517.  
  518. Welcome to VMS version n.n
  519.  
  520. The SYSTARTUP_V5 command file supplied as a template w/ DIGITAL'S distribution
  521. kit includes additional command examples for SYS$ANNOUNCE and SYS$WELCOME.
  522.  
  523. You may also want to display various system announcements to users at the time
  524. they log in. You do this w/ a command in the systemwide login command
  525. procedure, SYLOGIN.COM, as explained later in this chapter.
  526.  
  527. 2.5 DEFINING A SYSTEM LOGIN COMMAND PROCEDURE
  528.  
  529. A system login command procedure is executed for each interactive ussr when
  530. the user logs in. W/ a system login command procedure, you can establish
  531. elements of a computing environment that are the same for all interactive
  532. users.  To use a system login procedure, you should do as follows:
  533.  
  534. 1. Define the logical name SYS$SYLOGIN, usually in your site-specific startup
  535. file (SYSTARTUP_V5.COM).
  536.  
  537. 2. Create a system login command procedure.
  538.  
  539. To define the logical name SYS$SYLOGIN and point to a system login command
  540. file name SYS$MANAGER:SYLOGIN.COM, include the following line in
  541. SYSTARTUP_V5.COM:
  542.  
  543. $ DEFINE/SYSTEM/EXEC/NOLOG SYS$SYSLOGIN SYS$MANAGER:SYLOGIN.COM
  544.  
  545. A template for a system login command procedure is found in
  546. SYS$MANAGER:SYLOGIN.COM.  This file includes commands that you can modify and
  547. add to according to the needs of your site.
  548.  
  549. You can use the system login command procedure to display announcements for
  550. your site.  To do this, you would do the following:
  551.  
  552. 1.  Create a text file that has current announcements, for example w/ the
  553. filename SYS$MANAGER:ANNOUNCEMENTS.TXT.  You could then update this file
  554. (adding/deleting announcements) as needed.
  555.  
  556. 2.  Include a line at the end of your system login command procedure that
  557. displays the announcements file, such as the following:
  558.  
  559. $ TYPE SYS$MANAGER: ANNOUNCEMENTS.TXT
  560.  
  561. In addition to a system login command procedure, users can also have their own
  562. login command procedures.  User login command procedures are executed
  563. immediately after the system login command procedure.
  564.  
  565. 2.6  BACKING UP THE SYSTEM
  566.  
  567. To limit the risk of losing your operating system environment, you should
  568. perform the following sequential operations after installing and customizing
  569. your system:
  570.  
  571. 1.  Back up the console volume
  572.  
  573. 2.  Build a standalone backup kit
  574.  
  575. 3.  Back up the system disk
  576.  
  577. If your processor has a console storage device, DIGITAL recommends that you
  578. make a backup copy of your console volume, it is useful to have a backup copy
  579. in case your original becomes corrupted.  The VMS operating system provides a
  580. command procedure called CONSCOPY.COM in the SYS$UPDATE directory that copies
  581. your console volume to a blank one.
  582.  
  583. To back up your system disk, DIGITAL recommends that you use standalone
  584. BACKUP, which uses a subset of Backup Utility qualifiers.  If your system was
  585. not distributed on magnetic tape, you must build a standalone BACKUP kit either
  586. on console media or on disk.  You can then boot standalone directory root SYSE
  587. on a Files-11 disk.
  588.  
  589. Installing and using standalone BACKUP in an alternate root on your system
  590. disk saves time when you are backing up your system disk,  because you do not
  591. have to boot standalone BACKUP from your console volume.
  592.  
  593. NOTE:  The procedures for backing up the console volume and backing up the
  594. system disk vary for different VAX processors.  See your VAX processor
  595. installation and operations guide for the step-by-step procedures that apply
  596. to your processor.
  597.  
  598. 2.7 BUILDING AND COPYING A VMS SYSTEM DISK
  599.  
  600. The command procedure SYS$UPDATE:VMSSKITBLD is used for building and copying a
  601. VMS system disk.  The procedure provides you w/ the following options:
  602.  
  603. :  BUILD -- Destroys all previous information on the target disk and then
  604.             builds the new system disk.
  605.  
  606. :  ADD   -- Adds another copy of the operating system to an alternate system
  607.             root directory on the same system disk.
  608.  
  609. :  COPY  -- Copies the operating system files to a target disk w/out
  610.             destroying the files that are currently on the target disk.
  611.  
  612. :  COMMON - Initialize the target disk and builds it as a cluster-common
  613.             system disk.
  614.  
  615. CAUTION:  The VMSKITBLD BUILD and COMMON options initialize the target disk,
  616. deleting, all of its previous contents.
  617.  
  618. In some cases, you may want the operating system to exist on another disk.
  619. The following paragraphs describe two such cases and the procedures that you
  620. would use.
  621.  
  622. You may want to move your operating system files to another disk.  for
  623. example, assume that your operating system is initially stored on a disk
  624. together w/ some of your user files.  Suppose that you want to move only the
  625. operating system files from original disk to a smaller disk.  You can build
  626. the operating system on the smaller disk (called the target/destination disk)
  627. w/out affecting the user files on the original disk (the source disk) by using
  628. the BUILD option of the VMSKITBLD command procedure.
  629.  
  630. You may want to create a separate test environment where you can modify the
  631. operating system w/out affecting current operations.  You could use the ADD
  632. option to copy the operating system to an alternate system root directory and
  633. create a boot command procedure to select that version for testing sessions.
  634. In addition, you may want to preserve the current version of the operating
  635. system before upgrading your system to the next major version.  To do so, use
  636. the ADD option to make a copy of the current operating system in an alternate
  637. system root directory (SYSA) and then upgrade and run the new version of the
  638. operating system in SYSO.
  639.  
  640. CAUTION:  When you copy the system disk using VMSKITBLD.COM, SYSUAF.DAT and
  641. all user-modified command files are NOT copied onto the target disk.
  642. VMSKITBLD.COM uses the site-specific template files w/ the TEMPLATE file type
  643. in building the new system disk.
  644.  
  645. 2.8 SYSTEM STARTUP PROCEDURES
  646.  
  647. This section describes the process that the VMS operating system follows when
  648. you boot your system.  This section is mostly informational -- that is, you
  649. usually do NOT have to do anything during the booting process, but you may want
  650. to know how the operating system is set up.
  651.  
  652. Each time that your system is booted, the VMS operating system initiates a
  653. startup procedure.  The startup procedure includes the execution of the
  654. following series of command procedures:
  655.  
  656. :  SYS$SYSTEM:STARTUP.COM -- A file containing a series of procedures that
  657.                              must execute at system startup time in order for
  658.                              the system to run properly.  STARTUP.COM is the
  659.                              site-independent startup command procedure
  660.                              supplied by DIGITAL.  Do not modify this command
  661.                              procedure.  The STARTUP.COM procedure invokes
  662.                              the site-specific procedures that are described
  663.                              in this section.
  664.  
  665. :  SYS$MANAGER:SYCONFIG.COM -- A template file suplied by DIGITAL to which you
  666.                                can add site-specific configuration commands.
  667.  
  668. :  SYS$MANAGER:SYLOGICALS.COM -- A termplate file supplied by DIGITAL for
  669.                                  defining logical names.  This file contains
  670.                                  a command procedure for adding system logical
  671.                                  names for a MicroVAX that is not in a cluster
  672.                                  If your processor is not a standalone Micro
  673.                                  Vax, you can ignore that section of the
  674.                                  procedure that pertains only to MicroVax
  675.                                  systems and add any systemwide logical name
  676.                                  assignments for your own system to the end
  677.                                  of this file.
  678.  
  679. :  SYS$MANAGER:SYLOGIN.COM -- A template file supplied by DIGITAL to which you
  680.                               can add commands that are executed whenever a
  681.                               user logs in.
  682.  
  683. :  SYS$MANAGER:SYSTARTUP_V5.COM -- A template file supplied by DIGITAL to
  684.                                    which you can add various commands for
  685.                                    setting up site-specific operations that
  686.                                    are executed at startup time.  The template
  687.                                    contains commands that you can modify to
  688.                                    meet the needs of your processing
  689.                                    environment.
  690.  
  691. :  SYS$MANAGER:SYPAGSWPFILES.COM -- A file supplied by DIGITAL to which you
  692.                                     can add commands to install page and swap
  693.                                     files on any disk.
  694.  
  695. Two versions of the template files are included in your VMS distribution kit:
  696. an executable version w/ the file name extension COM, and a nonexecutable
  697. version w/ the file extension TEMPLATE (for example, SYS$MANAGER:SYCONFIG.COM
  698. and SYS$MANAGER:SYCONFIG.TEMPLATE).  The files w/ the COM filetype are
  699. executed at startup time, and those are the files that you should modify to
  700. meet the needs of your site.  The files w/ the TEMPLATE filetype should NOT be
  701. modified.
  702.  
  703. CAUTION:  Do NOT delete the DIGITAL-supplied template command files w/ the
  704. TEMPLATE file type.  The VMSKITBLD.COM procedure uses the TEMPLATE versions to
  705. create a new system disk.
  706.  
  707. More information on STARTUP.COM and the site-specific command procedures is
  708. provided in the sections that follow.
  709.  
  710. 2.8.1  STARTUP COMMAND PROCEDURE FOR THE SYSTEM (STARTUP.COM)
  711.  
  712. This section describes the system startup file (STARTUP.COM).  STARTUP.COM is
  713. executed whenever the system is booted, and it creates the basic environment
  714. for the operating system and some software products.  It is not a startup file
  715. that is customized for your site.  You should not modify the STARTUP.COM file.
  716. Read this section if you are interested in learning about the startup process.
  717.  
  718. The file SYSTARTUP_V5.COM, which is also executed each time the system is
  719. booted, is the startup file where you include features specific to your site.
  720. To learn how to customize the startup process for your site by modifying
  721. STARTUP_V5.COM, see section 2.4.
  722.  
  723. The file SYS$SYSTEM:STARTUP.COM executes immediately after the operating
  724. system is booted.  It is a driver that uses a series of component files to
  725. perform the following startup tasks:
  726.  
  727. :  Defines systemwide logical names required for the symbolic debugger,
  728. language processors, linker, image activator, and help processor.
  729.  
  730. :  Start processes that control error logging, SMISERVER (the system
  731. management server), the job controller, and the operator's log.  (on a
  732. standalone workstation the operator's log is not automatically started.)
  733.  
  734. :  Connects and configured devices that are physically attached to the system
  735. and loads their I/O drivers by invoking the SYCONFIG.COM procedure.
  736.  
  737. : Installs known images to reduce I/O overhead in activating the most commonly
  738. fun images or to identify images that must have special privileges.
  739.  
  740. CAUTION:  Do not modify SYS$SYSTEM:STARTUP.COM. This file is deleted and
  741. replaced each time you upgrade your system w/ the next version of the VMS
  742. operating system.  Leaving STARTUP.COM intact prevents you from inadvertently
  743. altering any commands in the file, which in turn could cause the startup
  744. procedure to fail.
  745.  
  746. All of the component files used by STARTUP.COM are in the directories w/ the
  747. logical name SYS$STARTUP.  SYS$STARTUP is actually a searchlist that includes
  748. both SYS$SYSROOT:[SYSMGR] (the SYS$MANAGER directory) and
  749. SYS$SYSROOT:[SYS$STARTUP].
  750.  
  751. In VMS Version 5.0, the following three data files are involved in startup
  752. process and located in SYS$STARTUP:
  753.  
  754. 1.  VMS$PHASES.DAT--This file determines the order of the phases of the
  755. startup procedure.  It is a sequential list of phases that will be started by
  756. STARTUP.COM.  It includes a series of four (4) basic phases ( INITIAL,
  757. CONFIGURED, SYSFILES, & BASEENVIRON)  needed to bring the VMS operating system
  758. up to a basic working environment, followed by a series of phases for optional
  759. software products.  This file must not be modified.
  760.  
  761. 2.  VMS$VMS.DAT--This is a component data file for starting the vase VMS
  762. operating system environment.  You should NOT modify this file.
  763.  
  764. 3.  VMS$LAYERED.DAT--This is a component file for optional software products
  765. that are installed using the callback procedure of VMSINSTAL.  It is an
  766. indexedsequential file, containing the following fields for each file:
  767.  
  768.    1.  Name of the component file(either .EXE or .COM) to be run.
  769.  
  770.    2.  Phase in which the component file is to be run.  The valid phases are
  771.        LPBEGIN, LPMAIN (default), LPBETA, & END.
  772.  
  773.    3.  Method (or mode) by which the component file is to run.  The valid
  774.        choices are DIRECT(the default, where the command procedure or image
  775.        is executed immediately), BATCH(valid only for command procedures,
  776.        or SPAWN.
  777.  
  778.    4.  Node restrictions for the component.  This is either the node or nodes
  779.        on which the component file should ONLY be run, or the node or nodes on
  780.        which the component file should NOT be run.
  781.  
  782.  
  783.    5.  Node restriction byte field.  This field determines whether the nodes
  784.        listed in the previous field are allowed or disallowed (for running
  785.        the component).
  786.  
  787.    6.  Parameters passes to the component file for execution.  You can pass up
  788.        to eight parameters, using the following format:
  789.  
  790.        (P1:args, P2: args,...)
  791.        (The parentheses can be omitted if you pass only a single parameter.)
  792.  
  793. An important function of each phase is to meet the prerequisites of the
  794. following phase; therefore, the ordering of the phases is extremely
  795. important.  Components that occur in a phase cannot have dependencies on
  796. components that are in the same phase or in subsequent phases.  When
  797. installing optional software products as known images using the STARTUP.COM
  798. procedure, be sure that all requisite components occur in a previous phase.
  799.  
  800. If an optional software product can use the callback procedure included in
  801. VMSINSTALL, then you can install it as a known image at system startup using
  802. the method described earlier in this section, and you do not have to include
  803. the product in the site-specific startup file(SYSTARTUP_V5.COM).  In these
  804. cases, the component files must be in the SYS$STARTUP directory.  Software
  805. products that do not use the callback procedure should be installed as known
  806. images at system startup using SYSTARTUP_V5.COM.
  807.  
  808. You can also use the System Management Utility (SYMAN) to manage the new
  809. startup process.  W/ the STARTUP command of SYSMAN, you can add, modify,
  810. display, or remove elements of existing component files, create a new startup
  811. file and perform other startup functions.  A description of SYSMAN commands is
  812. found in the Reference section.
  813.  
  814. Several site-specific command procedures are executed from w/in STARTUP.COM.
  815. You can add commands to these files or modify the template files supplied in
  816. your VMS distribution kit.  Remember, however, to modify only the executable
  817. version of the file(w/ the file extension .COM)and not the template version
  818. (w/ the file extension TEMPLATE).  If you have an existing .COM file and you
  819. want to modify a version of the original TEMPLATE  file, then you should first
  820. make a copy of the TEMPLATE file(giving the copy a filetype of .COM).
  821.  
  822. STARTUP.COM executes the site-specific command procedures in the following
  823. sequence:
  824.  
  825. 1.  SYS$MANAGER:SYPAGSWPFILES.COM
  826. 2.  SYS$MANAGER:SYCONFIG.COM
  827. 3.  SYS$MANAGER:SYLOGICALS.COM
  828. 4.  SYS$MANAGER:SYSTARTUP_V5.COM
  829.  
  830. 2.8.2  SETTING UP LOGICAL NAMES FOR YOUR SITE (SYLOGICALS.COM)
  831.  
  832. A logical name is a name that is equivalent to a file specification, a
  833. directory, a device name, another logical name, or some other equivalence
  834. string.  For example, when you have a logical name associated w/ a device
  835. name, you can use the logical name instead of the formal device name.
  836.  
  837. You can assign logical names that apply for the entire system; these are
  838. called systemwide logical names, and they can be used by any process on the
  839. system.  For example, if a systemwide logical name equated the logical name
  840. FINANCE_DISK to the device DRA2, any user on the system (and any program
  841. running on the system) could use the name FINANCE_DISK in place of DRA2.
  842.  
  843. The file SYS$MANAGER:SYLOGICALS.COM can be used for assigning systemwide
  844. logical names.  SYLOGICALS.COM is executed as part of the STARTUP.COM
  845. procedure whenever your system is booted.  The logical names defined in
  846. SYLOGICALS.COM (as well as the logical names assigned automatically in
  847. STARTUP.COM) are always included in the system logical name table.
  848.  
  849. If your system is a MicroVAX that is NOT in a cluster, you should use the file
  850. SYLOGICALS.COM as a template for assigning systemwide logical names.  If you
  851. have a MicroVAX that is not in a VAXcluster environment and you want to have
  852. systemwide logical names, you should read this section.
  853.  
  854. Unless your processor ia a MicroVAX that is NOT in a VAXcluster environment,
  855. the template procedure that is found in SYLOGICALS.COM has NO effect.
  856. However, if your processor is on where the template procedure does not apply,
  857. you can still use SYLOGICALS.COM to assign systemwide logical names by adding
  858. them to SYLOGICALS.COM before the EXIT command, as indicated in the
  859. SYLOGICALS.COM template.
  860.  
  861. During VMS system operations when the integrity of the system could be
  862. compromised by incorrect logical names, such as the activation of privileged
  863. images (LOGINOUT,MAIL, etc...) only executive-mode and kernel-mode logical
  864. names are used; supervisor-mode and user-mode names are ignored.  DIGITAL
  865. therefore recommends that logical names for system components (for example,
  866. public disks/directories) be defined in executive mode, for example:
  867.  
  868. $ DEFINE/SYSTEM/EXECUTIVE/NOLOG SYSDSK SYS$SYSDEVICE:
  869.  
  870. See the VMS General Users Manual for information about logical name
  871. assignments and the privilege modes.
  872.  
  873. 2.9  EMERGENCY STARTUP PROCEDURES
  874.  
  875. The startup and login procedures provided by DIGITAL should always work;
  876. however, certain user interventions may cause them to fail.  For example, if
  877. you modify the startup of login procedures, or modify the login accounts, you
  878. may accidentally lock yourself out of the system.  A very simple way to lock
  879. yourself out of the system is to set passwords and forget them.  Another way
  880. to lock yourself out of the system is to introduce an error condition or an
  881. infinite loop into a startup or login procedure.  Under such circumstances,
  882. use the emergency startup procedure described in this section.
  883.  
  884. 2.9.1  BYPASSING THE USER AUTHORIZATION FILE
  885.  
  886.  
  887. The preferred method of breaking into a locked system is to set the alternate
  888. user authorization file.  This method requires setting the system parameter
  889. UAFALTERNATE, which defines the logical name SYSUAF to refer to the file
  890. SYS$SYSTEM:SYSUAFALT.DAT.  If this file is found during a normal login, the
  891. system uses it to validate the account and prompts you for the user
  892. name/password.
  893.  
  894. If this file is not located, the system assumes that the UAF is corrupt and
  895. accepts any user name/password to log you into the system from the system
  896. console.  Logins are prohibited from all other locations.
  897.  
  898. NOTE:  You can use this method only to log into the system from the console
  899. terminal; you cannot use other terminal lines.
  900.  
  901. To set the alternate user authorization file, use the following procedure:
  902.  
  903. 1.  Perform a conversational boot by following the instructions in your VAX
  904.     processor installation/operations guide.
  905.  
  906. 2.  When the SYSBOOT> prompt appears, enter the following command:
  907.  
  908. SYSBOOT> SET UAFALTERNATE 1
  909.  
  910. 3.  Type CONTINUE and press RETURN/ENTER KEY.
  911.  
  912. 4.  When the startup procedure completes, log in on the console terminal by
  913.     entering any user name/password in response to the USERNAME: and then the
  914.     PASSWORD: prompts.
  915.  
  916.     The system assigns the following values to your user account:
  917.     : NAME -User Name
  918.     : UIC  -[001,004]
  919.     : command Interpreter -DCL (Digital Command Language)
  920.     : Login Flags -None
  921.     : Priority -Value of the system parameter DEFPRI
  922.     : Resources -Values of the PQL system parameters
  923.     : Privileges -All
  924.     The process name is usually the name of the device on which you logged in
  925.     (for example, _OPA0:).
  926.  
  927. 5.  Fix the problem that caused you to be locked out of the system.  That is,
  928.     make the necessary repairs to the UAF or to the startup or login
  929.     procedures.  (If you modify a login or startup procedure and the problem is
  930.     still not solved, you should restore the procedure to its previous state.)
  931.     If the problem is a forgotten password, reset the UAFALTERNATE system
  932.     parameter to 0, as explained in the next step.  Then invoke the Authorize
  933.     Utility and type HELP MODIFY for information on modifying passwords.
  934.  
  935. 6.  Clear the UAFALTERNATE parameter by running SYSGEN and giving appropriate
  936.     SYSGEN commands.  To run SYSGEN, enter the following command at the DCL
  937.     prompt:
  938.     $ RUN SYS$SYSTEM:SYSGEN
  939.  
  940.     The SYSGEN> prompt is displayed, and you should enter the following
  941.     commands:
  942.     SYSGEN> SET UAFALTERNATE 0
  943.     SYSGEN> WRITE CURRENT
  944.     SYSGEN> EXIT
  945.  
  946. 7.  Shut down and reboot the system.
  947.  
  948. 2.9.2  EMERGENCY STARTUP AFTER MODIFYING SYSTEM PARAMTERS
  949.  
  950. In some cases, modifying system parameters may cause the system to become
  951. unbootable.  If this occurs, use the following emergency startup procedure to
  952. restore to normal operation:
  953.  
  954. 1.  Perform a conversational boot by following the instructions in your VAX
  955.     processor installation/operations guide.
  956.  
  957. 2.  When the SYSBOOT> prompt appears, enter the following commands:
  958.     SYSBOOT> USE DEFAULT.PAR
  959.     SYSBOOT> CONTINUE
  960.  
  961. 3.  When the system finishes booting, review any changes you made to SYSGEN
  962. parameters, modify MODPARAMS.DAT as necessary, and reexecute AUTOGEN.
  963.  
  964. 2.9.3  BYPASSING STARTUP/LOGIN
  965.  
  966. If the system does not complete the startup procedures or does not allow you
  967. to log in, bypass the startup/login procedures by following these steps:
  968.  
  969. 1.  Perform a conversational boot by following the instructions in your VAX
  970.     processor installation/operations guide.
  971.  
  972. 2.  Define the console to be the startup procedure by entering the following
  973.     command at the SYSBOOT> prompt:
  974.  
  975.     SYSBOOT> SET/STARTUP OPA0:
  976.  
  977.     type CONTINUE and press Return/Enter in response to the next SYSBOOT>
  978.     prompt.  Wait for the DCL prompt to return.
  979.  
  980. 3.  Correct the error condition that caused the login failure.  That is, make
  981.     the necessary repairs to the startup/login procedures, or to the UAF.  You
  982.     may want to enter the following DCL commands because bypassing the startup
  983.     procedures leaves the system in a partially initalized state:
  984.  
  985.     $ SET NOON
  986.     $ SET DEFAULT SYS$SYSROOT: [SYSEXE]
  987.  
  988.    Invoke a text editor to correct the startup/login procedure file.  Note
  989.    that some system consoles may NOT supply a screen/mode editor.  You can
  990.    also copy a corrected file and delete the incorrect version by using
  991.    the RENAME/DELETE commands.
  992.  
  993. 4.  Reset the startup procedure by invoking SYSGEN and entering the following
  994.     commands:
  995.  
  996.     $ RUN SYS$SYSTEM:SYSGEN
  997.     SYSGEN> SET/STARTUP SYS$SYSTEM:STARTUP.COM
  998.     SYSGEN> WRITE CURRENT
  999.     SYSGEN> EXIT
  1000.  
  1001. 5. Perform a normal startup by entering the following command:
  1002.  
  1003.    $ @SYS$SYSTEM:STARTUP
  1004.  
  1005. 2.9.4 STARTUP PROBLEMS
  1006.  
  1007. Sometimes the operating system does not boot after you enter the BOOT command.
  1008. This can be caused by either a hardware/software malfunction.
  1009.  
  1010. A read error on a disk drive or console medium, or a machine check error, may
  1011. indicate a hardware malfunction.  When a hardware problem occurs, a question
  1012. mark (?) usually precedes the error message that is displayed on the system
  1013. console terminal.  You should then do the following:
  1014.  
  1015. 1.  Consult the hardware manual for your VAX processor.
  1016.  
  1017. 2.  If you still cannot correct the problem, contact your DIDGITAL FIELD
  1018.     REPRESENTATIVE.
  1019.  
  1020. When the operating system is loaded into memory but the STARTUP.COM command
  1021. procedure does not execute, a software malfunction has probably occurred.  You
  1022. should suspect this condition if the usual message specifying the number of
  1023. interactive users does not appear.
  1024.  
  1025. Perform one or both of the following actions to correct the situation:
  1026.  
  1027. 1.  Try again, by repeating the boot procedure to restart the system.
  1028.  
  1029. 2.  Leave the system disk in the original drive.  Restore a backup copy of the
  1030.     system disk using Standalone Backup.
  1031.  
  1032. 2.10  SHUTDOWN PROCEDURES
  1033.  
  1034. The VMS operating system provides the flowing types of shutdown procedures:
  1035.  
  1036. :  An orderly shutdown w/ SYS$SYSTEM:SHUTDOWN.COM.  This procedure shuts down
  1037.    the system while performing housekeeping functions such as disabling
  1038.    future logins, stopping the batch and output queues, dismounting mounted
  1039.    volumes, and stopping user processes.
  1040.  
  1041.    SHUTDOWN.COM optionally invokes a site-specific command procedure named
  1042.    SYS$MANAGER:SYSHUTDWN.COM, which you can modify to meed the needs of your
  1043.    basic installation.  An empty SYSHUTDWN.COM file is included in your VMS
  1044.    distribution kit.
  1045.  
  1046. :  An emergency shutdown w/ OPCCRASH.  If you are unable to perform an orderly
  1047.    shutdown w/ SHUTDOWN.COM, run the OPCCRASH emergency shutdown program.
  1048.  
  1049. :  An emergency shutdown w/ CRASH.  Use this emergency shutdown procedure if
  1050.    OPCCRASH fails.  Note that not all VAX processors have the CRASH program.
  1051.    If your VAX processor has the CRASH procedure, it is located on the console
  1052.    media, and it can only be executed from the console terminal.  See your
  1053.    VAX processor installation/operations guide for a description of the CRASH
  1054.    procedure or for the equivalent commands to use to force an abrupt
  1055.    emergency shutdown.
  1056.  
  1057. 2.10.1  ORDERLY SHUTDOWN W/ SHUTDOWN.COM
  1058.  
  1059. Use SHUTDOWN.COM to shut down the system in an orderly fashion.  Do not
  1060. modify SHUTDOWN.COM.  Add commands to the SYS$MANAGER:SYSHUTDWN.COM command
  1061. procedure to perform site-specific functions.
  1062.  
  1063. To execute SHUTDOWN.COM, you must have either the SETPRV privilege or all the
  1064. following privileges:  CMKRNL, EXQUOTA, LOG_IO, OPER, SYSNAM, SYSPRV, TMPMBX,
  1065. and WORLD.  Usually, you shut down the system from the SYSTEM account, which
  1066. includes these privileges by default.
  1067.  
  1068. 2.10.1.1  SHUTDOWN.COM SEQUENCE OF PROMPTS AND MESSAGES
  1069.  
  1070. To perform an orderly shutdown of the system, invoke SHUTDOWN.COM from any
  1071. terminal and any privileged account w/ the following DCL command:
  1072.  
  1073. $  @SYS$SYSTEM:SHUTDOWN
  1074.  
  1075. The procedure then prompts you w/ a series of questions and messages.  The
  1076. default response appear in brackets at the end of each question.  Press the
  1077. RETURN key to select the default response.  A summary of the questions
  1078. follows:
  1079.  
  1080. :  Minutes until shutdown:
  1081.    How many minutes until final shutdown [0]?
  1082.  
  1083.    Enter an integer.  If the system logical name SHUTDOWN$MINIMUM_MINUTES is
  1084.    defined, its integer value is the minimum value that you can enter.
  1085.    Therefore, if the logical name is defined as 10, you must specify at least
  1086.    10 minutes to final shutdown or an error message is returned.  If you do
  1087.    not enter a value, the logical name value is used.  If the logical name is
  1088.    not defined, and you do not enter a value, 0 minutes is the default.
  1089.  
  1090. :  Reason for shutdown:
  1091.    Reason for shutdown [standalone]:
  1092.  
  1093.    Enter a one-line reason for shutting down the system.
  1094.  
  1095. :  Decide if you want to spin down the disk volumes:
  1096.    Do you want to spin down the disk volumes [No]?
  1097.  
  1098.    Enter Yes or No (Y or N).  Note, however,  that the system disk cannot
  1099.    be spun down.
  1100.  
  1101. :  Decide if you want to invoke a site-specific shutdown procedure:
  1102.    Do you want to invoke the site-specific shutdown procedure [Yes]?
  1103.  
  1104.    Enter Yes or No.  This refers to SYS$MANAGER:SYSHUTDWN.COM.
  1105.  
  1106. :  Decide if you want an automatic system reboot:
  1107.    Should an automatic system reboot be performed [No]?
  1108.  
  1109.    By default, the system does not automatically reboot.  However, if you
  1110.    respond w/ YES, the system attempts to reboot automatically when the
  1111.    shutdown is complete.
  1112.  
  1113. :  Message broadcast to users about rebooting the system:
  1114.    When will the system be rebooted [later]?
  1115.  
  1116.    Enter the expected reboot time in the format you want printed in the
  1117.    message that will be broadcast to users.  For example, you could specify
  1118.    IMMEDIATELY, or IN 10 MINUTES, or a time such as 2 PM, or 14:00.  If you
  1119.    do not know when the system will be available again, press RETURN to
  1120.    specify 'later' as the time when the system will reboot.
  1121.  
  1122. :  Shutdown options:
  1123.    Shutdown options (enter as a comma--separated list):
  1124.    SAVE_FEEDBACK      : Saves feedback data for AUTOGEN calculations
  1125.    REMOVE_NODE        : Remaining nodes in the cluster should be adjust quorum
  1126.    CLUSTER_SHUTDOWN   : Entire cluster is shutting down
  1127.    REBOOT_CHECK       : Check existence of basic system files
  1128.    Shutdown options [NONE]
  1129.  
  1130.    The procedure prompts you to specify one or more shutdown options.
  1131.  
  1132. Entering the SAVE_FEEDBACK option records feedback data collected from the
  1133. system since it was last booted.  This option creates a new version of the
  1134. AUTOGEN feedback data file, which can be used when you next run AUTOGEN.
  1135.  
  1136. If your system is a cluster member, all options are listed.  When the
  1137. REMOVE_NODE option is specified on one cluster member system, users on all
  1138. member systems are notified.  Clusterwide notification is required, because
  1139. users logged in to any member system may be affected by the shutdown of another
  1140. system, for example:
  1141.  
  1142. :  Users may have batch jobs running on other systems.
  1143. :  If terminal servers are in operation, users may have alternate terminal
  1144.    sessions in progress on the system being shut down.
  1145.  
  1146. Otherwise, only the REBOOT_CHECK and SAVE_FEEDBACK options are listed.  Enter
  1147. REBOOT_CHECK to verify the presence of a subset of files necessary to reboot
  1148. the system after shutdown completes.  (if you are certain that the files exist,
  1149. press RETURN.)
  1150.  
  1151. If you select the REBOOT_CHECK option, the procedure checks for the necessary
  1152. files and notifies you if any are missing.  Replace missing files before
  1153. proceeding.  If all files are present, the following success message appears:
  1154.  
  1155. %SHUTDOWN-I-CHECKOK, Basic reboot consistency check completed.
  1156.  
  1157. The following events occur as the shutdown procedure continues, and the
  1158. corresponding messages are printed on the terminal:
  1159.  
  1160. 1.  A message requesting users to log out is broadcast at decreasing time
  1161.     intervals to all users on the system.
  1162.  
  1163. 2.  The system logical name SHUTDOWN$TIME is defined as the absolute time of
  1164.     shutdown.  For example, if the value 10 is specified at 12:00 in response
  1165.     to the first question, the logical name is assigned the absolute time value
  1166.     12:10 along w/ the date.  By requesting the logical name definition
  1167.     SHUTDOWN$TIME (w/ the SHOW LOGICAL command), you can see if a shutdown is
  1168.     in progress or determine the actual time of shutdown.  This feature is
  1169.     useful if a user missed the shutdown broadcast message.
  1170.  
  1171. 3.  At six minutes or less until system shutdown, the terminal from which
  1172.     shutdown was invoked is made an operator's console and all future
  1173.     nonoperator logins are disabled.  If the DECnet network is running, it
  1174.     is shut down.
  1175.  
  1176. 4.  When there is one minute left until system shutdown, batch and device
  1177.     queues and the system job queue manager are stopped.
  1178.  
  1179. 5.  At zero minutes before system shutdown the site-specific command procedure
  1180.     SYS$MANAGER:SYSHUTDWN.COM is invoked.
  1181.  
  1182. 6.  All user processes are stopped; however, system processes continue.
  1183.     Ancillary Control Processes (ACP's) may delete themselves when their
  1184.     mounted volumes are finally dismounted.
  1185.  
  1186. 7.  For dual-processor systems, the secondary processor is stopped.
  1187.  
  1188. 8.  All installed images are removed.
  1189.  
  1190. 9.  All mounted volumes are dismounted and, if you request it, the disks are
  1191.     spun down.  Note, however, that the system disk cannot be spun down.  Also,
  1192.     the quorum disk (if present on your system) is not dismounted or spun down.
  1193.  
  1194. 10.  The operator's log file is closed.
  1195.  
  1196. 11.  The program SYS$SYSTEM:OPCCRASH is invoked to shut down the system.
  1197.  
  1198. 12.  If you did not request an automatic reboot, the following message appears
  1199.      on the system console:
  1200.  
  1201.      SYSTEM SHUTDOWN COMPLETE -- USE CONSOLE TO HALT SYSTEM
  1202.  
  1203.      iF you requested an automatic reboot, the system reboots, provided the
  1204.      necessary controls are set.
  1205.  
  1206. 13.  If you are not automatically rebooting, halt the system after the
  1207.      previous message is printed at the console terminal.
  1208.  
  1209. Example 2-1 demonstrates an orderly system shutdown on standalone node AVALON.
  1210.  
  1211. EXAMPLE 2-1:  ORDERLY SYSTEM SHUTDOWN W/ SHUTDOWN.COM
  1212. -----------------------------------------------------
  1213.  
  1214. $ @SYS$SYSTEM:SHUTODOWN
  1215.  
  1216.          SHUTDOWN -- Perform an Orderly System Shutdown
  1217.  
  1218. How many minutes until final shutdown [0]:  10
  1219. Reason for shutdown:  [Standalone]  MONTHLY PREVENTIVE MAINTENACNE.
  1220. Do you want to spin down the disk volumes [NO]? RETURN
  1221. Do you want to invoke the site-specific shutdown procedure [Yes]?  RETURN
  1222. Should an automatic system reboot be performed [NO]? RETURN
  1223. When will the system be rebooted [Later]? 12:30
  1224. Shutdown options:
  1225. REBOOT_CHECK     :  Check existence of basic system files
  1226.  
  1227. shutdown options [NONE]:  RETURN
  1228.  
  1229. SHUTDOWN message on AVALON, from user SYSTEM at _AVALON$OPA0:  12:00:00.20
  1230. AVALON will shut down in 10 minutes; back up 12:30. Please log off node AVALON.
  1231. MONTHLY PREVENTIVE MAINTENANCE
  1232.  
  1233. %SHUTDOWN-I-OPERATOR, This terminal is now an operator's console.
  1234. %%%%%%%%%%% OPCOM, 16JUL1988 12:01:00.15 (NOTE THE TIME WILL BE ACUTAL TIME)
  1235. Operator status for operator _AVALON$OPA0:
  1236. CENTRAL, PRINTER, TAPES, DISKS, DEVICES, CARDS, NETWORK, OPER1, OPER2, OPER3,
  1237. OPER4, OPER5, OPER6, OPER7, OPER8, OPER9, OPER10, OPER11, OPER12
  1238.  
  1239. %SHUTDOWN-I-DISLOGINS, Interactive logins will now be disabled.
  1240. %SET-I-INTSET, login interactive limit = 0 current interactive value = 17
  1241. %SHUTDOWN-I-SHUTNET, the DECnet network will now be shut down.
  1242. %SHUTDOWN-I-STOPQUEMAN, The queue manager will now be stopped.
  1243.  
  1244. SHUTDOWN message on AVALON, from user SYSTEM at _AVALON$OPA0: 12:05:00.20
  1245. AVALON will shut down in 5 minutes; back up 12:30.  Please log off node AVALON.
  1246. MONTHLY PREVENTIVE MAINTENANCE
  1247.  
  1248. 17 terminals have been notified on AVALON.
  1249.  
  1250. SHUTDOWN message on AVALON from user SYSTEM at _AVALON$OPA0:  12:06:55.28.
  1251. AVALON will shut down in 4 minutes; back up 12:30.  Please log off node AVALON.
  1252. MONTHLY PREVENTIVE MAINTENANCE
  1253.  
  1254. %%%%%%%% OPCOM, 16-Jul-1988 12:07:12:30  %%%%%%%%
  1255.  
  1256. Message from user DECnet on AVALON
  1257. DECnevt even 2.0, local node state change
  1258. From node 2.161 (AVALON), 16-Jul-1988 12:07:22.26
  1259. Operator command, old state = on, New state = Shut
  1260.  
  1261. SHUTDOWN message on AVALON from user SYSTEM at _AVALON$OPA0: 12:07:12:56
  1262. AVALON will shut down in 3 minutes; back up 12:30.  Please log off node AVALON.
  1263. MONTHLY PREVENTIVE MAINTENANCE
  1264.  
  1265. %SHUTDOWN-I-STOPQUEMAN, The queue manager will now be stopped.
  1266. SHUTDOWN message on AVALON user SYSTEM at _AVALON$OPA0: 12:08:12.56
  1267. AVALON will shut down in 2 minutes; back up 12:30.  Please log off node AVALON.
  1268. MONTHLY PREVENTIVE MAINTENANCE
  1269.  
  1270. %%%%%%%%% OPCOM, 16-JUL-1988 12:08:12:30 %%%%%%%%%%
  1271. Message from user JOB_CONTROL on AVALON
  1272. -SYSTEM-S-NORMAL, normal successful completion
  1273.  
  1274. %%%%%%%%% OPCOM, 16-JUL-1988 12:08:42:30
  1275. Message from user DECNET on AVALON
  1276. DECnet shutting down
  1277.  
  1278. SHUTDOWN message on AVALON from user SYSTEM at _AVALON$OPA0:  12:09:12.56
  1279. AVALON will shut down in 1 minute; back up 12:30.  Please log off node AVALON.
  1280. MONTHLY PREVENTIVE MAINTENANCE.
  1281.  
  1282. 17 terminals have been notified on AVALON
  1283. %SHUTDOWN-I-SITESHUT,  The site-specific shutdown procedure will now be
  1284. invoked.
  1285. %SHUTDOWN-I-STOPUSER, All user processes will now be stopped.
  1286. %SHUTDOWN-I-REMOVE, All installed images will now be removed.
  1287. %SHUTDOWN-I-DISMOUNT, All volumes will now be dismounted.
  1288. %%%%%%%%%% OPCOM, 16-JUL-1988 12:09:42.30
  1289. Message from user System on AVALON
  1290. _AVALON$OPA0:, AVALON shutdown requested by the operator.
  1291.  
  1292. %%%%%%%%%% OPCOM, 16-JUL-1988 12:10:02.44 %%%%%%%%%%%%%
  1293. Logfile was closed by operator _AVALON$OPA0:
  1294. Logfile was SYS$SYSROOT: [SYSMGR] OPERATOR.LOG;8
  1295.  
  1296. %%%%%%%%%% OPCOM, 16-JUL-1988 12:10:32.20
  1297. Operator _AVALON$OPA0: has been disabled, username SYSTEM
  1298.  
  1299.            SYSTEM SHUTDOWN COMPLETE -- USE CONSOLE TO HALT SYSTEM
  1300.  
  1301. ------------------------------------------------------------------
  1302.  
  1303. 2.10.1.2 DEFINING SHUTDOWN$INFORM_NODES
  1304.  
  1305. Before you execute SYS$SYSTEM:SHUTDOWN.COM, you can define the logical name
  1306. SHUTDOWN$INFORM_NODES to be a list of cluster member nodes.  The nodes listed
  1307. in SHUTDOWN$INFORM_NODES will be notified when the system is shutdown, as shown
  1308. in the following example:
  1309.  
  1310. $  DEFINE SHUTDOWN$INFORM_NODES "NODE1,NODE2,NODE3"
  1311. $   @SYS$SYSTEM:SHUTDOWN
  1312.  
  1313. If you define SHUTDOWN$INFORM_NODES and then execute SYS$SYSTEM:SHUTDOWN.COM,
  1314. all cluster member nodes included in the list are notified of the shutdown.
  1315. Users on the node that is being shut down are always notified regardless of
  1316. whether you define SHUTDOWN$INFORM_NODES.  If you omit the name of the node
  1317. that is being shut down from the list specified in the DEFINE command, the name
  1318. is automatically added to the list by the SHUTDOWN.COM procedure.
  1319.  
  1320. 2.10.2  EMERGENCY SHUTDOWN W/ OPCCRASH
  1321.  
  1322. This section describes how to halt the system immediately w/out performing any
  1323. of the housekeeping functions that ensure an orderly shutdown.  Usually, you
  1324. shut down the system using the orderly shutdown procedure.  You use the
  1325. OPCCRASH procedure only if SHUTDOWN.COM fails.  OPCCRASH performs only the
  1326. following minimal housekeeping functions:
  1327.  
  1328. :  Marks the system disk for dismount and empties all file system data caches.
  1329.  
  1330. :  Writes the modified page list back tot he disk.  This ensures that all
  1331.    writable section files are updated to their correct state before the system
  1332.    crashes and all in-memory data is lost.
  1333.  
  1334. To perform this procedure, you must have the CMKRNL privilege.  You can enter
  1335. the commands from any terminal.
  1336.  
  1337.  
  1338. 1.  Enter the following command to force an immediate shutdown of the system.
  1339.     $ RUN SYS$SYSTEM:OPCCRASH
  1340.  
  1341. 2.  If the system fails to respond after a few minutes, use the CRASH procedure
  1342.     or, if your system does not have a CRASH procedure, enter the emergency
  1343.     shutdown commands described in your VAX processor installation/operation
  1344.     guide.
  1345.  
  1346. 3.  At the system console, the following message is displayed:
  1347.     SYSTEM SHUTDOWN COMPLETE -- USE CONSOLE TO HALT SYSTEM
  1348.  
  1349. 4.  Halt the system.
  1350.  
  1351. EXAMPLE 2-2 ILLUSTRATES AN EMERGENCY SHUTDOWN USING THE OPCCRASH PROCEDURE
  1352.  
  1353. EXAMPLE 2-2:
  1354.  
  1355. $ RUN SYS$SYSTEM:OPCCRASH
  1356.     SYSTEM SHUTDOWN COMPLETE -- USE CONSOLE TO HALT SYSTEM
  1357.  
  1358. ( hit the Control Key then the letter P ) CONTROL/P
  1359. >>>HALT
  1360.  
  1361.      HALTED AT 8000708A
  1362.  
  1363.                                 [ END OF 02.11 ]
  1364. [OTHER WORLD BBS]
  1365.