<?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: email in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774324#M75581</link>
    <description>Your problem is you don't know when your system goes down, so it is a little difficult to place a cron entry for this.&lt;BR /&gt;The best way is to monitor your system remotely is from a different server. You could write a small script to do this.&lt;BR /&gt;If you wanted to find out information like this, you could place a script in the system startup area (/sbin/init.d) that e-mails the last line of the /etc/shutdownlog.&lt;BR /&gt;&lt;BR /&gt;'tail -1 /etc/shutdownlog'&lt;BR /&gt;or&lt;BR /&gt;who -r</description>
    <pubDate>Mon, 29 Jul 2002 05:28:49 GMT</pubDate>
    <dc:creator>Michael Tully</dc:creator>
    <dc:date>2002-07-29T05:28:49Z</dc:date>
    <item>
      <title>email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774323#M75580</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;When ever my m/c down and rebooted because of panic or normal shutdown . i have get the email notice .. like shutdownlog ..&lt;BR /&gt;For this i have put entry in cron or someother way is &lt;BR /&gt;their?&lt;BR /&gt;Thankx&lt;BR /&gt;bye   &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Jul 2002 05:19:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774323#M75580</guid>
      <dc:creator>kumaresan_1</dc:creator>
      <dc:date>2002-07-29T05:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774324#M75581</link>
      <description>Your problem is you don't know when your system goes down, so it is a little difficult to place a cron entry for this.&lt;BR /&gt;The best way is to monitor your system remotely is from a different server. You could write a small script to do this.&lt;BR /&gt;If you wanted to find out information like this, you could place a script in the system startup area (/sbin/init.d) that e-mails the last line of the /etc/shutdownlog.&lt;BR /&gt;&lt;BR /&gt;'tail -1 /etc/shutdownlog'&lt;BR /&gt;or&lt;BR /&gt;who -r</description>
      <pubDate>Mon, 29 Jul 2002 05:28:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774324#M75581</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-07-29T05:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774325#M75582</link>
      <description>&lt;BR /&gt;I've been wondering about this myself.  I think it might be possible to put something in inittab to send an e-mail when the system goes to runlevel 3 (on ipl after starting networking) and in /sbin/rc3.d to send an e-mail before the system goes from runlevel 3 to runlevel 2.&lt;BR /&gt;&lt;BR /&gt;I'm not sure of the correct syntax, however.&lt;BR /&gt;&lt;BR /&gt;Maybe something like this?&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;# E-mail on system start/stop&lt;BR /&gt;case $1 in&lt;BR /&gt;'start_msg')&lt;BR /&gt;       echo "Sending startup e-mail"&lt;BR /&gt;       ;;&lt;BR /&gt;'stop_msg')&lt;BR /&gt;       echo "Sending stop e-mail"&lt;BR /&gt;       ;;&lt;BR /&gt;'start')&lt;BR /&gt;       echo "System start: `hostname` `date`" | elm -s"system start" sysadmin@example.org&lt;BR /&gt;       ;;&lt;BR /&gt;'stop')&lt;BR /&gt;       tail /var/adm/syslog/syslog.log | elm -s"System `hostname` shutdown at `date`" sysadmin@example.org&lt;BR /&gt;     ;;&lt;BR /&gt;*)&lt;BR /&gt;     echo "usage: $0 {start|stop}"&lt;BR /&gt;     ;;&lt;BR /&gt;esac&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;Would that work, and if so, how would you set it up to run before networking shut down?&lt;BR /&gt;&lt;BR /&gt;Rob</description>
      <pubDate>Tue, 30 Jul 2002 11:33:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774325#M75582</guid>
      <dc:creator>Robert A. Pierce</dc:creator>
      <dc:date>2002-07-30T11:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774326#M75583</link>
      <description>I have a script in /sbin/rc3.d that sends an email to me when the system boots.  That's one way to know when the system comes back up.&lt;BR /&gt;&lt;BR /&gt;One way to know if the server goes down, is to monitor it from another server.  i.e. every 15 minutes you can ping the server from somewhere else, and have that machine contact you if the first server does not respond to a ping.&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jul 2002 12:55:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774326#M75583</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2002-07-30T12:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774327#M75584</link>
      <description>Did I say sends me an email?  I meant to say - it sends an email to my pager.</description>
      <pubDate>Tue, 30 Jul 2002 12:57:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774327#M75584</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2002-07-30T12:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774328#M75585</link>
      <description>you can predict when m/c will go down.&lt;BR /&gt;&lt;BR /&gt;The best way is to monitor it from other m/c and setting the mail on other m/c to send a mail to you in case it goes down.</description>
      <pubDate>Tue, 30 Jul 2002 13:36:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email/m-p/2774328#M75585</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2002-07-30T13:36:41Z</dc:date>
    </item>
  </channel>
</rss>

