- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: how to make shutdown.com reboot without asking...
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
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
тАО10-02-2010 08:11 AM
тАО10-02-2010 08:11 AM
from a user account, i use the following command to reboot the system
$@sys$system:shutdown
this asks lot of questions before it reboots the system.
if i reboot system frequently and have fixed answers for the questions then
answering the above question everytime is annoying.
from system account, i heard there is a easier way to reboot using a reboot symbol.
is this reboot symbol available for user account ?
else, any other quick way to issue a reboot command so that the above command does not ask questions for a user account?
Scotty
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2010 08:27 AM
тАО10-02-2010 08:27 AM
SolutionDefine some symbols which call SYS$SYSTEM:SHUTDOWN with pre-set values/answers.
:
SYS$COMMON:[SYSMGR]LOGIN.COM;1
:
$ SHUTDOWN == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER NO NONE"
$ REBOOT == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER YES NONE"
$ SHUTDOWN1 == "@SYS$SYSTEM:SHUTDOWN"
Gotta say... SYS$SYSTEM:SHUTDOWN.COM is pretty lame is being totally undocumented.
Would it have cost too much to enumerate the arguments to it, and its ASK subroutine?
Jeez, what were we thinking? (Were we thinking?)
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2010 08:42 AM
тАО10-02-2010 08:42 AM
Re: how to make shutdown.com reboot without asking questions everytime
i tried your suggestion, but when i issue the reboot command, it asks questions again
$REBOOT == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER YES NONE"
$REBOOT
SHUTDOWN -- Perform an Orderly System Shutdown
on node DISNEY
Do you really want to shutdown node DISNEY [NO]?
is my step correct?
Scotty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2010 08:49 AM
тАО10-02-2010 08:49 AM
Re: how to make shutdown.com reboot without asking questions everytime
Maybe you have a LOCAL symbol defined which takes precedence?
$ SHOW SYMB REB*
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2010 08:56 AM
тАО10-02-2010 08:56 AM
Re: how to make shutdown.com reboot without asking questions everytime
--Works for me! Dang... now I have to reboot! :-).
oopsie, that was funny. i wont laugh much as it was because of me :)
no symbol is defined.
$ SHOW SYMB REB*
REBOOT == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER YES NONE"
$
this works for me when i log in from system account. but from user account it never works for me.
did it work for you from a user account ?
Scotty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2010 09:20 AM
тАО10-02-2010 09:20 AM
Re: how to make shutdown.com reboot without asking questions everytime
Scotty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2010 09:36 AM
тАО10-02-2010 09:36 AM
Re: how to make shutdown.com reboot without asking questions everytime
1) I needed to reboot anyway to stop/start the windows net service msipcap, to get the network going after a pause for my freeAxp session.
2) I ran as a user 'hein', UIC 2,1, all privs.
3) Which OpenVMS version?
4) does not work for me ...
It does not shut down? errors? Asks anyway?
Hmmm....
Maybe somebody / something gave the system a 'better' SHUTDOWN.COM
Check for older versions and/or root specific versions versus SYS$COMMON:[SYSEXE]
Just try a run with verification on?!
$ define SHUTDOWN$VERIFY x
$ set veri
$ @SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER YES NONE
:
It should run into lines like:
$if p2 .eqs. "" then recurse ASK shutdown$ -
"Reason for shutdown" "Standalone" s
The 'recurse' is a silly (very silly IMHO) obfuscation of 'CALL' , and should not be called if there is a p2
Or just read the command file and see what gives (or not).
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2010 09:50 AM
тАО10-02-2010 09:50 AM
Re: how to make shutdown.com reboot without asking questions everytime
i should do tests better.
after defining the symbol you have given, this what happens
----
$REBOOT == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER YES NONE"
$REBOOT
SHUTDOWN -- Perform an Orderly System Shutdown
on node DISNEY
Do you really want to shutdown node DISNEY [NO]?
----
if i answer yes, then this will not ask any further questions and reboots. great.
can i make the reboot symbol skip the above question also ?
i am using V83I
Scotty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2010 10:05 AM
тАО10-02-2010 10:05 AM
Re: how to make shutdown.com reboot without asking questions everytime
It comes from this code in SHUTDOWN.COM
$if f$getdvi( "sys$command", "set_host_terminal" )
$then
$recurse ASK shutdown$ -
"Do you really want to shutdown node ''nodename'" -
So that's why it works for me, being on the console because my network was down, and not for you.
You can not make that go away without changing the code.
You could SUBMIT the shutdown command as alternative.
I suspect that now you know it is just the 1 more question you'll live with it. But I would have no qualm changing shutdown.com for this reason. Just don't complain if some day you accidental shutdown DISNEY whilst intending to shut down an other system.
Ok, back to real work... in the garden and stuff.
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2010 12:29 AM
тАО10-03-2010 12:29 AM
Re: how to make shutdown.com reboot without asking questions everytime
Beware that if you shutdown from certain networked sessions the shutdown is likely to hang when your session is disconnected. Kind of, "we're shutting down. Oh? What happened to the process that was shutting us down? We'd better wait and see what happens," and you have to go visit the computer room where the system is and either login on the console (if you can) or power cycle the box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2010 04:45 AM
тАО10-03-2010 04:45 AM
Re: how to make shutdown.com reboot without asking questions everytime
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2010 10:02 AM
тАО10-03-2010 10:02 AM
Re: how to make shutdown.com reboot without asking questions everytime
$ 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 08:28 AM
тАО10-04-2010 08:28 AM
Re: how to make shutdown.com reboot without asking questions everytime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2010 05:03 AM
тАО11-16-2010 05:03 AM
Re: how to make shutdown.com reboot without asking questions everytime
Scotty