<?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 Notification in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305457#M184428</link>
    <description>Sure, put a script into /sbin/rc2.d/ called something like K090notifyme.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Tue, 15 Jun 2004 08:39:43 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2004-06-15T08:39:43Z</dc:date>
    <item>
      <title>Shutdown Notification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305456#M184427</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am wondering if there is a script i can run or a file that can be edited to mail me when a server has been issued a shutdown command?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Aidan</description>
      <pubDate>Tue, 15 Jun 2004 08:34:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305456#M184427</guid>
      <dc:creator>AIMC</dc:creator>
      <dc:date>2004-06-15T08:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Notification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305457#M184428</link>
      <description>Sure, put a script into /sbin/rc2.d/ called something like K090notifyme.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 15 Jun 2004 08:39:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305457#M184428</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-06-15T08:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Notification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305458#M184429</link>
      <description>You could add a shutdown script that sends you an email, just put it in /sbin/rc2.d/ and call it K999&lt;SOMETHING&gt; as long as it runs before sendmail shuts down, every time the system shuts down it will run that script, sending an email&lt;/SOMETHING&gt;</description>
      <pubDate>Tue, 15 Jun 2004 08:41:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305458#M184429</guid>
      <dc:creator>Ken Penland_1</dc:creator>
      <dc:date>2004-06-15T08:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Notification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305459#M184430</link>
      <description>Hi Harry,&lt;BR /&gt;&lt;BR /&gt;Could you tell me what needs to be in the script? Also if i have a K090notifyme in rc2.d do i need an S910notify me in rc3.d? &lt;BR /&gt;&lt;BR /&gt;Appoplogies if this is asking too much but I am not a sys admin, just a hardware engineer trying to keep track of expensive test equipment!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Aidan</description>
      <pubDate>Tue, 15 Jun 2004 08:46:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305459#M184430</guid>
      <dc:creator>AIMC</dc:creator>
      <dc:date>2004-06-15T08:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Notification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305460#M184431</link>
      <description>K090&lt;BR /&gt;&lt;BR /&gt;/usr/bin/mailx -s "system xxxx has been shutdown" aidan@foo.com&lt;BR /&gt;&lt;BR /&gt;S910&lt;BR /&gt;&lt;BR /&gt;/usr/bin/mailx -s "system xxxx has been started" aidan@foo.com&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Robert-Jan&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jun 2004 08:54:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305460#M184431</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-06-15T08:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Notification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305461#M184432</link>
      <description>the script could be as simple as:&lt;BR /&gt;&lt;BR /&gt;echo `hostname` is rebooting |mailx -s "reboot msg" yourname@company.com</description>
      <pubDate>Tue, 15 Jun 2004 08:57:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305461#M184432</guid>
      <dc:creator>Ken Penland_1</dc:creator>
      <dc:date>2004-06-15T08:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Notification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305462#M184433</link>
      <description>create a script called "notifyme" in /sbin/init.d:&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;#&lt;BR /&gt;unset UNIX95&lt;BR /&gt;PATH=/sbin:/usr/sbin:/usr/bin&lt;BR /&gt;export PATH&lt;BR /&gt;&lt;BR /&gt;NOTIFYLIST="YOUR_EMAILNAME@YOURDOMAIN.com"&lt;BR /&gt;&lt;BR /&gt;case $1 in&lt;BR /&gt;&lt;BR /&gt;  start_msg)&lt;BR /&gt;            echo "Send an email to notifyme that system is being broght backup"&lt;BR /&gt;             ;;&lt;BR /&gt;&lt;BR /&gt;  stop_msg)&lt;BR /&gt;            echo "Send an email to notifyme that system is being shutdown"&lt;BR /&gt;            ;;&lt;BR /&gt;&lt;BR /&gt;  start)&lt;BR /&gt;&lt;BR /&gt;         echo "System (`hostname`) coming back up"|mailx -s"System `hostname` booting" ${NOTIFYLIST}&lt;BR /&gt;         ;;&lt;BR /&gt;&lt;BR /&gt;  stop)&lt;BR /&gt;         echo "System (`hostname`) going down"|mailx -s"System `hostname` shutting down" ${NOTIFYLIST}&lt;BR /&gt;         ;;&lt;BR /&gt;&lt;BR /&gt;  *)&lt;BR /&gt;     echo "usage: $0 {start|stop}"&lt;BR /&gt;     ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;Change permissions to execute:&lt;BR /&gt;chmod 555 /sbin/init.d/notifyme&lt;BR /&gt;&lt;BR /&gt;Then create TWO symbolic links:&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/notifyme /sbin/rc2.d/K090notifyme&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/notifyme /sbin/rc2.d/S090notifyme&lt;BR /&gt;&lt;BR /&gt;Then have at it&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 15 Jun 2004 09:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305462#M184433</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-06-15T09:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown Notification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305463#M184434</link>
      <description>Just anoher less elaborate way - add your name to root's email in /etc/mail/aliases:&lt;BR /&gt;&lt;BR /&gt;root    : you@yourdomain.com&lt;BR /&gt;&lt;BR /&gt;then newaliases, and restart sendmail.&lt;BR /&gt;&lt;BR /&gt;You will get email on boot like this:&lt;BR /&gt;&lt;BR /&gt;Subject: Server booted at Fri Jun 11 09:42:57 MDT 2004&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 15 Jun 2004 09:28:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-notification/m-p/3305463#M184434</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-06-15T09:28:09Z</dc:date>
    </item>
  </channel>
</rss>

