<?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: How to agregate data from various outputs to one single file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-agregate-data-from-various-outputs-to-one-single-file/m-p/7073288#M495845</link>
    <description>&lt;P&gt;&amp;gt; Can I have some ideas in how to approach this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Write a shell script?&amp;nbsp; This is a pretty elementary task.&amp;nbsp; How much&lt;BR /&gt;don't you know?&amp;nbsp; Web search for terms like, say:&lt;/P&gt;&lt;P&gt;shell&amp;nbsp; script&amp;nbsp; tutorial&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Make some files:&lt;/P&gt;&lt;P&gt;pro3$ cat file_1&lt;BR /&gt;file1 a&lt;BR /&gt;file1 b&lt;BR /&gt;file1 c&lt;/P&gt;&lt;P&gt;pro3$ cat file_2&lt;BR /&gt;file2 a&lt;BR /&gt;file2 b&lt;BR /&gt;file2 c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Create an output file, and append things to it:&lt;/P&gt;&lt;P&gt;pro3$ touch all&lt;BR /&gt;pro3$ echo 'server 1:' &amp;gt;&amp;gt; all&lt;BR /&gt;pro3$ cat file_1 &amp;gt;&amp;gt; all&lt;BR /&gt;pro3$ echo 'server 2:' &amp;gt;&amp;gt; all&lt;BR /&gt;pro3$ cat file_2 &amp;gt;&amp;gt; all&lt;/P&gt;&lt;P&gt;pro3$ cat all&lt;BR /&gt;server 1:&lt;BR /&gt;file1 a&lt;BR /&gt;file1 b&lt;BR /&gt;file1 c&lt;BR /&gt;server 2:&lt;BR /&gt;file2 a&lt;BR /&gt;file2 b&lt;BR /&gt;file2 c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Where will you get the server names like "server 1"?&amp;nbsp; Where will the&lt;BR /&gt;individual report files be?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Presumably, a loop with some variables in the "echo" and "cat"&lt;BR /&gt;commands would make more sense than a long line of "echo" and "cat"&lt;BR /&gt;commands with constant arguments.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Dec 2019 02:53:18 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2019-12-18T02:53:18Z</dc:date>
    <item>
      <title>How to agregate data from various outputs to one single file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-agregate-data-from-various-outputs-to-one-single-file/m-p/7073130#M495844</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a shell script that ruins on multiple servers, and gives me the following output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Filesystem: / mounted [ OK ]
Filesystem: /stand mounted [ OK ]
Filesystem: /tmp mounted [ OK ]
Filesystem: /home mounted [ OK ]
Filesystem: /opt mounted [ OK ]
Filesystem: /usr mounted [ OK ]
Filesystem: /var mounted [ OK ]

 Uptime :   6:30am  up 4 days, 18:35,  1 user,  load average: 0.01, 0.01, 0.01

I/O related logs in the syslog.log file :
=========================================



LVM related logs in the syslog.log file :
=========================================



Warnings in logs:
=================


Errors in logs:
===============&lt;/LI-CODE&gt;&lt;P&gt;But this is for a single server, and I want to have one single file with all this information but for all the servers like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;server 1:

mounted file systems : ok

.......
......


server 2:

mounted file systems: no


......


......&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I have some ideas in how to approach this&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 08:19:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-agregate-data-from-various-outputs-to-one-single-file/m-p/7073130#M495844</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2019-12-17T08:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to agregate data from various outputs to one single file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-agregate-data-from-various-outputs-to-one-single-file/m-p/7073288#M495845</link>
      <description>&lt;P&gt;&amp;gt; Can I have some ideas in how to approach this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Write a shell script?&amp;nbsp; This is a pretty elementary task.&amp;nbsp; How much&lt;BR /&gt;don't you know?&amp;nbsp; Web search for terms like, say:&lt;/P&gt;&lt;P&gt;shell&amp;nbsp; script&amp;nbsp; tutorial&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Make some files:&lt;/P&gt;&lt;P&gt;pro3$ cat file_1&lt;BR /&gt;file1 a&lt;BR /&gt;file1 b&lt;BR /&gt;file1 c&lt;/P&gt;&lt;P&gt;pro3$ cat file_2&lt;BR /&gt;file2 a&lt;BR /&gt;file2 b&lt;BR /&gt;file2 c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Create an output file, and append things to it:&lt;/P&gt;&lt;P&gt;pro3$ touch all&lt;BR /&gt;pro3$ echo 'server 1:' &amp;gt;&amp;gt; all&lt;BR /&gt;pro3$ cat file_1 &amp;gt;&amp;gt; all&lt;BR /&gt;pro3$ echo 'server 2:' &amp;gt;&amp;gt; all&lt;BR /&gt;pro3$ cat file_2 &amp;gt;&amp;gt; all&lt;/P&gt;&lt;P&gt;pro3$ cat all&lt;BR /&gt;server 1:&lt;BR /&gt;file1 a&lt;BR /&gt;file1 b&lt;BR /&gt;file1 c&lt;BR /&gt;server 2:&lt;BR /&gt;file2 a&lt;BR /&gt;file2 b&lt;BR /&gt;file2 c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Where will you get the server names like "server 1"?&amp;nbsp; Where will the&lt;BR /&gt;individual report files be?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Presumably, a loop with some variables in the "echo" and "cat"&lt;BR /&gt;commands would make more sense than a long line of "echo" and "cat"&lt;BR /&gt;commands with constant arguments.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 02:53:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-agregate-data-from-various-outputs-to-one-single-file/m-p/7073288#M495845</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2019-12-18T02:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to agregate data from various outputs to one single file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-agregate-data-from-various-outputs-to-one-single-file/m-p/7073310#M495846</link>
      <description>&lt;P&gt;There's already a tool for that - pdsh... see this post for a few more details...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hpe.com/t5/System-Administration/PDSH-configuration-in-HPUX-11-31/td-p/4728236#.XfnXGmT7Q-U" target="_blank"&gt;https://community.hpe.com/t5/System-Administration/PDSH-configuration-in-HPUX-11-31/td-p/4728236#.XfnXGmT7Q-U&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The manual referenced there has moved to here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&amp;amp;docId=emr_na-c01920477&amp;amp;withFrame" target="_blank"&gt;https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&amp;amp;docId=emr_na-c01920477&amp;amp;withFrame&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 07:39:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-agregate-data-from-various-outputs-to-one-single-file/m-p/7073310#M495846</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2019-12-18T07:39:46Z</dc:date>
    </item>
  </channel>
</rss>

