Operating System - OpenVMS
1753864 Members
7711 Online
108809 Solutions
New Discussion юеВ

Re: how to make shutdown.com reboot without asking questions everytime

 
SOLVED
Go to solution
Hoff
Honored Contributor

Re: how to make shutdown.com reboot without asking questions everytime

There are posted examples of folks that have implemented local DCL-based solutions for a network-based SHUTDOWN, and there's also a fully-supported approach:

SYSMAN> SHUTDOWN NODE [/other-stuff]

With Apache running, it's also feasible to set up (for instance) a CGI shutdown command or, well, whatever. DCL is sufficiently capable to make that task feasible in a dozen or two lines of DCL.

Probably ten or twenty lines of DCL using DECnet, too, based on DCL DECnet task-to-task processing, too. Here's an example version that does almost all of what would be needed; everything but the SHUTDOWN itself:

http://h71000.www7.hp.com/wizard/wiz_0159.html

Some of those web-based tools HP is so fond of may (will?) have capabilities here, too, as will the OpenVMS Management Station, etc.

There are many ways to implement this.

And FWIW, there was a bug in the SHUTDOWN or the REBOOT symbols set in the system manager's LOGIN.COM in a release or two of OpenVMS, IIRC. (The argument order of one was briefly messed up, and this again from some dim memory.)

This SHUTDOWN stuff has been discussed; Google is your friend, and the manuals likely have fodder here, too.
Colin Butcher
Esteemed Contributor

Re: how to make shutdown.com reboot without asking questions everytime

How about this instead:

$ shutdown0 :== "mcr sysman shutdown node/min=0/noauto"

and:

$ reboot0 :== "mcr sysman shutdown node/min=0/auto"

or even (on IA64):

$ poweroff0 :== "mcr sysman shutdown node/min=0/noauto/power"

Or, why not set up special "shutdown", "reboot" and "poweroff" (IA64 only) accounts that someone can login to and that login will trigger an immediate shutdown / reboot / shutdown_and_poweroff. Make them privileged captive accounts, perhaps without passwords too!

Cheers, Colin.
Entia non sunt multiplicanda praeter necessitatem (Occam's razor).
Andy Bustamante
Honored Contributor

Re: how to make shutdown.com reboot without asking questions everytime

If you're enamored with GUI interfaces, with auto_action set to reboot you can request a crash from the Availability Manager which will lead to a system restart. No need to answer questions or worry about pesky application shutdown.

If you don't have time to do it right, when will you have time to do it over? Reach me at first_name + "." + last_name at sysmanager net
Scotty HD
Frequent Advisor

Re: how to make shutdown.com reboot without asking questions everytime

thanks everyone for help.

Scotty