<?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 Shell script to write to trace inode in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184614#M460482</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  I have HP-UX 11.00. Please help in making a shell script, which i can place in crontab, by which if the inode size increases a certain limit i.e. 80%, we get an email for that. our hfs file system is /advance/dir. Also, plz tell if 'bdf -i' or 'sar -v' will help.&lt;BR /&gt;&lt;BR /&gt;sorrow $ bdf -i /advance/dir&lt;BR /&gt;Filesystem          kbytes    used   avail %used  iused  ifree %iuse Mounted on&lt;BR /&gt;/dev/vg05/lvol4      134256    4344  129912    3%    275 511725    0% /advance/dir&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Tue, 30 Jun 2009 18:37:13 GMT</pubDate>
    <dc:creator>Vishu</dc:creator>
    <dc:date>2009-06-30T18:37:13Z</dc:date>
    <item>
      <title>Shell script to write to trace inode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184614#M460482</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  I have HP-UX 11.00. Please help in making a shell script, which i can place in crontab, by which if the inode size increases a certain limit i.e. 80%, we get an email for that. our hfs file system is /advance/dir. Also, plz tell if 'bdf -i' or 'sar -v' will help.&lt;BR /&gt;&lt;BR /&gt;sorrow $ bdf -i /advance/dir&lt;BR /&gt;Filesystem          kbytes    used   avail %used  iused  ifree %iuse Mounted on&lt;BR /&gt;/dev/vg05/lvol4      134256    4344  129912    3%    275 511725    0% /advance/dir&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 30 Jun 2009 18:37:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184614#M460482</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-06-30T18:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to write to trace inode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184615#M460483</link>
      <description>Hi Vishu:&lt;BR /&gt;&lt;BR /&gt;Unlesss this filesystem is an HFS one, you don't need to worry about the number or utilization of inodes.  For VxFS filesystems, new inodes will be added dynamically as needed.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 30 Jun 2009 18:44:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184615#M460483</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-30T18:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to write to trace inode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184616#M460484</link>
      <description>Hi James, &lt;BR /&gt;&lt;BR /&gt;  Thanks for the reply. But my FS is HFS. i recently got one error in syslog saying "inode table is full". i just want to write a script which mails me whenever inodes go beyond a certain limit. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jun 2009 19:05:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184616#M460484</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-06-30T19:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to write to trace inode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184617#M460485</link>
      <description>Hi (again) Vishu:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; i recently got one error in syslog saying "inode table is full". &lt;BR /&gt;&lt;BR /&gt;Then you need to increase the kernel's 'ninode' parameter.  See:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/7779/commonMisconfig.pdf" target="_blank"&gt;http://docs.hp.com/en/7779/commonMisconfig.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jun 2009 19:13:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184617#M460485</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-30T19:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to write to trace inode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184618#M460486</link>
      <description>agreed James,&lt;BR /&gt;&lt;BR /&gt;   I already did that. But i wanted to further place a monitoring for other servers also, to trace the inode utilization. If you can help in it, that would be highly appreciable.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jun 2009 19:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184618#M460486</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-06-30T19:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to write to trace inode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184619#M460487</link>
      <description>Hi Vishu:&lt;BR /&gt;&lt;BR /&gt;Hi (again):&lt;BR /&gt;&lt;BR /&gt;Monitoring the filesystem's inode utiliztion is not going to track the kernel's high water mark for open inodes.  You can monitor the later with 'sar -v'.  Try this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;VAL=$(sar -v 1 1|tail -1|awk 'END{split(NODE,a,"/");printf "%d\n",a[1]/a[2]*100};{NODE=$6}')&lt;BR /&gt;[ "${VAL}" -gt 80 ] &amp;amp;&amp;amp; mailx -s "Inode Util at ${VAL}" root &amp;lt; /dev/null&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 30 Jun 2009 19:50:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184619#M460487</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-30T19:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to write to trace inode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184620#M460488</link>
      <description>Thanks James,&lt;BR /&gt;&lt;BR /&gt;   this is what i was looking for. Full points to you. Can you also give me the link to know the basic of scripting.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 30 Jun 2009 21:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184620#M460488</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-06-30T21:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to write to trace inode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184621#M460489</link>
      <description>Hi Vishu:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Can you also give me the link to know the basic of scripting.&lt;BR /&gt;&lt;BR /&gt;There are many, many good books on this subject.  I urge you to use the HP-UX Posix shell ('sh' in HP-UX) or the Korn ('ksh') shell.  Linux users like to port Bash ('bash') to HP-UX and it is close but has its own idiosyncrasies.  Whatever you do, do not use the brain-dead 'csh' (C-shell).&lt;BR /&gt;&lt;BR /&gt;A useful overview is this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-90046/index.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-90046/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Don't forget the 'sh-posix' manpages:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-60130/sh-posix.1.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-60130/sh-posix.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...and have a tour at this excellent site:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.shelldorado.com/" target="_blank"&gt;http://www.shelldorado.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jun 2009 22:16:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184621#M460489</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-30T22:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to write to trace inode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184622#M460490</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;A few book recommendations:&lt;BR /&gt;&lt;BR /&gt;Posix Shell Scripting (to solve problems)&lt;BR /&gt;&lt;A href="http://www.amazon.com/Shell-Scripting-Recipes-Problem-Solution-Approach/dp/1590594711/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1246410995&amp;amp;sr=8-1" target="_blank"&gt;http://www.amazon.com/Shell-Scripting-Recipes-Problem-Solution-Approach/dp/1590594711/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1246410995&amp;amp;sr=8-1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Classic Shell Scripting&lt;BR /&gt;&lt;A href="http://www.amazon.com/Classic-Shell-Scripting-Arnold-Robbins/dp/0596005954/ref=sr_1_3?ie=UTF8&amp;amp;s=books&amp;amp;qid=1246410995&amp;amp;sr=8-3" target="_blank"&gt;http://www.amazon.com/Classic-Shell-Scripting-Arnold-Robbins/dp/0596005954/ref=sr_1_3?ie=UTF8&amp;amp;s=books&amp;amp;qid=1246410995&amp;amp;sr=8-3&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.amazon.com/Mastering-Unix-Shell-Scripting-Administrators/dp/0470183012/ref=sr_1_4?ie=UTF8&amp;amp;s=books&amp;amp;qid=1246410995&amp;amp;sr=8-4" target="_blank"&gt;http://www.amazon.com/Mastering-Unix-Shell-Scripting-Administrators/dp/0470183012/ref=sr_1_4?ie=UTF8&amp;amp;s=books&amp;amp;qid=1246410995&amp;amp;sr=8-4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You will like them, in addition to the goodness that can be found at &lt;A href="http://docs.hp.com" target="_blank"&gt;http://docs.hp.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good Luck.&lt;BR /&gt;&lt;BR /&gt;Interesting thread.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 01 Jul 2009 00:18:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-write-to-trace-inode/m-p/5184622#M460490</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-07-01T00:18:22Z</dc:date>
    </item>
  </channel>
</rss>

