<?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: shell script help in RHEL 5.4 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/shell-script-help-in-rhel-5-4/m-p/5752955#M53829</link>
    <description>Hi patrick,&lt;BR /&gt;&lt;BR /&gt;thanks you very much for providing the script.</description>
    <pubDate>Mon, 06 Aug 2012 06:00:08 GMT</pubDate>
    <dc:creator>rajesh73</dc:creator>
    <dc:date>2012-08-06T06:00:08Z</dc:date>
    <item>
      <title>shell script help in RHEL 5.4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-help-in-rhel-5-4/m-p/5751495#M53826</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to collect the below system information , please find the commands and provide the shell script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;commands&lt;/P&gt;&lt;P&gt;df&lt;/P&gt;&lt;P&gt;crontab&lt;/P&gt;&lt;P&gt;vg details&lt;/P&gt;&lt;P&gt;sendmail&lt;/P&gt;&lt;P&gt;dmesg&lt;/P&gt;&lt;P&gt;ioscan&lt;/P&gt;&lt;P&gt;free -g&lt;/P&gt;&lt;P&gt;top&lt;/P&gt;&lt;P&gt;sar&lt;/P&gt;&lt;P&gt;vmstat&lt;/P&gt;&lt;P&gt;iostat&lt;/P&gt;&lt;P&gt;ifconfig -a&lt;/P&gt;&lt;P&gt;uname -m&lt;/P&gt;&lt;P&gt;uanme -r&lt;/P&gt;&lt;P&gt;runlevel&lt;/P&gt;&lt;P&gt;rpm -ql pakage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the above commands we need to collect ,each and every server. we need the final output&amp;nbsp;&amp;nbsp;&amp;nbsp; testserver.tar.qz&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2012 10:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-help-in-rhel-5-4/m-p/5751495#M53826</guid>
      <dc:creator>rajesh73</dc:creator>
      <dc:date>2012-08-03T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: shell script help in RHEL 5.4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-help-in-rhel-5-4/m-p/5751665#M53827</link>
      <description>&lt;P&gt;Something like this maybe:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# cat script.sh&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;HOST=$(hostname)&lt;/P&gt;&lt;P&gt;mkdir /tmp/${HOST}-data&lt;/P&gt;&lt;P&gt;cd /tmp/${HOST}-data&lt;/P&gt;&lt;P&gt;df &amp;gt; ${HOST}-df&lt;/P&gt;&lt;P&gt;crontab -l &amp;gt; ${HOST}-crontab&lt;/P&gt;&lt;P&gt;vgdisplay -v &amp;gt; ${HOST}-vgdisplay&lt;/P&gt;&lt;P&gt;cp /etc/mail/sendmail.cf ${HOST}-sendmail.cf&lt;/P&gt;&lt;P&gt;dmesg &amp;gt; ${HOST}-dmesg&lt;/P&gt;&lt;P&gt;free -g &amp;gt; ${HOST}-free&lt;/P&gt;&lt;P&gt;top -n 1 &amp;gt; ${HOST}-top&lt;/P&gt;&lt;P&gt;vmstat &amp;gt; ${HOST}-vmstat&lt;/P&gt;&lt;P&gt;iostat &amp;gt; ${HOST}-iostat&lt;/P&gt;&lt;P&gt;ifconfig -a &amp;gt; ${HOST}-ifconfig&lt;/P&gt;&lt;P&gt;uname -m &amp;gt; ${HOST}-uname-m&lt;/P&gt;&lt;P&gt;uname -r &amp;gt; ${HOST}-uname-r&lt;/P&gt;&lt;P&gt;runlevel &amp;gt; ${HOST}-runlevel&lt;/P&gt;&lt;P&gt;tar -cvzf ${HOST}.tar.gz ${HOST}-*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a couple of commands that you need to look at and determine exactly what you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example the 'sar' command has a lot of options.&amp;nbsp; Which ones do you want output from?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 'rpm - ql' command requires a package&amp;nbsp; name as an option.&amp;nbsp; Which packages do you want information on?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2012 13:38:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-help-in-rhel-5-4/m-p/5751665#M53827</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2012-08-03T13:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: shell script help in RHEL 5.4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-help-in-rhel-5-4/m-p/5752955#M53829</link>
      <description>Hi patrick,&lt;BR /&gt;&lt;BR /&gt;thanks you very much for providing the script.</description>
      <pubDate>Mon, 06 Aug 2012 06:00:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-help-in-rhel-5-4/m-p/5752955#M53829</guid>
      <dc:creator>rajesh73</dc:creator>
      <dc:date>2012-08-06T06:00:08Z</dc:date>
    </item>
  </channel>
</rss>

