<?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: SYS$COMMAND and OPA0 During System Startup in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012787#M79883</link>
    <description>In line with Art's response, this has worked for many years at our site:&lt;BR /&gt;&lt;BR /&gt;$ FULL:&lt;BR /&gt;$       do_full :== "TRUE"&lt;BR /&gt;$       say "   Startup Options:"&lt;BR /&gt;$       say "   ---------------&lt;BR /&gt;$       say "   Q - Quick (Full) Bring system up with batch/logins enabled"&lt;BR /&gt;$       say "   S - Standalone   Bring system up with nobatch/nologins"&lt;BR /&gt;$       say "   M - Min startup  Exit from SYSTARTUP_VMS right now"&lt;BR /&gt;$       say "   V - Set verify   True Verify on and ask for another option"&lt;BR /&gt;$       say ""&lt;BR /&gt;$!      ************************************&lt;BR /&gt;$       valid_options:== "QSMV"&lt;BR /&gt;$       open console opa0:&lt;BR /&gt;$ get_startup:&lt;BR /&gt;$       call test_cpus&lt;BR /&gt;$       read/time=60/error=timeout/prompt="Startup Option: " console input&lt;BR /&gt;$       startup == f$edit( input, "TRIM,UPCASE" )&lt;BR /&gt;$ timeout:&lt;BR /&gt;$       pos = f$locate( startup, valid_options )&lt;BR /&gt;$       if pos .eq. f$length( valid_options ) then $goto get_startup&lt;BR /&gt;$       if startup .nes. "V" then $goto skip_verify&lt;BR /&gt;$       set ver                                 ! enable verify&lt;BR /&gt;$       goto get_startup&lt;BR /&gt;$ SKIP_VERIFY:&lt;BR /&gt;$       close console&lt;BR /&gt;$       this_node = f$getsyi("nodename")&lt;BR /&gt;$       if startup .eqs. "S" then startup$interactive_logins == 0              &amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After 60 seconds, the boot will continue.&lt;BR /&gt;&lt;BR /&gt;This will not work if logging is enabled via STARTUP_P2.&lt;BR /&gt;&lt;BR /&gt;-Jeff&lt;BR /&gt;</description>
    <pubDate>Wed, 08 Nov 2006 12:03:36 GMT</pubDate>
    <dc:creator>Jeffrey Goodwin</dc:creator>
    <dc:date>2006-11-08T12:03:36Z</dc:date>
    <item>
      <title>SYS$COMMAND and OPA0 During System Startup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012780#M79876</link>
      <description>I'm running VMS 7.3-2 on a GS1280 Alpha.  I need to prompt an operator during system startup at OPA0 for input.  Typical DCL won't cut it because it appears that sys$command and sys$input behave a little different during system startup.  &lt;BR /&gt;&lt;BR /&gt;Can anyone present a simple script or the magic syntax one needs to accomplish this feat.  I remember doing it in the past with something along the lines as an open command but I just can't remember the full syntax.  &lt;BR /&gt;&lt;BR /&gt;Currently using the 'ask := read sys$command /prompt='.  No output or prompt for input ever appears at OPA0.</description>
      <pubDate>Tue, 07 Nov 2006 18:03:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012780#M79876</guid>
      <dc:creator>Manny DeAssis</dc:creator>
      <dc:date>2006-11-07T18:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$COMMAND and OPA0 During System Startup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012781#M79877</link>
      <description>This sounds like a very bad idea, but where&lt;BR /&gt;in the start-up?  SYSTARTUP_VMS.COM?&lt;BR /&gt;&lt;BR /&gt;I don't know when OPA0 gets created/defined,&lt;BR /&gt;but you could try opening that, and then&lt;BR /&gt;reading and writing there (in DCL).&lt;BR /&gt;&lt;BR /&gt;Why would anyone wish to do this?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] I just can't remember the full syntax.&lt;BR /&gt;&lt;BR /&gt;"HELP OPEN"?</description>
      <pubDate>Tue, 07 Nov 2006 18:56:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012781#M79877</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-11-07T18:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$COMMAND and OPA0 During System Startup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012782#M79878</link>
      <description>Depening on exactly what it is you need to&lt;BR /&gt;ask, have you considered a conversational&lt;BR /&gt;boot and setting one of the USERx SYSGEN&lt;BR /&gt;parameters?&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Nov 2006 21:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012782#M79878</guid>
      <dc:creator>David B Sneddon</dc:creator>
      <dc:date>2006-11-07T21:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$COMMAND and OPA0 During System Startup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012783#M79879</link>
      <description>Manny,&lt;BR /&gt;&lt;BR /&gt;have you tried reading from SYS$OUTPUT?&lt;BR /&gt;Don't forget to specify a timeout at least, so that the startup will finish even if no operator is available. Personally I would also prefer the setting of USERx SYSGEN parameters.&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Wed, 08 Nov 2006 00:36:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012783#M79879</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-11-08T00:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$COMMAND and OPA0 During System Startup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012784#M79880</link>
      <description>Manny,&lt;BR /&gt;&lt;BR /&gt;you could use '$ OPEN/READ/WRITE cons OPA0:' to open a channel to OPA0: and then use '$ READ cons ...' to read from the physical OPA0: console terminal during boot. Consider to specify a timeout value on the read and take the appropriate action, if the read times out.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Wed, 08 Nov 2006 01:47:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012784#M79880</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-11-08T01:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$COMMAND and OPA0 During System Startup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012785#M79881</link>
      <description>try something like this &lt;BR /&gt;Phil&lt;BR /&gt;&lt;BR /&gt;$       open/read oper_console opa0:&lt;BR /&gt;$       read -&lt;BR /&gt;                /time_out = 10 -&lt;BR /&gt;                /prompt = "Is this startup a world startup [Y] ?" -&lt;BR /&gt;                oper_console startup_answer&lt;BR /&gt;$       close oper_console&lt;BR /&gt;$       if startup_answer .eqs. "" then startup_answer = "Y"&lt;BR /&gt;$       if startup_answer then goto not_stand_alone</description>
      <pubDate>Wed, 08 Nov 2006 02:36:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012785#M79881</guid>
      <dc:creator>Phil.Howell</dc:creator>
      <dc:date>2006-11-08T02:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$COMMAND and OPA0 During System Startup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012786#M79882</link>
      <description>&lt;!--!*#--&gt;This bit of code has worked here for "many" years (Dated 10-May-1990) ... hopefully it displays somewhat close with the "magic" Retain Format button ...&lt;BR /&gt;&lt;BR /&gt;In SYSTARTUP_VMS.COM :&lt;BR /&gt;&lt;BR /&gt;$ ans$time_period = 60! time out period = 60 seconds&lt;BR /&gt;$!&lt;BR /&gt;$ Open/Read/Error=NO_CONSOLE console_device          opa0:&lt;BR /&gt;$&lt;BR /&gt;$!&lt;BR /&gt;$! Display startup menu and ask for startup type&lt;BR /&gt;$!&lt;BR /&gt;$       tell ""&lt;BR /&gt;$       tell " The following system startup choices are available:"&lt;BR /&gt;$       tell " "&lt;BR /&gt;$       tell "        N - normal system startup"&lt;BR /&gt;$       tell "        S - normal system startup, allow no users"&lt;BR /&gt;$       tell "        C - customize startup process"&lt;BR /&gt;$       tell "        F - failure reboot"&lt;BR /&gt;$STARTUP_CHOICE:&lt;BR /&gt;$       tell ""&lt;BR /&gt;$       read/prompt="---&amp;gt; Enter startup choice (&lt;N&gt;,S,C,F):   " -&lt;BR /&gt;                /time_out='ans$time_period      -&lt;BR /&gt;                /error=DEFAULT_CHOICE/end_of_file=DEFAULT_CHOICE        -&lt;BR /&gt;                                console_device  startup_type&lt;BR /&gt;$       goto PARSE_CHOICE&lt;BR /&gt;&lt;BR /&gt;Works on VAX systems (v6.2) with VT terminals as consoles and on Alpha's (v7.2-2) running DecWindows.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;/N&gt;</description>
      <pubDate>Wed, 08 Nov 2006 09:17:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012786#M79882</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2006-11-08T09:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$COMMAND and OPA0 During System Startup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012787#M79883</link>
      <description>In line with Art's response, this has worked for many years at our site:&lt;BR /&gt;&lt;BR /&gt;$ FULL:&lt;BR /&gt;$       do_full :== "TRUE"&lt;BR /&gt;$       say "   Startup Options:"&lt;BR /&gt;$       say "   ---------------&lt;BR /&gt;$       say "   Q - Quick (Full) Bring system up with batch/logins enabled"&lt;BR /&gt;$       say "   S - Standalone   Bring system up with nobatch/nologins"&lt;BR /&gt;$       say "   M - Min startup  Exit from SYSTARTUP_VMS right now"&lt;BR /&gt;$       say "   V - Set verify   True Verify on and ask for another option"&lt;BR /&gt;$       say ""&lt;BR /&gt;$!      ************************************&lt;BR /&gt;$       valid_options:== "QSMV"&lt;BR /&gt;$       open console opa0:&lt;BR /&gt;$ get_startup:&lt;BR /&gt;$       call test_cpus&lt;BR /&gt;$       read/time=60/error=timeout/prompt="Startup Option: " console input&lt;BR /&gt;$       startup == f$edit( input, "TRIM,UPCASE" )&lt;BR /&gt;$ timeout:&lt;BR /&gt;$       pos = f$locate( startup, valid_options )&lt;BR /&gt;$       if pos .eq. f$length( valid_options ) then $goto get_startup&lt;BR /&gt;$       if startup .nes. "V" then $goto skip_verify&lt;BR /&gt;$       set ver                                 ! enable verify&lt;BR /&gt;$       goto get_startup&lt;BR /&gt;$ SKIP_VERIFY:&lt;BR /&gt;$       close console&lt;BR /&gt;$       this_node = f$getsyi("nodename")&lt;BR /&gt;$       if startup .eqs. "S" then startup$interactive_logins == 0              &amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After 60 seconds, the boot will continue.&lt;BR /&gt;&lt;BR /&gt;This will not work if logging is enabled via STARTUP_P2.&lt;BR /&gt;&lt;BR /&gt;-Jeff&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Nov 2006 12:03:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012787#M79883</guid>
      <dc:creator>Jeffrey Goodwin</dc:creator>
      <dc:date>2006-11-08T12:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$COMMAND and OPA0 During System Startup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012788#M79884</link>
      <description>I would like to thank everyone for their speedy responses.  As it turns out (via trial &amp;amp; error) I found the command I needed.  It's basically the same command and concept that Volker, Phil &amp;amp; Art had suggested.  I had a need for this a few years back.  I just couldn't remember how we did it.  &lt;BR /&gt;&lt;BR /&gt;Now we need the same concept applied for contingency.  If we're in an actual contingency we basically come up with all our settings intact.  However if we're having a test we usually implement 'special settings' on the fly during system startup.  Applying the 'open file opa0' during system startup is what I was looking for.  &lt;BR /&gt;&lt;BR /&gt;Thanks again to all who responded.</description>
      <pubDate>Wed, 08 Nov 2006 13:17:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012788#M79884</guid>
      <dc:creator>Manny DeAssis</dc:creator>
      <dc:date>2006-11-08T13:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$COMMAND and OPA0 During System Startup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012789#M79885</link>
      <description>Oh, and thanks to you too Jeff.</description>
      <pubDate>Wed, 08 Nov 2006 13:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-command-and-opa0-during-system-startup/m-p/5012789#M79885</guid>
      <dc:creator>Manny DeAssis</dc:creator>
      <dc:date>2006-11-08T13:24:50Z</dc:date>
    </item>
  </channel>
</rss>

