<?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: Cloning kernel configurable parameters in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849310#M274589</link>
    <description>Hi  daniel&lt;BR /&gt;HP-UX OS version is the same, isn't it?&lt;BR /&gt; &lt;BR /&gt;I think you can do that like this&lt;BR /&gt;1. copy the original system's /stand/system file to those servers you intend to match the kernel parameter.&lt;BR /&gt;&lt;BR /&gt;2. mk_kernel -s "the copied file"&lt;BR /&gt;&lt;BR /&gt;that's my idea!!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;nanan</description>
    <pubDate>Wed, 23 Aug 2006 21:39:48 GMT</pubDate>
    <dc:creator>nanan</dc:creator>
    <dc:date>2006-08-23T21:39:48Z</dc:date>
    <item>
      <title>Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849308#M274587</link>
      <description>How can I copy all the kernel configurable parameters from one rp3440 server in a number of rp3440s with the same Hardware specs but without using ignite or sam, just using plain old command line?</description>
      <pubDate>Wed, 23 Aug 2006 18:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849308#M274587</guid>
      <dc:creator>Daniel Sanabria</dc:creator>
      <dc:date>2006-08-23T18:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849309#M274588</link>
      <description>Daniel:&lt;BR /&gt;&lt;BR /&gt;Have a full backup of all your info before to attempting this.&lt;BR /&gt;&lt;BR /&gt;If you want to duplicate your Kernel from one system to another try these steps:&lt;BR /&gt;&lt;BR /&gt;1. Copy /stand/vmunix from one system to a directory on the other server&lt;BR /&gt;2. Run SAM -&amp;gt; Kernel Config -&amp;gt; Configurable Parameters&lt;BR /&gt;3. Go to Actions -&amp;gt; Templates -&amp;gt; Load a template file&lt;BR /&gt;4. Specify /[directory]/vmunix&lt;BR /&gt;5. Go to Actions -&amp;gt; Templates -&amp;gt; Apply Template Values&lt;BR /&gt;6. Check both "Driver and Subsystem Values" and "Configurable&lt;BR /&gt;Parameter Values"&lt;BR /&gt;7. Go to Actions -&amp;gt; Process New Kernel&lt;BR /&gt;&lt;BR /&gt;On Step 6 you can try both or just "Configurable Parameter Values"&lt;BR /&gt;&lt;BR /&gt;Reboot the server if needed. &lt;BR /&gt;Make sure you have the latest cumulative SAM Patch installed.&lt;BR /&gt;&lt;BR /&gt;LN</description>
      <pubDate>Wed, 23 Aug 2006 20:33:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849309#M274588</guid>
      <dc:creator>NMory</dc:creator>
      <dc:date>2006-08-23T20:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849310#M274589</link>
      <description>Hi  daniel&lt;BR /&gt;HP-UX OS version is the same, isn't it?&lt;BR /&gt; &lt;BR /&gt;I think you can do that like this&lt;BR /&gt;1. copy the original system's /stand/system file to those servers you intend to match the kernel parameter.&lt;BR /&gt;&lt;BR /&gt;2. mk_kernel -s "the copied file"&lt;BR /&gt;&lt;BR /&gt;that's my idea!!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;nanan</description>
      <pubDate>Wed, 23 Aug 2006 21:39:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849310#M274589</guid>
      <dc:creator>nanan</dc:creator>
      <dc:date>2006-08-23T21:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849311#M274590</link>
      <description>Why don't you just copy the system file over and diff the two?</description>
      <pubDate>Wed, 23 Aug 2006 21:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849311#M274590</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2006-08-23T21:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849312#M274591</link>
      <description>Thanks for your reply Nassar but the idea is not to use sam at all since what I have is a very slow remote console connection.&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Aug 2006 08:16:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849312#M274591</guid>
      <dc:creator>Daniel Sanabria</dc:creator>
      <dc:date>2006-08-24T08:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849313#M274592</link>
      <description>Thanks Nanan, yes the OS version is the same for all the servers HP-UX 11i.</description>
      <pubDate>Thu, 24 Aug 2006 08:21:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849313#M274592</guid>
      <dc:creator>Daniel Sanabria</dc:creator>
      <dc:date>2006-08-24T08:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849314#M274593</link>
      <description>If the issue is sam in a gui, you could also run sam from a terminal window.  An emulator that supports wyse50 or wyse60 works very well for this.</description>
      <pubDate>Thu, 24 Aug 2006 08:30:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849314#M274593</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2006-08-24T08:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849315#M274594</link>
      <description>Is there a way to do it not using SAM at all not even in a terminal window? That's my main interest.</description>
      <pubDate>Thu, 24 Aug 2006 09:00:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849315#M274594</guid>
      <dc:creator>Daniel Sanabria</dc:creator>
      <dc:date>2006-08-24T09:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849316#M274595</link>
      <description>If you are running 11.23 you can do something like:&lt;BR /&gt;On the first machine export the kernel configuration by&lt;BR /&gt;kconfig -e /tmp/myfile&lt;BR /&gt;&lt;BR /&gt;Transfer the exported file to the new machine and import the konfiguration with &lt;BR /&gt;kconfig -i /tmp/myfile &lt;BR /&gt;shutdown -yr 0 &lt;BR /&gt;&lt;BR /&gt;And when the machine is rebooted the second machine should be similiar to the first one.</description>
      <pubDate>Fri, 25 Aug 2006 07:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849316#M274595</guid>
      <dc:creator>Robert Andersson</dc:creator>
      <dc:date>2006-08-25T07:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849317#M274596</link>
      <description>&lt;!--!*#--&gt;Hey;&lt;BR /&gt;&lt;BR /&gt;Here's what I do when I have to run this.  Note: it's easier on 11.23, but you specified 11.11, so here goes:&lt;BR /&gt;&lt;BR /&gt;1.  Follow the directions on &lt;A href="http://www.olearycomputers.com/ll/hpkernel.html" target="_blank"&gt;http://www.olearycomputers.com/ll/hpkernel.html&lt;/A&gt; to create a new /stand/build/system file.&lt;BR /&gt;&lt;BR /&gt;2.  Copy the /stand/system from your source system to a temporary directory:&lt;BR /&gt;&lt;BR /&gt;mkdir -p /root/working/kernel&lt;BR /&gt;cd $_&lt;BR /&gt;scp ${host}:/stand/system .&lt;BR /&gt;&lt;BR /&gt;3.  ID kernel differences:&lt;BR /&gt;&lt;BR /&gt;sed -n -e '/^Tunable/,$p' ./system | awk 'NF ==2 {print $1,$2)}' | \&lt;BR /&gt;while read p v&lt;BR /&gt;do&lt;BR /&gt;   c=$(kmtune -q ${p} | tail -1 | awk '{print $2}')&lt;BR /&gt;   [[ "${c}" != "${v}" ]] &amp;amp;&amp;amp; printf "%-30s %-15s %s\n" ${p} ${c} ${v}&lt;BR /&gt;done | tee kern_parms&lt;BR /&gt;&lt;BR /&gt;4.  Edit the kern_parms; remove any kernel parameters you don't want updated.&lt;BR /&gt;&lt;BR /&gt;5.  Update the /stand/build/system file:&lt;BR /&gt;&lt;BR /&gt;awk '{print $1,$3}' kern_parms | while read p v&lt;BR /&gt;do&lt;BR /&gt;   kmtune -s ${p}=${v} -S /stand/build/system&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;6.  Follow remaining instructions in the url link above to generate the kernel.  In short:&lt;BR /&gt;&lt;BR /&gt;mk_kernel -s /stand/build/system&lt;BR /&gt;cp /stand/system /stand/system.prev&lt;BR /&gt;cp /stand/vmunix /stand/vmunix.prev&lt;BR /&gt;km_update&lt;BR /&gt;reboot&lt;BR /&gt;&lt;BR /&gt;HTH;&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Fri, 25 Aug 2006 08:40:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849317#M274596</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2006-08-25T08:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849318#M274597</link>
      <description>Doug,&lt;BR /&gt;I like your script!&lt;BR /&gt;I had a couple of problems when testing it out on 11.11, however.&lt;BR /&gt;&lt;BR /&gt;1) don't need  ^ in ^Tunable&lt;BR /&gt;&lt;BR /&gt;2) missing "(" in the first awk print function&lt;BR /&gt;( or, an extranous ")" ;&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;3) when you compare using the "Current" value, you lose macros and thus get false non-matches.  I would suggest using "Planned" ( $4 instead of $2)&lt;BR /&gt;&lt;BR /&gt;Now, this was on 11.11&lt;BR /&gt;and my 11.23 system has gone missing so I cannot check it there.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Fri, 25 Aug 2006 10:11:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849318#M274597</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2006-08-25T10:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849319#M274598</link>
      <description>Hey;&lt;BR /&gt;&lt;BR /&gt;Thanks. &lt;BR /&gt;&lt;BR /&gt;The ^Tunable is to ensure I get the tunable from "tunable parameters"  Generally not needed, I agree, but I tend to like to hammer those down.&lt;BR /&gt;&lt;BR /&gt;The awk was definitely an error; typing those into a browser window is very different than typing them into a command line.  That particular awk shouldn't have the paren before the closing brace.&lt;BR /&gt;&lt;BR /&gt;There's definitely arguments pro/con for using the current vs the planned.  I usually go for the current in case someone else has tweaked the kernel for the next reboot - at least I'm using parameters from a known good, bootable kernel.  &lt;BR /&gt;&lt;BR /&gt;Thanks for the feedback.&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Fri, 25 Aug 2006 14:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849319#M274598</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2006-08-25T14:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849320#M274599</link>
      <description>My point on ^Tunable was the carat itself, meaning that "Tunable" was first char on the line.&lt;BR /&gt;&lt;BR /&gt;On my 11.00 and  11.11 systems, the actual string in "system" is&lt;BR /&gt;&lt;BR /&gt;"* Tunable ...."&lt;BR /&gt;so ^Tunable did not match it.&lt;BR /&gt;Keeping case, but removing first-char restriction probably makes it match on any HPUX version.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Aug 2006 14:59:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849320#M274599</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2006-08-25T14:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849321#M274600</link>
      <description>Hey;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;  My point on ^Tunable was the carat itself, meaning that "Tunable" was first char on the line.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; On my 11.00 and 11.11 systems, the actual string in "system" is&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; "* Tunable ...."&lt;BR /&gt;&lt;BR /&gt;You are absolutely correct.  I really ought not try to write these things from memory in a browser window.  Humble apologies.&lt;BR /&gt;&lt;BR /&gt;At least the logic's sound :)&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Fri, 25 Aug 2006 15:20:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849321#M274600</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2006-08-25T15:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849322#M274601</link>
      <description>scp /stand/system file, mk_kernel -s, reboot, done.</description>
      <pubDate>Fri, 25 Aug 2006 16:35:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849322#M274601</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2006-08-25T16:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning kernel configurable parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849323#M274602</link>
      <description>I don't think that's quite right, Kevin, at least on 11.11.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1) it should be&lt;BR /&gt;    mk_kernel -s system&lt;BR /&gt;&lt;BR /&gt;2) and this only creates build/vmunix_test.&lt;BR /&gt;&lt;BR /&gt;You still need the 'kmupdate' command prior to reboot.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Fri, 25 Aug 2006 17:11:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cloning-kernel-configurable-parameters/m-p/3849323#M274602</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2006-08-25T17:11:15Z</dc:date>
    </item>
  </channel>
</rss>

