<?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 for kernel parameters in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-kernel-parameters/m-p/3801223#M99882</link>
    <description>No script necessary -- just use grep's multiple pattern option -e. Since you did not specify &lt;BR /&gt;the OS version, you can use the command you like:&lt;BR /&gt; &lt;BR /&gt;kctune | grep -e maxfiles -e nfile -e maxusers -e nproc -e max_thread_proc -e ncallout -e nkthread&lt;BR /&gt; &lt;BR /&gt;or &lt;BR /&gt; &lt;BR /&gt;kmtune | grep -e maxfiles -e nfile -e maxusers -e nproc -e max_thread_proc -e ncallout -e nkthread&lt;BR /&gt; &lt;BR /&gt;NOTE: maxusers if a fudge factor, not a real kernel parameter. It is used as part of several default formula settings.</description>
    <pubDate>Tue, 06 Jun 2006 21:46:30 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2006-06-06T21:46:30Z</dc:date>
    <item>
      <title>shell script for kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-kernel-parameters/m-p/3801220#M99879</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to capture the below mentioned current configured kernel parameters in a file:- &lt;BR /&gt;&lt;BR /&gt;maxfiles &lt;BR /&gt;nfile     &lt;BR /&gt;maxusers     &lt;BR /&gt;nproc     &lt;BR /&gt;max_thread_proc     &lt;BR /&gt;ncallout    &lt;BR /&gt;nkthread   &lt;BR /&gt;&lt;BR /&gt;Can someone suggest a shell script ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Tue, 06 Jun 2006 17:40:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-kernel-parameters/m-p/3801220#M99879</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-06-06T17:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-kernel-parameters/m-p/3801221#M99880</link>
      <description>Hi Shiv:&lt;BR /&gt;&lt;BR /&gt;I'm going to assume 11.11 and point you to 'kmtune'.  You could do something like this:&lt;BR /&gt;&lt;BR /&gt;# cat ./myparms&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;typeset MYLOG=/tmp/kparms.log&lt;BR /&gt;date &amp;gt;&amp;gt; ${MYLOG}&lt;BR /&gt;echo "" &amp;gt;&amp;gt; ${MYLOG}&lt;BR /&gt;for P in maxfiles nfile maxusers nproc max_thread_proc ncallout nkthread&lt;BR /&gt;do&lt;BR /&gt;    kmtune -l -q ${P} &amp;gt;&amp;gt; ${MYLOG}&lt;BR /&gt;done&lt;BR /&gt;echo ".end." &amp;gt;&amp;gt; ${MYLOG}&lt;BR /&gt;&lt;BR /&gt;...simply run as :&lt;BR /&gt;&lt;BR /&gt;# ./myparms&lt;BR /&gt;&lt;BR /&gt;See the manpages for more information:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-60127/kmtune.1M.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-60127/kmtune.1M.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 06 Jun 2006 18:37:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-kernel-parameters/m-p/3801221#M99880</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-06-06T18:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-kernel-parameters/m-p/3801222#M99881</link>
      <description>Hi SHiv:&lt;BR /&gt;from man kmtune description in 11.23:&lt;BR /&gt;=====================================&lt;BR /&gt; kmtune is an obsolete command that is replaced by kctune(1M).  Users&lt;BR /&gt;      are encouraged to migrate to kctune(1M).  kmtune will be removed in a&lt;BR /&gt;      future release of HP-UX. The behavior of some of kmtune's options have&lt;BR /&gt;      changed and they are noted in the appropriate sections below.&lt;BR /&gt;=====================================&lt;BR /&gt;so...&lt;BR /&gt;&lt;BR /&gt;# cat &amp;gt;myparms_11.23&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;typeset MYLOG=/tmp/kparms_11.23.log&lt;BR /&gt;date &amp;gt;&amp;gt; ${MYLOG}&lt;BR /&gt;echo "" &amp;gt;&amp;gt; ${MYLOG}&lt;BR /&gt;for P in maxfiles nfile maxusers nproc max_thread_proc ncallout nkthread&lt;BR /&gt;do&lt;BR /&gt;kctune -v ${P} &amp;gt;&amp;gt; ${MYLOG}&lt;BR /&gt;done&lt;BR /&gt;echo ".end." &amp;gt;&amp;gt; ${MYLOG}&lt;BR /&gt;&lt;BR /&gt;--------&lt;BR /&gt;note that maxusers, ncallout not availble in 11.23. so two errors:&lt;BR /&gt;--------&lt;BR /&gt;./myparms_11.23&lt;BR /&gt;ERROR:   There are no tunables matching the name you specified.&lt;BR /&gt;ERROR:   There are no tunables matching the name you specified.&lt;BR /&gt;--------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2006 20:39:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-kernel-parameters/m-p/3801222#M99881</guid>
      <dc:creator>inventsekar_1</dc:creator>
      <dc:date>2006-06-06T20:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-kernel-parameters/m-p/3801223#M99882</link>
      <description>No script necessary -- just use grep's multiple pattern option -e. Since you did not specify &lt;BR /&gt;the OS version, you can use the command you like:&lt;BR /&gt; &lt;BR /&gt;kctune | grep -e maxfiles -e nfile -e maxusers -e nproc -e max_thread_proc -e ncallout -e nkthread&lt;BR /&gt; &lt;BR /&gt;or &lt;BR /&gt; &lt;BR /&gt;kmtune | grep -e maxfiles -e nfile -e maxusers -e nproc -e max_thread_proc -e ncallout -e nkthread&lt;BR /&gt; &lt;BR /&gt;NOTE: maxusers if a fudge factor, not a real kernel parameter. It is used as part of several default formula settings.</description>
      <pubDate>Tue, 06 Jun 2006 21:46:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-kernel-parameters/m-p/3801223#M99882</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-06-06T21:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: shell script for kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-for-kernel-parameters/m-p/3801224#M99883</link>
      <description>no. SHivkumar's question is:&lt;BR /&gt;&lt;BR /&gt;I want to capture the below mentioned current configured kernel parameters in a FILE:- &lt;BR /&gt;&lt;BR /&gt;anyhow, from bill's script, &lt;BR /&gt;&lt;BR /&gt;kctune | grep -e maxfiles -e nfile -e maxusers -e nproc -e max_thread_proc -e ncallout -e nkthread &amp;gt;/tmp/kparms_11.23.log&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jun 2006 08:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-for-kernel-parameters/m-p/3801224#M99883</guid>
      <dc:creator>inventsekar_1</dc:creator>
      <dc:date>2006-06-08T08:34:13Z</dc:date>
    </item>
  </channel>
</rss>

