- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- SYS$COMMAND and OPA0 During System Startup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 10:03 AM
тАО11-07-2006 10:03 AM
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.
Currently using the 'ask := read sys$command /prompt='. No output or prompt for input ever appears at OPA0.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 10:56 AM
тАО11-07-2006 10:56 AM
Re: SYS$COMMAND and OPA0 During System Startup
in the start-up? SYSTARTUP_VMS.COM?
I don't know when OPA0 gets created/defined,
but you could try opening that, and then
reading and writing there (in DCL).
Why would anyone wish to do this?
> [...] I just can't remember the full syntax.
"HELP OPEN"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 01:07 PM
тАО11-07-2006 01:07 PM
Re: SYS$COMMAND and OPA0 During System Startup
ask, have you considered a conversational
boot and setting one of the USERx SYSGEN
parameters?
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 04:36 PM
тАО11-07-2006 04:36 PM
Re: SYS$COMMAND and OPA0 During System Startup
have you tried reading from SYS$OUTPUT?
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.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 05:47 PM
тАО11-07-2006 05:47 PM
Solutionyou 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.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 06:36 PM
тАО11-07-2006 06:36 PM
Re: SYS$COMMAND and OPA0 During System Startup
Phil
$ open/read oper_console opa0:
$ read -
/time_out = 10 -
/prompt = "Is this startup a world startup [Y] ?" -
oper_console startup_answer
$ close oper_console
$ if startup_answer .eqs. "" then startup_answer = "Y"
$ if startup_answer then goto not_stand_alone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2006 01:17 AM
тАО11-08-2006 01:17 AM
Re: SYS$COMMAND and OPA0 During System Startup
In SYSTARTUP_VMS.COM :
$ ans$time_period = 60! time out period = 60 seconds
$!
$ Open/Read/Error=NO_CONSOLE console_device opa0:
$
$!
$! Display startup menu and ask for startup type
$!
$ tell ""
$ tell " The following system startup choices are available:"
$ tell " "
$ tell " N - normal system startup"
$ tell " S - normal system startup, allow no users"
$ tell " C - customize startup process"
$ tell " F - failure reboot"
$STARTUP_CHOICE:
$ tell ""
$ read/prompt="---> Enter startup choice (
/time_out='ans$time_period -
/error=DEFAULT_CHOICE/end_of_file=DEFAULT_CHOICE -
console_device startup_type
$ goto PARSE_CHOICE
Works on VAX systems (v6.2) with VT terminals as consoles and on Alpha's (v7.2-2) running DecWindows.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2006 04:03 AM
тАО11-08-2006 04:03 AM
Re: SYS$COMMAND and OPA0 During System Startup
$ FULL:
$ do_full :== "TRUE"
$ say " Startup Options:"
$ say " ---------------
$ say " Q - Quick (Full) Bring system up with batch/logins enabled"
$ say " S - Standalone Bring system up with nobatch/nologins"
$ say " M - Min startup Exit from SYSTARTUP_VMS right now"
$ say " V - Set verify True Verify on and ask for another option"
$ say ""
$! ************************************
$ valid_options:== "QSMV"
$ open console opa0:
$ get_startup:
$ call test_cpus
$ read/time=60/error=timeout/prompt="Startup Option: " console input
$ startup == f$edit( input, "TRIM,UPCASE" )
$ timeout:
$ pos = f$locate( startup, valid_options )
$ if pos .eq. f$length( valid_options ) then $goto get_startup
$ if startup .nes. "V" then $goto skip_verify
$ set ver ! enable verify
$ goto get_startup
$ SKIP_VERIFY:
$ close console
$ this_node = f$getsyi("nodename")
$ if startup .eqs. "S" then startup$interactive_logins == 0 >
After 60 seconds, the boot will continue.
This will not work if logging is enabled via STARTUP_P2.
-Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2006 05:17 AM
тАО11-08-2006 05:17 AM
Re: SYS$COMMAND and OPA0 During System Startup
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.
Thanks again to all who responded.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2006 05:24 AM
тАО11-08-2006 05:24 AM