<?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 Do you have script to do this? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540874#M223208</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have several servers and also have a adminstration server from where i can run the SSH to all the servers.&lt;BR /&gt;&lt;BR /&gt;My aim is to make a script that will go and check all the filesystems in the ROOT vg and send me a mail saying that this server's the following filesystems are at "this" percentage like.&lt;BR /&gt;&lt;BR /&gt;Nile's opt is 92%&lt;BR /&gt;Nile's var is 85%&lt;BR /&gt;Hudson's opt is 88% like that.&lt;BR /&gt;&lt;BR /&gt;Do you any thought on this.&lt;BR /&gt;&lt;BR /&gt;Tx,&lt;BR /&gt;Nair</description>
    <pubDate>Mon, 09 May 2005 20:33:24 GMT</pubDate>
    <dc:creator>Silver_1</dc:creator>
    <dc:date>2005-05-09T20:33:24Z</dc:date>
    <item>
      <title>Do you have script to do this?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540874#M223208</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have several servers and also have a adminstration server from where i can run the SSH to all the servers.&lt;BR /&gt;&lt;BR /&gt;My aim is to make a script that will go and check all the filesystems in the ROOT vg and send me a mail saying that this server's the following filesystems are at "this" percentage like.&lt;BR /&gt;&lt;BR /&gt;Nile's opt is 92%&lt;BR /&gt;Nile's var is 85%&lt;BR /&gt;Hudson's opt is 88% like that.&lt;BR /&gt;&lt;BR /&gt;Do you any thought on this.&lt;BR /&gt;&lt;BR /&gt;Tx,&lt;BR /&gt;Nair</description>
      <pubDate>Mon, 09 May 2005 20:33:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540874#M223208</guid>
      <dc:creator>Silver_1</dc:creator>
      <dc:date>2005-05-09T20:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Do you have script to do this?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540875#M223209</link>
      <description>How about something like:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;for i in server1 server2 server3 server4&lt;BR /&gt;do&lt;BR /&gt;echo "${i} VG00 filesystems:"&lt;BR /&gt;ssh ${i} bdf | grep vg00&lt;BR /&gt;echo ""&lt;BR /&gt;echo ""&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Mon, 09 May 2005 20:55:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540875#M223209</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-05-09T20:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Do you have script to do this?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540876#M223210</link>
      <description>Hi Nair,&lt;BR /&gt;&lt;BR /&gt;Please see attached. There are several others which I got from ITRC as well.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Isralyn&lt;BR /&gt;&lt;BR /&gt;P.S.  Dunno how to do multiple attachments, though so I'll send you another one.</description>
      <pubDate>Mon, 09 May 2005 20:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540876#M223210</guid>
      <dc:creator>Isralyn Manalac_1</dc:creator>
      <dc:date>2005-05-09T20:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Do you have script to do this?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540877#M223211</link>
      <description>and another...</description>
      <pubDate>Mon, 09 May 2005 20:57:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540877#M223211</guid>
      <dc:creator>Isralyn Manalac_1</dc:creator>
      <dc:date>2005-05-09T20:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Do you have script to do this?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540878#M223212</link>
      <description>and another one...</description>
      <pubDate>Mon, 09 May 2005 20:58:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540878#M223212</guid>
      <dc:creator>Isralyn Manalac_1</dc:creator>
      <dc:date>2005-05-09T20:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Do you have script to do this?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540879#M223213</link>
      <description>I think you need this doc for further administration task&lt;BR /&gt;&lt;A href="http://www.cs.virginia.edu/~an4m/books/oreilly/unix_bookshelf/sedawk/" target="_blank"&gt;http://www.cs.virginia.edu/~an4m/books/oreilly/unix_bookshelf/sedawk/&lt;/A&gt;&lt;BR /&gt;HTH&lt;BR /&gt;tienna</description>
      <pubDate>Mon, 09 May 2005 22:11:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540879#M223213</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2005-05-09T22:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Do you have script to do this?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540880#M223214</link>
      <description>i also got it from itrc but do not remember&lt;BR /&gt;the authÄ±r but i am still using;&lt;BR /&gt;&lt;BR /&gt;function check_bdf {&lt;BR /&gt;bdf -l |grep -v cdrom | awk '$0 !~ /^F/' &amp;gt; /tmp/bdf_out&lt;BR /&gt;awk '{if (NF!=1){&lt;BR /&gt;   if (NF==5){&lt;BR /&gt;               print $4"\t" $5"\t"&lt;BR /&gt;             }&lt;BR /&gt;         else{&lt;BR /&gt;               print $5"\t\t" $6"\t"&lt;BR /&gt;             }&lt;BR /&gt;     }}' &amp;lt; /tmp/bdf_out&lt;BR /&gt;  rm /tmp/bdf_out&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;check_bdf | sed 's/'%'/''/' &amp;gt; /tmp/bdf_info&lt;BR /&gt;&lt;BR /&gt;function panic {&lt;BR /&gt;while read percent dir    ### If file system is &amp;gt;= 90% - email to addresses below &lt;BR /&gt;  do&lt;BR /&gt;    if [[ $percent -ge 95 ]] ; then&lt;BR /&gt;        mailx -s "File system full-`hostname`:$dir is at $percent%" mailaddress &amp;lt; /dev/null&lt;BR /&gt;       fi&lt;BR /&gt;done&lt;BR /&gt;} &amp;lt; /tmp/bdf_info&lt;BR /&gt;&lt;BR /&gt;panic&lt;BR /&gt;rm /tmp/bdf_inf</description>
      <pubDate>Wed, 11 May 2005 00:22:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/do-you-have-script-to-do-this/m-p/3540880#M223214</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-05-11T00:22:57Z</dc:date>
    </item>
  </channel>
</rss>

