<?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: adb to add kernel parameter..... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adb-to-add-kernel-parameter/m-p/3551677#M225045</link>
    <description>Actually, all you need to do is&lt;BR /&gt;echo " core_addpid/W1" | adb -w /stand/vmunix /dev/kmem&lt;BR /&gt;&lt;BR /&gt;This will ONLY change the memory image of the running kernel and leave the object file, /stand/vmunix, untouched. It's a safe command and this is a common practice for changing kernel values that otherwise can't be modified. You could also force the write to the object file but I prefer to simply change the image in /dev/kmem and if you want this to be a permanent change rather than writing the object file, I prefer to setup a startup script in /sbin/init.d.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Setting core_addpid (which already exists in your kernel) to 1 will have exactly the effect you are looking for. A core.nnnnn file will be produced in the CWD rather than simply 'core'.&lt;BR /&gt;</description>
    <pubDate>Wed, 25 May 2005 14:04:02 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-05-25T14:04:02Z</dc:date>
    <item>
      <title>adb to add kernel parameter.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adb-to-add-kernel-parameter/m-p/3551673#M225041</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I posted this a few days ago :&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=878600" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=878600&lt;/A&gt;&lt;BR /&gt; and got a suggestion to use adb to to add a kernel parameter called core_addpid.......&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;"Because the command &lt;BR /&gt;echo "core_addpid/d" | adb /stand/vmunix /dev/kmem &lt;BR /&gt;works, this suggests that you could use adb to alter /dev/kmem on the fly to set core_addpid to 1." &lt;BR /&gt;&lt;BR /&gt;Please how do I use adb to alter /dev/kmem on the fly to set core_addpid to 1? Not much experience with adb.....&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Vic</description>
      <pubDate>Wed, 25 May 2005 11:17:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adb-to-add-kernel-parameter/m-p/3551673#M225041</guid>
      <dc:creator>Vic S. Kelan</dc:creator>
      <dc:date>2005-05-25T11:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: adb to add kernel parameter.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adb-to-add-kernel-parameter/m-p/3551674#M225042</link>
      <description>Once you have successfully added the kernel parameter, something that may cause you support issues, use kmtune to change the parameter.&lt;BR /&gt;&lt;BR /&gt;kmtune -s core_addpid=1&lt;BR /&gt;&lt;BR /&gt;Then process your kernel and move it to production.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 25 May 2005 11:24:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adb-to-add-kernel-parameter/m-p/3551674#M225042</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-05-25T11:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: adb to add kernel parameter.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adb-to-add-kernel-parameter/m-p/3551675#M225043</link>
      <description>Vic --&lt;BR /&gt;&lt;BR /&gt;Keep in mind that "on the fly" adb changes to memory can also crash your system.&lt;BR /&gt;&lt;BR /&gt;Take a look at "man adb" ...&lt;BR /&gt;&lt;BR /&gt;I suspect you are looking for something like:&lt;BR /&gt;&lt;BR /&gt;adb -w /stand/vmunix /dev/kmem&lt;BR /&gt;adb&amp;gt;core_addpid/W1&lt;BR /&gt;adb&amp;gt;cntl-D&lt;BR /&gt;&lt;BR /&gt;Note that the above only changes it in kernel memory.  &lt;BR /&gt;&lt;BR /&gt;To change it on your actual kernel permanently, you would do:&lt;BR /&gt;&lt;BR /&gt;adb&amp;gt;core_addpid?W1&lt;BR /&gt;&lt;BR /&gt;BUT if you do this, you may make your kernel unbootable.  Ensure you have a backup copy of the kernel that will boot prior to doing this.&lt;BR /&gt;</description>
      <pubDate>Wed, 25 May 2005 11:30:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adb-to-add-kernel-parameter/m-p/3551675#M225043</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2005-05-25T11:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: adb to add kernel parameter.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adb-to-add-kernel-parameter/m-p/3551676#M225044</link>
      <description>Thanks Kent and SEP, thats exactly the adb command i needed, and after your tip......dont think I will use it :-(</description>
      <pubDate>Wed, 25 May 2005 12:21:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adb-to-add-kernel-parameter/m-p/3551676#M225044</guid>
      <dc:creator>Vic S. Kelan</dc:creator>
      <dc:date>2005-05-25T12:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: adb to add kernel parameter.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adb-to-add-kernel-parameter/m-p/3551677#M225045</link>
      <description>Actually, all you need to do is&lt;BR /&gt;echo " core_addpid/W1" | adb -w /stand/vmunix /dev/kmem&lt;BR /&gt;&lt;BR /&gt;This will ONLY change the memory image of the running kernel and leave the object file, /stand/vmunix, untouched. It's a safe command and this is a common practice for changing kernel values that otherwise can't be modified. You could also force the write to the object file but I prefer to simply change the image in /dev/kmem and if you want this to be a permanent change rather than writing the object file, I prefer to setup a startup script in /sbin/init.d.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Setting core_addpid (which already exists in your kernel) to 1 will have exactly the effect you are looking for. A core.nnnnn file will be produced in the CWD rather than simply 'core'.&lt;BR /&gt;</description>
      <pubDate>Wed, 25 May 2005 14:04:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adb-to-add-kernel-parameter/m-p/3551677#M225045</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-05-25T14:04:02Z</dc:date>
    </item>
  </channel>
</rss>

