<?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: Checking kernel paramaters in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583209#M851871</link>
    <description>I checked my sam logfile (/var/sam/log/samlog)&lt;BR /&gt;and found the command it uses to build its list of configurable kernel parameters.&lt;BR /&gt;&lt;BR /&gt;I tested this and it doesn't require a root user to run it.  Also, it displayed maxusers, which technically isn't a kernel parameter (a variable used to calculate them tho).  &lt;BR /&gt;&lt;BR /&gt;the suggestions above which I tried left out maxusers.&lt;BR /&gt;&lt;BR /&gt;Anyway, the command is:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/sysadm/get_sysfile /stand/vmunix&lt;BR /&gt;&lt;BR /&gt;(send the output of this to a file or grep what you need from it)&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Jan 2002 14:04:28 GMT</pubDate>
    <dc:creator>Kevin_31</dc:creator>
    <dc:date>2002-01-08T14:04:28Z</dc:date>
    <item>
      <title>Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583197#M851859</link>
      <description>It looks like changes were made to kmtune on XSWGR54 that don't allow a regular user to view the kernel paramaters. I need to be able to get a list of kernel paramaters and settings using a standard user. &lt;BR /&gt;&lt;BR /&gt;Is anyone familiar with a library or command that can be used as a standard user to get a list of ALL kernel paramaters. I noticed the kc.sl library used by SAM, but have not been able to find information on it's use.</description>
      <pubDate>Fri, 21 Sep 2001 19:56:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583197#M851859</guid>
      <dc:creator>Soren Morton</dc:creator>
      <dc:date>2001-09-21T19:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583198#M851860</link>
      <description>Hi Soren,&lt;BR /&gt;&lt;BR /&gt;Will /usr/sbin/sysdef give you what you need?&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Fri, 21 Sep 2001 20:18:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583198#M851860</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-09-21T20:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583199#M851861</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I haven't applied that patch set but is it simply a case of /usr/sbin not being in a regular user's path. i.e. does /usr/sbin/kmtune work?&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Sep 2001 20:24:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583199#M851861</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-09-21T20:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583200#M851862</link>
      <description>Unfortunately sysdef only gives some paramaters (the ones that have been modified from the default I think).&lt;BR /&gt;&lt;BR /&gt;The problem stems from the fact that kmtune tries to create a lock file in a root owned directory making it impossible for a regular user to run the command successfully.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Sep 2001 20:49:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583200#M851862</guid>
      <dc:creator>Soren Morton</dc:creator>
      <dc:date>2001-09-21T20:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583201#M851863</link>
      <description>Hi Soren:&lt;BR /&gt;&lt;BR /&gt;I find that if all I want to do is query the kernel, the kmtune runs fine for both 11.0 and 11.11 as a regular user - but I haven't installed your particular patchset. That having been said, a very simple setuid C program which can be compiled with the bundled c compiler will do the trick:&lt;BR /&gt;&lt;BR /&gt;Create a text file sukmtune.c&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;  int cc = 0;&lt;BR /&gt;&lt;BR /&gt;  cc = setuid(0);&lt;BR /&gt;  if (cc == 0)&lt;BR /&gt;    {&lt;BR /&gt;      cc = system("/usr/sbin/kmtune");&lt;BR /&gt;    }&lt;BR /&gt;  return(cc);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Compile it as root: cc sukmtune.c -o sukmtune&lt;BR /&gt;chmod 4755 sukmtune&lt;BR /&gt;&lt;BR /&gt;Now a regular user can execute this as root.&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Sep 2001 21:43:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583201#M851863</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-09-21T21:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583202#M851864</link>
      <description>Due to security policies I can not do a suid program.&lt;BR /&gt;&lt;BR /&gt;I figure since kmtune can get the info without being root (until they implemented this lock mechanism on XSWGR54) there must be a library that will work, I just don't know what it is.</description>
      <pubDate>Fri, 21 Sep 2001 22:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583202#M851864</guid>
      <dc:creator>Soren Morton</dc:creator>
      <dc:date>2001-09-21T22:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583203#M851865</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Have a look at the following files. They give&lt;BR /&gt;all the information on all the kernel &lt;BR /&gt;parameters in the system including the defaults&lt;BR /&gt;minimums and maximums. Both of these files&lt;BR /&gt;are world-readable.&lt;BR /&gt;&lt;BR /&gt;/var/sam/boot.config&lt;BR /&gt;/usr/conf/master.d/core-hpux&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Sep 2001 22:52:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583203#M851865</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-09-24T22:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583204#M851866</link>
      <description>Is the /var/sam/boot.config file updated even if someone uses kmtune and builds the kernel using the command line utilities?</description>
      <pubDate>Tue, 25 Sep 2001 14:45:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583204#M851866</guid>
      <dc:creator>Soren Morton</dc:creator>
      <dc:date>2001-09-25T14:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583205#M851867</link>
      <description>Hello Soren,&lt;BR /&gt;&lt;BR /&gt;in the process of creating/building a new &lt;BR /&gt;kernel a file "conf.c" is created and compiled&lt;BR /&gt;to be linked into the new kernel. &lt;BR /&gt;Hence is DOES contain ALL parameters...&lt;BR /&gt;&lt;BR /&gt;So, all you would need is read-permission&lt;BR /&gt;for that file (below "/stand/build").&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Wodisch</description>
      <pubDate>Wed, 26 Sep 2001 15:06:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583205#M851867</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-09-26T15:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583206#M851868</link>
      <description>For anyone who runs across this I have found a workaround.&lt;BR /&gt;&lt;BR /&gt;echo "&lt;KERNEL parm=""&gt;?D" | adb -k /stand/vmunix&lt;BR /&gt;&lt;BR /&gt;You have to specify the paramaters you want, but the nice part is that it converts formulas and hex values.&lt;BR /&gt;&lt;/KERNEL&gt;</description>
      <pubDate>Sat, 10 Nov 2001 21:15:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583206#M851868</guid>
      <dc:creator>Soren Morton</dc:creator>
      <dc:date>2001-11-10T21:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583207#M851869</link>
      <description>Hi Soren,&lt;BR /&gt;&lt;BR /&gt;This feature(known as bug) was introduced by the patch PHCO_24112. Installing the superceeding patch PHCO_25342 fixes tthe kmtune problem.&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh</description>
      <pubDate>Sat, 10 Nov 2001 22:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583207#M851869</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-11-10T22:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583208#M851870</link>
      <description>Ramesh,&lt;BR /&gt;&lt;BR /&gt;Thanks for the update. I figured it was implemented on purpose (like the change to the sticky bit functionality).&lt;BR /&gt;</description>
      <pubDate>Sat, 10 Nov 2001 22:31:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583208#M851870</guid>
      <dc:creator>Soren Morton</dc:creator>
      <dc:date>2001-11-10T22:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Checking kernel paramaters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583209#M851871</link>
      <description>I checked my sam logfile (/var/sam/log/samlog)&lt;BR /&gt;and found the command it uses to build its list of configurable kernel parameters.&lt;BR /&gt;&lt;BR /&gt;I tested this and it doesn't require a root user to run it.  Also, it displayed maxusers, which technically isn't a kernel parameter (a variable used to calculate them tho).  &lt;BR /&gt;&lt;BR /&gt;the suggestions above which I tried left out maxusers.&lt;BR /&gt;&lt;BR /&gt;Anyway, the command is:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/sysadm/get_sysfile /stand/vmunix&lt;BR /&gt;&lt;BR /&gt;(send the output of this to a file or grep what you need from it)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jan 2002 14:04:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-kernel-paramaters/m-p/2583209#M851871</guid>
      <dc:creator>Kevin_31</dc:creator>
      <dc:date>2002-01-08T14:04:28Z</dc:date>
    </item>
  </channel>
</rss>

