- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- System shutdown impossible through SSH?
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
тАО11-24-2006 11:31 PM
тАО11-24-2006 11:31 PM
System shutdown impossible through SSH?
I log into 7.3-2 och 8.3 Alphas as [1,4] and issue:
$ mc sysman shutdown node
and it almost always end up only partially shuting down the system. I have to log on to the console and issue the command from there, then it works fine. Using sysman through SSH in a cluster works if I only shut down other nodes than the one I'm logged into.
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2006 07:21 AM
тАО11-25-2006 07:21 AM
Re: System shutdown impossible through SSH?
this is a known behaviour. You cant shutdown the system if you are logged in with ssh.
Try the follwing procedure. It creates a process and in the context of the created process the system will be shut down or rebooted (depends the last line of the procedure).
$ set ver
$ IF F$MODE() .EQS. "BATCH" THEN GOTO start_detached
$ depth = F$ENVIRONMENT("DEPTH")
$ IF depth .EQ. 0 THEN GOTO run_detached
$ GOTO start_detached
$!
$start_detached:
$ this_node=F$EDIT(F$GETSYI("NODENAME"),"COLLAPSE")
$ date=F$CVTIME("","comparison","DATE")
$ RUN SYS$SYSTEM:LOGINOUT.EXE -
/INPUT='F$ENVIRONMENT("PROCEDURE")' -
/OUTPUT='F$TRNLNM("SYS$LOGIN")'Shutdown_'this_node'_'date'.log -
/ERROR='f$trnlnm("sys$login")'Shutdown_'this_node'_'date'.log -
/PROC=SHUTDOWN -
/DETACHED
$ EXIT
$!
$run_detached:
$ SHUTDOWN == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER NO NONE"
$ REBOOT == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER YES REB"
$ REPL/ALL/BEL/URGENT "Detached REBOOT of ''F$GETSYI("NODENAME")'. PID is ''F$GETJPI("","PID")'"
$ REBOOT
Hope that helps
Regards
Heinz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2006 06:50 PM
тАО11-26-2006 06:50 PM
Re: System shutdown impossible through SSH?
when running on the local node, SYSMAN creates a subprocess of your current process to execute. When SSh gets stopped, your process dies and takes the subprocess with him. On other nodes in the cluster SYSMAN creates detached processes.
So if you specify a
SYSMAN>Set Environment /Node=yourself /User=System
before using the SHUTDOWN command, you may afterwads logout and the shutdown continues.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2006 05:11 AM
тАО11-28-2006 05:11 AM
Re: System shutdown impossible through SSH?
$ sysman
SYSMAN> set environment/node=0
Remote Password:
%SYSMAN-I-ENV, current command environment:
Individual nodes: 0
At least one node is not in local cluster
Username SYSTEM will be used on nonlocal nodes
SYSMAN> SHUTDOWN NODE
%SYSMAN-I-SHUTDOWN, SHUTDOWN request sent to node 0
SYSMAN>
SHUTDOWN message on NODEX from user SYSTEM at NODEX Batch 16:19:03
NODEX will shut down in 0 minutes; back up shortly via automatic reboot. Please
log off node NODEX.
Standalone
SYSMAN>exit
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2006 07:46 PM
тАО11-28-2006 07:46 PM
Re: System shutdown impossible through SSH?
Wim