<?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: System shutdown impossible through SSH? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/system-shutdown-impossible-through-ssh/m-p/3903719#M80338</link>
    <description>Hi Frederik&lt;BR /&gt;&lt;BR /&gt;this is a known behaviour. You cant shutdown the system if you are logged in with ssh.&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;$ set ver&lt;BR /&gt;$ IF F$MODE() .EQS. "BATCH" THEN GOTO start_detached&lt;BR /&gt;$ depth = F$ENVIRONMENT("DEPTH")&lt;BR /&gt;$ IF depth .EQ. 0 THEN GOTO run_detached&lt;BR /&gt;$ GOTO start_detached&lt;BR /&gt;$!&lt;BR /&gt;$start_detached:&lt;BR /&gt;$ this_node=F$EDIT(F$GETSYI("NODENAME"),"COLLAPSE")&lt;BR /&gt;$ date=F$CVTIME("","comparison","DATE")&lt;BR /&gt;$ RUN SYS$SYSTEM:LOGINOUT.EXE -&lt;BR /&gt;        /INPUT='F$ENVIRONMENT("PROCEDURE")' -&lt;BR /&gt;        /OUTPUT='F$TRNLNM("SYS$LOGIN")'Shutdown_'this_node'_'date'.log -&lt;BR /&gt;        /ERROR='f$trnlnm("sys$login")'Shutdown_'this_node'_'date'.log  -&lt;BR /&gt;        /PROC=SHUTDOWN -&lt;BR /&gt;        /DETACHED&lt;BR /&gt;$ EXIT&lt;BR /&gt;$!&lt;BR /&gt;$run_detached:&lt;BR /&gt;$ SHUTDOWN == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER NO NONE"&lt;BR /&gt;$ REBOOT   == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER YES REB"&lt;BR /&gt;$ REPL/ALL/BEL/URGENT "Detached REBOOT of ''F$GETSYI("NODENAME")'. PID is ''F$GETJPI("","PID")'"&lt;BR /&gt;$ REBOOT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Heinz</description>
    <pubDate>Sat, 25 Nov 2006 15:21:06 GMT</pubDate>
    <dc:creator>Heinz W Genhart</dc:creator>
    <dc:date>2006-11-25T15:21:06Z</dc:date>
    <item>
      <title>System shutdown impossible through SSH?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-shutdown-impossible-through-ssh/m-p/3903718#M80337</link>
      <description>I'm having problems shutting down systems through SSH.&lt;BR /&gt;I log into 7.3-2 och 8.3 Alphas as [1,4] and issue:&lt;BR /&gt;$ mc sysman shutdown node&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Any ideas?</description>
      <pubDate>Sat, 25 Nov 2006 07:31:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-shutdown-impossible-through-ssh/m-p/3903718#M80337</guid>
      <dc:creator>Fredrik Israelsson</dc:creator>
      <dc:date>2006-11-25T07:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: System shutdown impossible through SSH?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-shutdown-impossible-through-ssh/m-p/3903719#M80338</link>
      <description>Hi Frederik&lt;BR /&gt;&lt;BR /&gt;this is a known behaviour. You cant shutdown the system if you are logged in with ssh.&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;$ set ver&lt;BR /&gt;$ IF F$MODE() .EQS. "BATCH" THEN GOTO start_detached&lt;BR /&gt;$ depth = F$ENVIRONMENT("DEPTH")&lt;BR /&gt;$ IF depth .EQ. 0 THEN GOTO run_detached&lt;BR /&gt;$ GOTO start_detached&lt;BR /&gt;$!&lt;BR /&gt;$start_detached:&lt;BR /&gt;$ this_node=F$EDIT(F$GETSYI("NODENAME"),"COLLAPSE")&lt;BR /&gt;$ date=F$CVTIME("","comparison","DATE")&lt;BR /&gt;$ RUN SYS$SYSTEM:LOGINOUT.EXE -&lt;BR /&gt;        /INPUT='F$ENVIRONMENT("PROCEDURE")' -&lt;BR /&gt;        /OUTPUT='F$TRNLNM("SYS$LOGIN")'Shutdown_'this_node'_'date'.log -&lt;BR /&gt;        /ERROR='f$trnlnm("sys$login")'Shutdown_'this_node'_'date'.log  -&lt;BR /&gt;        /PROC=SHUTDOWN -&lt;BR /&gt;        /DETACHED&lt;BR /&gt;$ EXIT&lt;BR /&gt;$!&lt;BR /&gt;$run_detached:&lt;BR /&gt;$ SHUTDOWN == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER NO NONE"&lt;BR /&gt;$ REBOOT   == "@SYS$SYSTEM:SHUTDOWN 0 SHUTDOWN NO YES LATER YES REB"&lt;BR /&gt;$ REPL/ALL/BEL/URGENT "Detached REBOOT of ''F$GETSYI("NODENAME")'. PID is ''F$GETJPI("","PID")'"&lt;BR /&gt;$ REBOOT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Heinz</description>
      <pubDate>Sat, 25 Nov 2006 15:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-shutdown-impossible-through-ssh/m-p/3903719#M80338</guid>
      <dc:creator>Heinz W Genhart</dc:creator>
      <dc:date>2006-11-25T15:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: System shutdown impossible through SSH?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-shutdown-impossible-through-ssh/m-p/3903720#M80339</link>
      <description>Fredrik,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;So if you specify a &lt;BR /&gt;SYSMAN&amp;gt;Set Environment /Node=yourself /User=System&lt;BR /&gt;before using the SHUTDOWN command, you may afterwads logout and the shutdown continues.&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Mon, 27 Nov 2006 02:50:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-shutdown-impossible-through-ssh/m-p/3903720#M80339</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-11-27T02:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: System shutdown impossible through SSH?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-shutdown-impossible-through-ssh/m-p/3903721#M80340</link>
      <description>Here is an example on a standalone nodes via telnet or a Decwindows terminal session:&lt;BR /&gt;&lt;BR /&gt;$ sysman&lt;BR /&gt;SYSMAN&amp;gt; set environment/node=0&lt;BR /&gt;Remote Password:&lt;BR /&gt;%SYSMAN-I-ENV, current command environment:&lt;BR /&gt;        Individual nodes: 0&lt;BR /&gt;        At least one node is not in local cluster&lt;BR /&gt;        Username SYSTEM       will be used on nonlocal nodes&lt;BR /&gt;                &lt;BR /&gt;&lt;BR /&gt;SYSMAN&amp;gt; SHUTDOWN NODE&lt;BR /&gt;&lt;BR /&gt;%SYSMAN-I-SHUTDOWN, SHUTDOWN request sent to node 0&lt;BR /&gt;SYSMAN&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SHUTDOWN message on NODEX from user SYSTEM at NODEX Batch   16:19:03&lt;BR /&gt;NODEX will shut down in 0 minutes; back up shortly via automatic reboot.  Please&lt;BR /&gt;log off node NODEX.&lt;BR /&gt;Standalone&lt;BR /&gt;&lt;BR /&gt;SYSMAN&amp;gt;exit&lt;BR /&gt;&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Nov 2006 13:11:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-shutdown-impossible-through-ssh/m-p/3903721#M80340</guid>
      <dc:creator>Charlie Anderson</dc:creator>
      <dc:date>2006-11-28T13:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: System shutdown impossible through SSH?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-shutdown-impossible-through-ssh/m-p/3903722#M80341</link>
      <description>Note that SHUTDOWN NODE has /NOREMOVE_NODE as default. So make sure your votes are correctly assigned or you may block the cluster.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 29 Nov 2006 03:46:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-shutdown-impossible-through-ssh/m-p/3903722#M80341</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-11-29T03:46:49Z</dc:date>
    </item>
  </channel>
</rss>

