<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Detecting restart in SYSTARTUP_VMS in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885545#M66805</link>
    <description>All,&lt;BR /&gt;Does any one know of a lexical function that can tell me if the server was shutdown normally or if it crashed ?&lt;BR /&gt;&lt;BR /&gt;I have searched for a long time without any luck :), if there is such a thing, then that should help Jack&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;Mobeen</description>
    <pubDate>Mon, 14 Feb 2005 05:47:53 GMT</pubDate>
    <dc:creator>Mobeen_1</dc:creator>
    <dc:date>2005-02-14T05:47:53Z</dc:date>
    <item>
      <title>Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885537#M66797</link>
      <description>I want to add DCL to SYSTARTUP_VMS.COM&lt;BR /&gt;that only runs after a crash-restart.&lt;BR /&gt;What can I check for that would indicate&lt;BR /&gt;a restart as opposed to a normal boot?  TIA</description>
      <pubDate>Mon, 14 Feb 2005 01:50:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885537#M66797</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2005-02-14T01:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885538#M66798</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;One solution (there are probably many) that springs&lt;BR /&gt;to mind:&lt;BR /&gt;&lt;BR /&gt;In SYSHUTDWN, create a marker file somewhere to indicate&lt;BR /&gt;a normal shutdown.  In a crash, this will not be created.&lt;BR /&gt;In SYSTARTUP_VMS, if the file exists then it was a&lt;BR /&gt;"normal" shutdown, if not then there was a crash.&lt;BR /&gt;DELETE the file in SYSTARTUP_VMS.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Dave&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Feb 2005 01:55:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885538#M66798</guid>
      <dc:creator>David B Sneddon</dc:creator>
      <dc:date>2005-02-14T01:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885539#M66799</link>
      <description>Jack,&lt;BR /&gt;I thought of something like Dave suggested, you can also look at DECevent or something.&lt;BR /&gt;&lt;BR /&gt;But, i was researching if there is any lexical function that can tell this. I was looking into the lexical arguments for such and still doing so. If we could get some lexical, then it will probbaly be the best solution&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;Mobeen</description>
      <pubDate>Mon, 14 Feb 2005 02:01:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885539#M66799</guid>
      <dc:creator>Mobeen_1</dc:creator>
      <dc:date>2005-02-14T02:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885540#M66800</link>
      <description>I probably should have added --&lt;BR /&gt;&lt;BR /&gt;the best solution will likely be determined by&lt;BR /&gt;exactly what it is you are trying to achieve.&lt;BR /&gt;&lt;BR /&gt;Dave.&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Feb 2005 02:01:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885540#M66800</guid>
      <dc:creator>David B Sneddon</dc:creator>
      <dc:date>2005-02-14T02:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885541#M66801</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;if the system has a valid SYSDUMP.DMP file, you can check during startup, whether a new dumpfile has been written, i.e. whether the system is now just booting after a valid system crash:&lt;BR /&gt;&lt;BR /&gt;- OpenVMS Alpha (V6.2 or higher):&lt;BR /&gt;&lt;BR /&gt;$ directory/modify/since="''f$getsyi("boottime")'" -&lt;BR /&gt;  clue$collect:clue$'F$GETSYI("NODENAME")'_%%%%%%_%%%%.lis&lt;BR /&gt;$ IF $STATUS&lt;BR /&gt;$ THEN&lt;BR /&gt;$! system is booting after a valid crash&lt;BR /&gt;$ ENDIF&lt;BR /&gt;&lt;BR /&gt;- OpenVMS VAX (V6.0 or higher)&lt;BR /&gt;&lt;BR /&gt;$ SEARCH CLUE$OUTPUT:CLUE$LAST_'F$GETSYI("NODENAME")'.LIS "Operator Shutdown on Node"&lt;BR /&gt;$ IF $STATUS .EQ. %X08D78053 ! %SEARCH-I-NOMATCHES&lt;BR /&gt;$ THEN&lt;BR /&gt;$! system is booting after a valid crash&lt;BR /&gt;$ ENDIF&lt;BR /&gt;&lt;BR /&gt;This logic depends on the fact that a new 'CLUE file' is being created by the OpenVMS system startup procedures. It has been successfully used to automatically log/mail system crash information.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Mon, 14 Feb 2005 02:15:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885541#M66801</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-02-14T02:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885542#M66802</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;actually, _WE_ want to be triggered earlier.&lt;BR /&gt;&lt;BR /&gt;On our cluster, every node is pretty frequently checking the still-presence of all other know nodes.&lt;BR /&gt;&lt;BR /&gt;If one is missing, immediately a pager call is sent to the stand-by system manager.&lt;BR /&gt;&lt;BR /&gt;Of course, you do not want that on a scheduled shutdown.&lt;BR /&gt;&lt;BR /&gt;Our implementation of this:&lt;BR /&gt;create a clusterwide logical name with a list of the active cluster nodes.&lt;BR /&gt;In SYSHUTDWN remove the shutting node from that list.&lt;BR /&gt;Also, to prevent a continuous stream of pager calls, remove that name after sending a pager call.&lt;BR /&gt;&lt;BR /&gt;Potential caveat: who will signal if the whole site goes down?&lt;BR /&gt;For us no heavy worry, because our cluster is multi-site.&lt;BR /&gt;A bigger worry is the fact that the pager mechanism depends on the phone being available &amp;amp; functioning!&lt;BR /&gt;&lt;BR /&gt;fwiw,  &lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;Jan</description>
      <pubDate>Mon, 14 Feb 2005 03:27:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885542#M66802</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-02-14T03:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885543#M66803</link>
      <description>Jan,&lt;BR /&gt;This works on a Cluster, but what happens if the VMS system that Jack is trying to implement is a stand-alone server and not part of a VMS cluster.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Mobeen</description>
      <pubDate>Mon, 14 Feb 2005 04:17:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885543#M66803</guid>
      <dc:creator>Mobeen_1</dc:creator>
      <dc:date>2005-02-14T04:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885544#M66804</link>
      <description>Mobeen, &lt;BR /&gt;&lt;BR /&gt;that's correct, this is a cluster-only solution.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;Jan</description>
      <pubDate>Mon, 14 Feb 2005 05:34:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885544#M66804</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-02-14T05:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885545#M66805</link>
      <description>All,&lt;BR /&gt;Does any one know of a lexical function that can tell me if the server was shutdown normally or if it crashed ?&lt;BR /&gt;&lt;BR /&gt;I have searched for a long time without any luck :), if there is such a thing, then that should help Jack&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;Mobeen</description>
      <pubDate>Mon, 14 Feb 2005 05:47:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885545#M66805</guid>
      <dc:creator>Mobeen_1</dc:creator>
      <dc:date>2005-02-14T05:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885546#M66806</link>
      <description>Mobeen,&lt;BR /&gt;&lt;BR /&gt;there is no lexical function or anything similar and simple designed into OpenVMS to find out, if the system is booting after a crash or a shutdown.&lt;BR /&gt;&lt;BR /&gt;Note that there also is no possibility to find out, if someone has just done an external halt and boot (or hit the RESTART button).&lt;BR /&gt;&lt;BR /&gt;You could also try SEARCH OPERATOR.LOG;-1 for the string "'nodename' shutdown was requested by the operator"&lt;BR /&gt;&lt;BR /&gt;Or you could try to look at the most recent errors in ERRLOG.SYS and look for a bugcheck errlog entry.&lt;BR /&gt;&lt;BR /&gt;Looking for the CLUE file was the best method we could come up with, when we created the AutoCLUE (later called CCAT) startup command procedures for automatic crash call logging. &lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Mon, 14 Feb 2005 06:49:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885546#M66806</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-02-14T06:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885547#M66807</link>
      <description>I remember reading years ago that when the&lt;BR /&gt;ANALYZE/CRASH cmd executes and finds a valid&lt;BR /&gt;dump file, the first thing it does is to change something in the first block of the dump file so that a subsequent crash will not cause a reanalysis of the file.&lt;BR /&gt;&lt;BR /&gt;If I'm recalling this correctly, does any know what is being changed in the dump file for a crash-restart indication?</description>
      <pubDate>Mon, 14 Feb 2005 12:52:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885547#M66807</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2005-02-14T12:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885548#M66808</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;sure, the OLDDUMP bit is set, once SDA has initially opened a system dump file.&lt;BR /&gt;&lt;BR /&gt;From SYS$LIBRARY:LIB.REQ:&lt;BR /&gt;&lt;BR /&gt;macro DMP$V_OLDDUMP = 4,0,1,0 %;        !  SET IF DUMP ALREADY ANALYZED&lt;BR /&gt;&lt;BR /&gt;This is the BLISS structure definition and maps to bit 0 of the 2nd longword in SYSDUMP.DMP.&lt;BR /&gt;&lt;BR /&gt;On OpenVMS Alpha, CLUE$SDA evaluates this bit and responds with a &lt;BR /&gt;&lt;BR /&gt;%CLUE-I-ALRDYANA, dumpfile has already been analyzed&lt;BR /&gt;&lt;BR /&gt;message (see SYS$MANAGER:CLUE$STARTUP_node.LOG), when executing the CLUE HISTORY command during startup.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Mon, 14 Feb 2005 13:14:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885548#M66808</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-02-14T13:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885549#M66809</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;Volker's explanation IS correct to one side:&lt;BR /&gt;_IF_ you have a valid new dump, _THEN_ this is the first reboot after a crash.&lt;BR /&gt;But, you can absolutely _NOT_ conclude to the reverse: a previously-read SYSDUMP does _NOT_ imply that the previous shutdown was operator-requested. It might well be, but it can also indicate that for any reason a dump was not/could not be written.&lt;BR /&gt;&lt;BR /&gt;^P immediately comes to mind, but consider this scenario: (we were bitten by it).&lt;BR /&gt;Two nodes, connected by one SCSI-bus to each other and to HSZ40 controllers.&lt;BR /&gt;In hindsight, one of the SCSI connector cables to one node was broken, but normally the broken edges touched. At irregular intervals (by vibration or temperature change probably) connection got interrupted.&lt;BR /&gt;That node crashed, but... no connection to the disks. And that constitutes a fairly strong reason for not writing a dump to disk!&lt;BR /&gt;&lt;BR /&gt;As a thought experiment, it is rather easy to construct configurations and/or power issues that somehow break at a point or a moment that _WILL_ prevent writing the dump.&lt;BR /&gt;&lt;BR /&gt;So, _NO_ valid dump does _NOT_ imply operator requested shutdown!&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;Jan&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 14 Feb 2005 15:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885549#M66809</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-02-14T15:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885550#M66810</link>
      <description>I appreciate everyone reminding me that I can't cover all possible scenarios, but at least catching a crash-restart is helpful.&lt;BR /&gt;&lt;BR /&gt;Volker,&lt;BR /&gt;&lt;BR /&gt;I took your info:&lt;BR /&gt;&lt;BR /&gt;...maps to bit 0 of the 2nd longword in SYSDUMP.DMP&lt;BR /&gt;&lt;BR /&gt;and tried to confirm this by adding the following line to SYSTARTUP_VMS both before and after the ANA/CRASH statements:&lt;BR /&gt;&lt;BR /&gt;$  dump/blocks=end:1  sysdump.dmp&lt;BR /&gt;&lt;BR /&gt;but the output looked exactly the same!&lt;BR /&gt;Shouldn't I have been able to see the bit&lt;BR /&gt;in the longword being toggled?  Am I doing&lt;BR /&gt;something simple wrong in my test?&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Feb 2005 16:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885550#M66810</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2005-02-14T16:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885551#M66811</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;all-in-all I tend to the idea that David's suggestion comes closest to consistency.&lt;BR /&gt;&lt;BR /&gt;Maybe, there are 2 issues (one, a matter of policy, the other, rather low probability) that I can think of:&lt;BR /&gt;&lt;BR /&gt;1. How about operator requested shutdown requesting _NOT_ to execute site-specific shutdown?&lt;BR /&gt;You either equate that to a crash, OR you fiddle around with SHUTDOWN.COM, and be prepared for some consequences at upgrades.&lt;BR /&gt;&lt;BR /&gt;2. The system COULD potentially crash AFTER writing your "shutdown requested" file.&lt;BR /&gt;This would present a crash-during-shutdown as "operator requested shutdown".  But in this case, the executing operator might well have noted "something"   ???  And, here the "fresh dump check" might still help..&lt;BR /&gt;&lt;BR /&gt;Still,&lt;BR /&gt;far out the best consistency as far as I can reckon.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;Jan</description>
      <pubDate>Mon, 14 Feb 2005 17:00:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885551#M66811</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-02-14T17:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885552#M66812</link>
      <description>Jack, unfortunately we have seen cases where the system crashed without a crash dump.&lt;BR /&gt;Is this for a cluster? &lt;BR /&gt;For our clusters, we use a CLUSTER_MONITOR.COM which can be used to trigger a pager through DECtalk. However, this doesn't tell you whether there was crash or not.&lt;BR /&gt;&lt;BR /&gt;You may have to implement something realizing that it won't work all the time.&lt;BR /&gt;Writing a file at the end of the site specific operator shutdowns would filter out a lot of the shutdowns. Occasionally a system could crash after the file is written but that would normally be a low probability. Over time you would try to cover more shutdowns. Depending on a system dump being written is riskier. As others have stated there can be assorted reasons why a dump isn't written after a crash.&lt;BR /&gt;Lawrence</description>
      <pubDate>Mon, 14 Feb 2005 18:52:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885552#M66812</guid>
      <dc:creator>Lawrence Czlapinski</dc:creator>
      <dc:date>2005-02-14T18:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885553#M66813</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;CLUE$STARTUP.COM is run earlier than SYSTARTUP_VMS.COM and will automatically analyze the crash for you (creating a CLUE$COLLECT:CLUE$node_ddmmyy_hhmm.LIS file).&lt;BR /&gt;&lt;BR /&gt;So if you really want to see the OLDDUMP bit clear, you need to add your DUMP command to SYLOGICALS.COM. In SYSTARTUP_VMS.COM, it will be too late...&lt;BR /&gt;&lt;BR /&gt;May I repeat my suggestion to look at OPERATOR.LOG;-1 for the 'node' shutdown string (to see what I'm referring to, just try a TYPE/TAIL SYS$MANAGER:OPERATOR.LOG;-1 if the system has just been rebooted). If you want to known, if the system had been shut down normally, this is the place to look. You need to substitute the local nodename in the SEARCH command to not match shutdown messages from other nodes, i.e.:&lt;BR /&gt;&lt;BR /&gt;$ SEARCH SYS$MANAGER:OPERATOR.LOG;-1 -&lt;BR /&gt; " ''F$GETSYI("NODENAME")' shutdown was requested by the operator."&lt;BR /&gt;&lt;BR /&gt;If you include /WINDOW=(2,0) you'll also see when the shutdown happend and which user had done it.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Tue, 15 Feb 2005 02:35:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885553#M66813</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-02-15T02:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885554#M66814</link>
      <description>Also note that e.g. memory corruption may make your node hang instead of crash.&lt;BR /&gt;&lt;BR /&gt;I first only checked if clue created an analysis file shortly before the reboot. If yes, this was a crash. But I had multiple cases were the system simply hanged. So, now I have a site manager node pinging the important parts (node, hubs, sanswitch) and generating alarms when they are not seen. And we have a permanent decnet link between the node and the site manager node. If that link is dropped we also get an alarm.&lt;BR /&gt;&lt;BR /&gt;But of course these alarms are also given during a normal shutdown, in which case the operational guys are warned.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 15 Feb 2005 04:21:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885554#M66814</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2005-02-15T04:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885555#M66815</link>
      <description>I checked out your suggestion Volker -- apparently what you suggested won't work on every system.   I checked several Alphas running V7.2-1 and V7.3-2 here and the ones I checked do NOT have the "shutdown requested" string in the OPERATOR.LOG file.  This seems a bit odd to me, but in any case -- the important thing is that there is the "Logfile was closed by operator" message.  It is possible to search for that instead.  However, that message does not guarantee that the closing of the file was for the shutdown.  If however you're checking the end of the ;-1 version during a boot, I think that would be a reliable check.&lt;BR /&gt;&lt;BR /&gt;Another way that I have handled a similar requirement in the past was to create a detached process that runs all the time in the background.  It wakes up every few seconds and does 2 things -- it updates a timestamp in a file, and it checks for the appearance of the logical name SHUTDOWN$TIME.  SYS$SYSTEM:SHUTDOWN.COM defines the logical name in the system table when a shutdown is in progress.  The detached process was set up to check to see how close to the shutdown time it was and when it got to under 1 minute to do whatever final steps were needed to mark the shutdown and then exit.   Then on system startup the code checked to see how much time had elapsed and if a shutdown occurred.  It then wrote a log record recording the downtime.   If the downtime was not associated with a shutdown then a crash or system hang was assumed and logged appropriately ( with an accompanying email message to the system managers).&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Tue, 15 Feb 2005 09:00:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885555#M66815</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2005-02-15T09:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting restart in SYSTARTUP_VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885556#M66816</link>
      <description>Robert,&lt;BR /&gt;&lt;BR /&gt;Please check again.  I just tried the command on an AlphaServer 4100 5/400 running VMS V7.3-2.  At first it didn't work, and then I typed the tail of the log and noticed that I left the word "the" out of the search string.  I repeated the command again adding the missing "the" into the sentence and it worked as advertised.</description>
      <pubDate>Tue, 15 Feb 2005 15:39:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-restart-in-systartup-vms/m-p/4885556#M66816</guid>
      <dc:creator>Dale A. Marcy</dc:creator>
      <dc:date>2005-02-15T15:39:33Z</dc:date>
    </item>
  </channel>
</rss>

