<?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 Script help in translating idea to script in ksh. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804409#M942233</link>
    <description>Hello all.&lt;BR /&gt;&lt;BR /&gt;I have been given a task to create a script that would do the following items.&lt;BR /&gt;1) Take errors from DMESG, /var/adm/messages, and /var/adm/syslog/syslog.log and roll them into one file, local file would be a starting point on about 20 different systems.&lt;BR /&gt;2) Take the local files that are created on every system containing all the errors from those other logfiles and bringing them into one system.&lt;BR /&gt;3) Take the local files from each system which would be named based on the system name it came from, and then combine all 20 files into one report that would be emailed to a specific group list. &lt;BR /&gt;&lt;BR /&gt;Any ideas on this would be a help. Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;fg.&lt;BR /&gt;</description>
    <pubDate>Wed, 11 Sep 2002 15:35:49 GMT</pubDate>
    <dc:creator>fg_1</dc:creator>
    <dc:date>2002-09-11T15:35:49Z</dc:date>
    <item>
      <title>Script help in translating idea to script in ksh.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804409#M942233</link>
      <description>Hello all.&lt;BR /&gt;&lt;BR /&gt;I have been given a task to create a script that would do the following items.&lt;BR /&gt;1) Take errors from DMESG, /var/adm/messages, and /var/adm/syslog/syslog.log and roll them into one file, local file would be a starting point on about 20 different systems.&lt;BR /&gt;2) Take the local files that are created on every system containing all the errors from those other logfiles and bringing them into one system.&lt;BR /&gt;3) Take the local files from each system which would be named based on the system name it came from, and then combine all 20 files into one report that would be emailed to a specific group list. &lt;BR /&gt;&lt;BR /&gt;Any ideas on this would be a help. Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;fg.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Sep 2002 15:35:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804409#M942233</guid>
      <dc:creator>fg_1</dc:creator>
      <dc:date>2002-09-11T15:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script help in translating idea to script in ksh.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804410#M942234</link>
      <description>I think that you need centralized logging with syslog. Check out the /etc/syslog.conf file - you should be able to add a line like:&lt;BR /&gt;&lt;BR /&gt;*.err;kern.debug;daemon.notice;auth.notice;user.none    @centralserver&lt;BR /&gt;&lt;BR /&gt;which will forward a copy of those message types to your centralserver for logging. A local copy will still be kept.&lt;BR /&gt;&lt;BR /&gt;Then you look through the one centralized file for error messages. Each message should be tagged with the system name that it comes from, so you will know which system had the error.&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Wed, 11 Sep 2002 15:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804410#M942234</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-09-11T15:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script help in translating idea to script in ksh.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804411#M942235</link>
      <description>As mentioned, you can set this up in syslog, see the man page for syslogd.  Also considering the file size will be very large with 20 systems, you may want to consider putting Apache on the syslog server and have people access the log files via a browser instead of duplicating megs of file space by mailing the same large file to many people.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Wed, 11 Sep 2002 15:53:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804411#M942235</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-09-11T15:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script help in translating idea to script in ksh.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804412#M942236</link>
      <description>Guys that is a good suggestion so far and I am definitely going to look into that. &lt;BR /&gt;&lt;BR /&gt;I want to clarify one point that I am trying to accomplish, that is the point that all I want to take out of the current syslog, dmesg, and /var/adm/messages files are ERRORS that occurr (not the entire log files). These errors would then be written to the system (ERROR log file) on each system. Then I would like to take those (ERROR LOG FILES) from each system and bring them into one big (ERROR LOG FILE), then email that one file.&lt;BR /&gt;&lt;BR /&gt;Thanks again for the suggestions so far.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Sep 2002 16:22:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804412#M942236</guid>
      <dc:creator>fg_1</dc:creator>
      <dc:date>2002-09-11T16:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script help in translating idea to script in ksh.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804413#M942237</link>
      <description>Frank,&lt;BR /&gt;&lt;BR /&gt;You can selectively forward messages by setting that line in /etc/syslog.conf. If you do a "man syslogd" and "man logger" you will see the different severity levels (*.crit, *.emerg, *.err, ...) that you can choose from. And you can eliminate some classes with constructs like "user.none".&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Wed, 11 Sep 2002 16:48:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804413#M942237</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-09-11T16:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script help in translating idea to script in ksh.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804414#M942238</link>
      <description>HI &lt;BR /&gt;Try this.&lt;BR /&gt;##&lt;BR /&gt;LOGDIR=/home/system/log&lt;BR /&gt;for host in hp01 hp02 hp03 hp04&lt;BR /&gt;{&lt;BR /&gt;remsh $host "dmesg" &amp;gt;&amp;gt; $LOGDIR/$host-log&lt;BR /&gt;remsh $host "cat /var/adm/messages" &amp;gt;&amp;gt; $LOGDIR/$host-log&lt;BR /&gt;remsh $host "cat /var/adm/syslog/syslog.log" &amp;gt;&amp;gt; $LOGDIR/$host-log&lt;BR /&gt;}&lt;BR /&gt;DATE=`date +%d%b%Y`&lt;BR /&gt;cat $LOGDIR/hp*-log &amp;gt;&amp;gt; $LOGDIR/HPLOG.$DATE&lt;BR /&gt;&lt;BR /&gt;uuencode LOGDIR/HPLOG.$DATE HPLOG |mailx -m -s "HP LOGS" user@domain.com&lt;BR /&gt;&lt;BR /&gt;##&lt;BR /&gt;Not tested..&lt;BR /&gt;You can modify as you need.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant.</description>
      <pubDate>Wed, 11 Sep 2002 17:25:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-in-translating-idea-to-script-in-ksh/m-p/2804414#M942238</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2002-09-11T17:25:22Z</dc:date>
    </item>
  </channel>
</rss>

