home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 22029 < prev    next >
Encoding:
Text File  |  1993-01-27  |  4.2 KB  |  88 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!sdd.hp.com!decwrl!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!ryn.mro4.dec.com!star.enet.dec.com!parris
  3. From: parris@star.enet.dec.com (Keith B. Parris)
  4. Subject: Re: Remotely rebooting vms
  5. Message-ID: <1993Jan26.144801.25061@ryn.mro4.dec.com>
  6. Sender: news@ryn.mro4.dec.com (USENET News System)
  7. Organization: Digital Equipment Corporation
  8. References: <1993Jan14.114547.279@vulcan.resmel.bhp.com.au> <1993Jan15.172445.18573@nessie.mcc.ac.uk>,<1993Jan15.192425.13304@dbased.nuo.dec.com> <1j8v9eINNng8@gap.caltech.edu>
  9. Date: 26 JAN 93 09:20:51 EST
  10. Lines: 76
  11.  
  12.  
  13. In article <1j8v9eINNng8@gap.caltech.edu>, carl@SOL1.GPS.CALTECH.EDU (Carl J
  14. Lydick) writes... 
  15. >In article <1993Jan15.192425.13304@dbased.nuo.dec.com>,
  16. >lionel@quark.enet.dec.com (Steve Lionel) writes: 
  17.   ... 
  18. >>But to the point (or points)...  First, the major reason VMS doesn't shut down
  19. >>to the console prompt is that the way to do that is to execute a HALT
  20. >>instruction and since most people have their systems set up to do a reboot
  21. >>on halt, that's not very useful. 
  22. >Actually, the options are:
  23. >    1)  Do a reboot on a BUGCHECK; or
  24. >    2)  Don't to a reboot on a BUGCHECK;
  25.  
  26. You're probably thinking of BUGREBOOT.  What Steve was probably talking about
  27. was the default HALT action setting stored in NVRAM by the console firmware,
  28. which controls what happens when a HALT instruction is executed in kernel mode
  29. (unless VMS specifies a different action by writing to another area in NVRAM). 
  30. The default action setting is controlled by: 
  31. >>> SET HALT n               !on 3100s and VAXstation 4000s, or
  32. >>> T 53
  33.     2 ? >>> n                !on 2000s
  34. The default setting is 2, which means to reboot on a HALT.  You can set it
  35. to 3, which causes an entry to console mode on a HALT, instead of a reboot.
  36.  
  37. When you specify to SHUTDOWN.COM that an automatic reboot is desired, VMS
  38. overrides this default action and a reboot occurs.  Otherwise, if a HALT
  39. instruction were to be executed in kernel mode, this setting controls the
  40. behavior.  It would be nice if VMS would allow you to specify during shutdown
  41. that you want to enter console mode, but today, after printing out the SHUTDOWN
  42. COMPLETE message, it just enters an infinite loop inside EXCEPTION.EXE, at
  43. location 4022(hex) for V5.5-2, last I looked. 
  44.  
  45. If you wanted to use the halt action setting to halt in console mode, you'd
  46. want to execute a HALT instruction after shutdown was complete.  The most
  47. obvious way might be to patch EXCEPTION.EXE, but following is a way using
  48. supported tools:
  49.  
  50. Set things up in NCP on the boot node(s) so a reboot will load an image which
  51. does a HALT instruction.  The READ_ADDR.SYS program, which is normally used to
  52. find out the Ethernet address of a satellite node, just happens to do a HALT
  53. instruction when it's run, and is readily available, so it will do the job
  54. nicely. 
  55.  
  56. To HALT the satellite on the next reboot attempt:
  57.  
  58. $ MCR NCP
  59. NCP> CLEAR NODE satellite LOAD ASSIST PARAMETER
  60. NCP> CLEAR NODE satellite LOAD ASSIST AGENT
  61. NCP> SET NODE satellite LOAD FILE MOM$LOAD:READ_ADDR.SYS
  62.  
  63. Now, shut the satellite down normally, but with an immediate reboot specified. 
  64.  
  65. $ MCR SYSMAN
  66. SYSMAN> SET ENVIRONMENT/NODE=satellite
  67. SYSMAN> DO @SYS$UPDATE:AUTOGEN REBOOT
  68.  
  69. On reboot of the satellite, the READ_ADDR.SYS program will be loaded, dutifully
  70. print out the Ethernet address, and the system will "halt" in console mode. 
  71.  
  72. Later, when you're ready to allow the satellite to boot normally, you need
  73. to fix up the node information in NCP, so that the satellite will load VMS,
  74. rather than the READ_ADDR.SYS program, when it is booted. 
  75.  
  76. To allow the satellite to reboot normally:
  77.  
  78. $ MCR NCP
  79. NCP> CLEAR NODE satellite LOAD FILE
  80. NCP> SET NODE satellite ALL
  81. __________---_---_-_-_-_-_____-_----____---__-__-_-_-----_-_--_--___-_-__---__-_
  82. Keith B. Parris, Digital Equipment Corporation, Alpha VMS Clusters & I/O Group
  83. ----_-____-_--_-__-_---_-___-_-_-_--__-_-__---__-_---_-___-_-_-_-_____--_--___-_
  84. Anything blatantly opinionated or which is later found to be inaccurate was
  85. mine, of course.  Digital gets the credit for any actual facts which appear.
  86. -_-_--__-_-__----___---__-__-_-_-_-_____-__--_____---_-___-_-_-_--__-_--_--___-_
  87.