<?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: Kernel Modification in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222856#M170633</link>
    <description>one precision about the sequence:&lt;BR /&gt;mk_kernel -s system&lt;BR /&gt;kmupdate&lt;BR /&gt;&lt;BR /&gt;mv /stand/vmunix.prev vmunix.prev.1&lt;BR /&gt;mv /stand/vmunix vmunix.prev&lt;BR /&gt;mv vmunix /stand/vmunix&lt;BR /&gt;&lt;BR /&gt;Don't do that! &lt;BR /&gt;1) kmupdate backup /stand/vmunix to /stand/vmunix.prev&lt;BR /&gt;2) if you really want to keep vmunix.prev,&lt;BR /&gt;don't forget to move /stand/dlkm.vmunix.prev &lt;BR /&gt;to /stand/dlkm.vmunix.prev.1, else your kernel will not be bootable.&lt;BR /&gt;3) kmudpate make that the next shutdown will mv /stand/build/vmunix_test to /stand/vmunix, and /stand/build/dlkm_vmunix_test to /stand/dlkm after backing the original ones to prev</description>
    <pubDate>Fri, 19 Mar 2004 05:08:07 GMT</pubDate>
    <dc:creator>Laurent Menase</dc:creator>
    <dc:date>2004-03-19T05:08:07Z</dc:date>
    <item>
      <title>Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222844#M170621</link>
      <description>Folks,&lt;BR /&gt;&lt;BR /&gt;I need some help here. I need to modify the kernel parameter nstrtel. This parameter is responsible for the number of allowable telnet sessions. Currently it is set to 60 and I want to increase it to 120. I don't want to use SAM for this because I need to put together a script to push this out to several systems. Could someone post a step by step command line instruction on how to modify the kernel and move the new kernel in place I would greatly appreciate it and will definitly award points! ;)&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Geno</description>
      <pubDate>Thu, 18 Mar 2004 10:59:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222844#M170621</guid>
      <dc:creator>Geno Church_1</dc:creator>
      <dc:date>2004-03-18T10:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222845#M170622</link>
      <description>kmtune -q &lt;PARAMETER&gt; query&lt;BR /&gt;&lt;BR /&gt;kmtune -s &lt;PARAMETER&gt; sets it&lt;BR /&gt;&lt;BR /&gt;so:&lt;BR /&gt;&lt;BR /&gt;kmtune -s  npty=120&lt;BR /&gt;kmtune -s nstrpty=120&lt;BR /&gt;&lt;BR /&gt;cd /stand/build&lt;BR /&gt;/usr/lbin/sysadm/system_pre -s system&lt;BR /&gt;mk_kernel -s system&lt;BR /&gt;kmupdate&lt;BR /&gt;&lt;BR /&gt;mv /stand/vmunix.prev vmunix.prev.1&lt;BR /&gt;mv /stand/vmunix vmunix.prev&lt;BR /&gt;mv vmunix /stand/vmunix&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;/PARAMETER&gt;&lt;/PARAMETER&gt;</description>
      <pubDate>Thu, 18 Mar 2004 11:08:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222845#M170622</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-18T11:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222846#M170623</link>
      <description>Would I run the kmtune commands before the system_prep command or after?</description>
      <pubDate>Thu, 18 Mar 2004 11:16:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222846#M170623</guid>
      <dc:creator>Geno Church_1</dc:creator>
      <dc:date>2004-03-18T11:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222847#M170624</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would say, SEP posted it in the sequence, you would use it too, except for that missing p.&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2004 11:22:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222847#M170624</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-03-18T11:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222848#M170625</link>
      <description>Check also that you have enough pty devices&lt;BR /&gt;&lt;BR /&gt;# ls /dev/pts/t* | wc -w&lt;BR /&gt;&lt;BR /&gt;If the value is lower as 120&lt;BR /&gt;then you must increase the number of device files.&lt;BR /&gt;In this case this will not be done if you reboot after kernel modification.&lt;BR /&gt;&lt;BR /&gt;# # insf -d tels -s 120&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;  Roland&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2004 11:28:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222848#M170625</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2004-03-18T11:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222849#M170626</link>
      <description>SEP,&lt;BR /&gt;&lt;BR /&gt;Thanks for the inof...BTW...I'm a little concerned about the kmtune placement...I was under the assumption the kmtune is ran after system prep.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;Geno</description>
      <pubDate>Thu, 18 Mar 2004 11:33:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222849#M170626</guid>
      <dc:creator>Geno Church_1</dc:creator>
      <dc:date>2004-03-18T11:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222850#M170627</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the kmtune placement seems to be right.&lt;BR /&gt;However I have a problem with the last mv.&lt;BR /&gt;I got only a vmunix_test in /stand/build.&lt;BR /&gt;&lt;BR /&gt;SEP, could you verify that?&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2004 12:25:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222850#M170627</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-03-18T12:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222851#M170628</link>
      <description>Yes, two mistakes.&lt;BR /&gt;&lt;BR /&gt;Someone was talking to my while i posted.&lt;BR /&gt;&lt;BR /&gt;system_prep not system_pre&lt;BR /&gt;&lt;BR /&gt;and yes, Michael, when i actually bothered to run the commmands i got vmunix_test&lt;BR /&gt;&lt;BR /&gt;Please modify my procedure accodringly and award this post 0 points.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 18 Mar 2004 12:34:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222851#M170628</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-18T12:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222852#M170629</link>
      <description>SEP,&lt;BR /&gt;&lt;BR /&gt;in anticipation of that I moved vmunix_test to /stand. Then however upon reboot I got in /etc/rc.log an error that it could not find /stand/build/vmunix_test.&lt;BR /&gt;&lt;BR /&gt;Have I missed anything?&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2004 12:49:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222852#M170629</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-03-18T12:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222853#M170630</link>
      <description>Ok folks,&lt;BR /&gt;&lt;BR /&gt;I have tried this procedure and it hasn't worked...If I do a kmtune -q nstrtel it still shows the pending value to be what I set it to and the current value is still the same....The procedure doesn't call for moving the /stand/system to /stand/system.prev..does this need to be done....If so, does a new /stand/system get created?&lt;BR /&gt;&lt;BR /&gt;Geno</description>
      <pubDate>Thu, 18 Mar 2004 15:08:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222853#M170630</guid>
      <dc:creator>Geno Church_1</dc:creator>
      <dc:date>2004-03-18T15:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222854#M170631</link>
      <description>Ok - point for point.&lt;BR /&gt;This is the procedure for 11.00 &amp;amp; 11.11&lt;BR /&gt;&lt;BR /&gt;1.# cd /stand/build&lt;BR /&gt;# rm â  r * (Be careful with this! You need to be in /stand/build/)&lt;BR /&gt;&lt;BR /&gt;2) Backup the current system file:&lt;BR /&gt;# cp /stand/system /stand/system.prev&lt;BR /&gt;&lt;BR /&gt;3) Is the system file up to date?&lt;BR /&gt;If you are not sure that the current system file (/stand/system) corresponds to&lt;BR /&gt;the current kernel (/stand/vmunix), then use the system_prep script to extract a&lt;BR /&gt;system file from the current kernel:&lt;BR /&gt;# /usr/lbin/sysadm/system_prep [-s /stand/system]&lt;BR /&gt;Compare the new system file to the original one. The diff command should not&lt;BR /&gt;produce any results:&lt;BR /&gt;# diff /stand/system /stand/system.prev&lt;BR /&gt;&lt;BR /&gt;4) Modify the system file&lt;BR /&gt;Use kmtune(1M) to modify kernel tunables. Use kmsystem(1M) to add/remove driver.&lt;BR /&gt;These commands do nothing more than modifying /stand/system. Due to various&lt;BR /&gt;dependencies, the system file should not be edited by hand. E.g.:&lt;BR /&gt;# kmtune â  s dbc_max_pct=35 (changes tunable in system files)&lt;BR /&gt;# kmsystem â  c y diag2 (adds driver diag2 to system file)&lt;BR /&gt;# kmsystem â  c n diag2 (removes driver diag2 from system file)&lt;BR /&gt;The â  kmâ   commands are explained below in greater detail.&lt;BR /&gt;&lt;BR /&gt;5) Generate the kernel&lt;BR /&gt;After you modified the system file, you can generate the new kernel using the&lt;BR /&gt;mk_kernel script. The name of the new kernel will be /stand/build/vmunix_test,&lt;BR /&gt;unless explicitly specified through the -o option. The -s option specifies the system file&lt;BR /&gt;to use, /stand/system is the default:&lt;BR /&gt;# mk_kernel&lt;BR /&gt;&lt;BR /&gt;6) Schedule kernel update&lt;BR /&gt;kmupdate is used to initiate the move of the new kernel (/stand/build/vmunix_test)&lt;BR /&gt;and the corresponding files to their appropriate places at the next shutdown or startup.&lt;BR /&gt;The current kernel will be copied to /stand/vmunix.prev, then.&lt;BR /&gt;# kmupdate&lt;BR /&gt;&lt;BR /&gt;7) Restart the system&lt;BR /&gt;The new kernel will be activated by restarting the system:&lt;BR /&gt;# cd /&lt;BR /&gt;# shutdown â  r 0&lt;BR /&gt;NOTE:&lt;BR /&gt;Do not use the reboot command. Otherwise the movement of the kernel files will be&lt;BR /&gt;skipped and the system boots from the original kernel again. If you really need to reboot&lt;BR /&gt;instead of shutdown, then execute the rc script manually before rebooting:&lt;BR /&gt;# /sbin/init.d/kmbuild stop&lt;BR /&gt;&lt;BR /&gt;I have attached a document where all these procedures are explained (for 10.x and 11.22/23 systems, too)&lt;BR /&gt;&lt;BR /&gt;Do not assign points to this. SEP has explained the b</description>
      <pubDate>Fri, 19 Mar 2004 04:38:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222854#M170631</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2004-03-19T04:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222855#M170632</link>
      <description>Hopefully in a better readable output now.&lt;BR /&gt;&lt;BR /&gt;Ok - point for point.&lt;BR /&gt;This is the procedure for 11.00 &amp;amp; 11.11&lt;BR /&gt;&lt;BR /&gt;1.# cd /stand/build&lt;BR /&gt;# rm -r * (Be careful with this! You need to be in /stand/build/)&lt;BR /&gt;&lt;BR /&gt;2) Backup the current system file:&lt;BR /&gt;# cp /stand/system /stand/system.prev&lt;BR /&gt;&lt;BR /&gt;3) Is the system file up to date?&lt;BR /&gt;If you are not sure that the current system file (/stand/system) corresponds to&lt;BR /&gt;the current kernel (/stand/vmunix), then use the system_prep script to extract a&lt;BR /&gt;system file from the current kernel:&lt;BR /&gt;# /usr/lbin/sysadm/system_prep [-s /stand/system]&lt;BR /&gt;Compare the new system file to the original one. The diff command should not&lt;BR /&gt;produce any results:&lt;BR /&gt;# diff /stand/system /stand/system.prev&lt;BR /&gt;&lt;BR /&gt;4) Modify the system file&lt;BR /&gt;Use kmtune(1M) to modify kernel tunables. Use kmsystem(1M) to add/remove driver.&lt;BR /&gt;These commands do nothing more than modifying /stand/system. Due to various&lt;BR /&gt;dependencies, the system file should not be edited by hand. E.g.:&lt;BR /&gt;# kmtune -s dbc_max_pct=35 (changes tunable in system files)&lt;BR /&gt;# kmsystem -c y diag2 (adds driver diag2 to system file)&lt;BR /&gt;# kmsystem -c n diag2 (removes driver diag2 from system file)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;5) Generate the kernel&lt;BR /&gt;After you modified the system file, you can generate the new kernel using the&lt;BR /&gt;mk_kernel script. The name of the new kernel will be /stand/build/vmunix_test,&lt;BR /&gt;unless explicitly specified through the -o option. The -s option specifies the system file&lt;BR /&gt;to use, /stand/system is the default:&lt;BR /&gt;# mk_kernel&lt;BR /&gt;&lt;BR /&gt;6) Schedule kernel update&lt;BR /&gt;kmupdate is used to initiate the move of the new kernel (/stand/build/vmunix_test)&lt;BR /&gt;and the corresponding files to their appropriate places at the next shutdown or startup.&lt;BR /&gt;The current kernel will be copied to /stand/vmunix.prev, then.&lt;BR /&gt;# kmupdate&lt;BR /&gt;&lt;BR /&gt;7) Restart the system&lt;BR /&gt;The new kernel will be activated by restarting the system:&lt;BR /&gt;# cd /&lt;BR /&gt;# shutdown -r 0&lt;BR /&gt;NOTE:&lt;BR /&gt;Do not use the reboot command. Otherwise the movement of the kernel files will be&lt;BR /&gt;skipped and the system boots from the original kernel again. If you really need to reboot&lt;BR /&gt;instead of shutdown, then execute the rc script manually before rebooting:&lt;BR /&gt;# /sbin/init.d/kmbuild stop&lt;BR /&gt;&lt;BR /&gt;I have attached a document where all these procedures are explained (for 10.x and 11.22/23 systems, too)&lt;BR /&gt;&lt;BR /&gt;Do not assign points to this. SEP has explained the basics before.&lt;BR /&gt;&lt;BR /&gt;Roland</description>
      <pubDate>Fri, 19 Mar 2004 04:42:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222855#M170632</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2004-03-19T04:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222856#M170633</link>
      <description>one precision about the sequence:&lt;BR /&gt;mk_kernel -s system&lt;BR /&gt;kmupdate&lt;BR /&gt;&lt;BR /&gt;mv /stand/vmunix.prev vmunix.prev.1&lt;BR /&gt;mv /stand/vmunix vmunix.prev&lt;BR /&gt;mv vmunix /stand/vmunix&lt;BR /&gt;&lt;BR /&gt;Don't do that! &lt;BR /&gt;1) kmupdate backup /stand/vmunix to /stand/vmunix.prev&lt;BR /&gt;2) if you really want to keep vmunix.prev,&lt;BR /&gt;don't forget to move /stand/dlkm.vmunix.prev &lt;BR /&gt;to /stand/dlkm.vmunix.prev.1, else your kernel will not be bootable.&lt;BR /&gt;3) kmudpate make that the next shutdown will mv /stand/build/vmunix_test to /stand/vmunix, and /stand/build/dlkm_vmunix_test to /stand/dlkm after backing the original ones to prev</description>
      <pubDate>Fri, 19 Mar 2004 05:08:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222856#M170633</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2004-03-19T05:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222857#M170634</link>
      <description>I think I have it now...I went through the procedure and it now works.....&lt;BR /&gt;&lt;BR /&gt;6972    cd /stand/build&lt;BR /&gt;&lt;BR /&gt;6973    /usr/lbin/sysadm/system_prep -v -s system&lt;BR /&gt;&lt;BR /&gt;6975    kmtune -s nstrtel=120 -S /stand/build/system&lt;BR /&gt;&lt;BR /&gt;6976    kmtune -s npty=120 -S /stand/build/system&lt;BR /&gt;&lt;BR /&gt;6977    kmtune -s nstrpty=120 -S /stand/build/system&lt;BR /&gt;&lt;BR /&gt;6978    mk_kernel -s system&lt;BR /&gt;&lt;BR /&gt;6979    mv /stand/system /stand/system.old&lt;BR /&gt;&lt;BR /&gt;6980    mv /stand/build/system /stand/system&lt;BR /&gt;&lt;BR /&gt;6981    /usr/sbin/kmupdate /stand/build/vmunix_test&lt;BR /&gt;&lt;BR /&gt;6982    cd /&lt;BR /&gt;&lt;BR /&gt;6983    shutdown -ry 0&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Once system is back upâ ¦.verify your changesâ ¦..&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;6984    kmtune -q nstrtel  Ã Should now be 120&lt;BR /&gt;&lt;BR /&gt;6986    ls /dev/pts/t* |wc -l  &amp;lt;-Should still be 60&lt;BR /&gt;&lt;BR /&gt;6987    insf -d tels -s 120  Ã Will set the ttys to 120&lt;BR /&gt;&lt;BR /&gt;6988    ls /dev/pts/t* |wc -l   Ã Should now be 120&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for all th</description>
      <pubDate>Fri, 19 Mar 2004 09:24:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-modification/m-p/3222857#M170634</guid>
      <dc:creator>Geno Church_1</dc:creator>
      <dc:date>2004-03-19T09:24:24Z</dc:date>
    </item>
  </channel>
</rss>

