<?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: Shutdown server using remsh in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623748#M39243</link>
    <description>&amp;lt;&lt;I have="" configured="" shutdown="" scripts=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  Timeout.  It won't work since by the time&lt;BR /&gt;the system reaches runlevel 1 (to execute scripts under rc0.d directory), its network services are shutdown.&lt;BR /&gt;&lt;BR /&gt;Put the script in  /sbin/rc3.d . it should work fine.  Also, in the script  do a ping -n 5 remotehost  and redirect the output to a logfile, such that you can confirm later whether the remote system is accessible during the script execution.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj&lt;/I&gt;</description>
    <pubDate>Mon, 03 Dec 2001 13:08:23 GMT</pubDate>
    <dc:creator>Roger Baptiste</dc:creator>
    <dc:date>2001-12-03T13:08:23Z</dc:date>
    <item>
      <title>Shutdown server using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623744#M39239</link>
      <description>Hello experts,&lt;BR /&gt;&lt;BR /&gt;I have 2 servers on my site that are totally dependent. One is running my database and the other my application server. &lt;BR /&gt;&lt;BR /&gt;I have a UPS monitoring software that shutdowns the Database server when a long power cut occurs. I cannot use the monitoring software on my Application server.&lt;BR /&gt;&lt;BR /&gt;I have already setup my remsh environment and done simple tests. IT works.&lt;BR /&gt;&lt;BR /&gt;I have configured shutdown scripts (/sbin/rc0.d/K001shutdownLclass and appropriate files) to contain shutdown commands to run on the remote host (Application Server). IT DOES NOT WORK!!&lt;BR /&gt;&lt;BR /&gt;During the shutdown of my database server, i can see the Message that i had included in the script but nothing happens on the remote host...&lt;BR /&gt;&lt;BR /&gt;Anyone please guide me.&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;BR /&gt;Yogeeraj&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Dec 2001 06:04:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623744#M39239</guid>
      <dc:creator>Yogeeraj</dc:creator>
      <dc:date>2001-12-03T06:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown server using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623745#M39240</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just a note. For shutdown to work, it must run from the / directory. &lt;BR /&gt;&lt;BR /&gt;Check whether after you remsh'ed over, that your shutdown script cd to / before executing shutdown.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Mon, 03 Dec 2001 09:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623745#M39240</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-12-03T09:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown server using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623746#M39241</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Read the man page for 'rc'. I suggest you put your kill script that sends the remote messages to the other server in rc2.d, before shutting down the network.&lt;BR /&gt;&lt;BR /&gt;When the server is doing the transition to level 0, it passes the levels 2 and 1, where the network is stopped. Your script, being in rc0, is executed after the network is stopped so it would be a true wonder to work.&lt;BR /&gt;&lt;BR /&gt;E.</description>
      <pubDate>Mon, 03 Dec 2001 10:10:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623746#M39241</guid>
      <dc:creator>Eugen Cocalea</dc:creator>
      <dc:date>2001-12-03T10:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown server using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623747#M39242</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I agree with Eugen.  You should take a look at the white paper below. It can be read very quickly and gives a complete definition of the rules for setting up startup and shutdown scripts.  From this document you will note that run-level 3 is a networked, multi-user state.  Generally this is where user startup scripts reside, with their kill couterparts one level lower as run-level 2.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/os/startup.pdf" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/startup.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 03 Dec 2001 11:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623747#M39242</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-12-03T11:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown server using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623748#M39243</link>
      <description>&amp;lt;&lt;I have="" configured="" shutdown="" scripts=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  Timeout.  It won't work since by the time&lt;BR /&gt;the system reaches runlevel 1 (to execute scripts under rc0.d directory), its network services are shutdown.&lt;BR /&gt;&lt;BR /&gt;Put the script in  /sbin/rc3.d . it should work fine.  Also, in the script  do a ping -n 5 remotehost  and redirect the output to a logfile, such that you can confirm later whether the remote system is accessible during the script execution.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj&lt;/I&gt;</description>
      <pubDate>Mon, 03 Dec 2001 13:08:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623748#M39243</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-12-03T13:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown server using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623749#M39244</link>
      <description>I am running something similar at my site. I have one server on a smart UPS and one server connected to a UPS without smart features. As mentioned earlier, if you run the remsh in run level 0, there will be no network to support that commmand. I modified the script which the smart UPS executes to shutdown. In that script I included the remsh to shutdown the remote server. I did it as a background process as well, so the local host does not have to wait for the remote host to complete shutting down to continue its own shutdown sequence. &lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Stev</description>
      <pubDate>Mon, 03 Dec 2001 17:14:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623749#M39244</guid>
      <dc:creator>Steve Labar</dc:creator>
      <dc:date>2001-12-03T17:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown server using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623750#M39245</link>
      <description>In addition to Rajman's comments about running it from runlevel 3, you should also consider executing the remsh in the background - ie &lt;BR /&gt;remsh l2000 "cd / ; shutdown -h -y 0" &amp;amp;&lt;BR /&gt;do not wait for L200 to shutdown before proceeding with the shutdown.  because if it takes forever for the app server to shutdown, you might run out of juice in your UPS.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Dec 2001 19:02:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-server-using-remsh/m-p/2623750#M39245</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2001-12-03T19:02:48Z</dc:date>
    </item>
  </channel>
</rss>

