<?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 Collecting info from kernel by echo in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893368#M402771</link>
    <description>Hi All , &lt;BR /&gt;        Below are some commands to collect stats related to CPU by echo and it collects from kernel .&lt;BR /&gt;        Is there any link or good doc where i can get all the parameters and arguments which can be used with this echo command to get various other details .&lt;BR /&gt;&lt;BR /&gt;1) echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem&lt;BR /&gt;2) echo runningprocs/D | adb -k /stand/vmunix /dev/mem&lt;BR /&gt;&lt;BR /&gt;Thanks in advance ..&lt;BR /&gt;</description>
    <pubDate>Wed, 30 Mar 2005 00:53:49 GMT</pubDate>
    <dc:creator>Ranjit_3</dc:creator>
    <dc:date>2005-03-30T00:53:49Z</dc:date>
    <item>
      <title>Collecting info from kernel by echo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893368#M402771</link>
      <description>Hi All , &lt;BR /&gt;        Below are some commands to collect stats related to CPU by echo and it collects from kernel .&lt;BR /&gt;        Is there any link or good doc where i can get all the parameters and arguments which can be used with this echo command to get various other details .&lt;BR /&gt;&lt;BR /&gt;1) echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem&lt;BR /&gt;2) echo runningprocs/D | adb -k /stand/vmunix /dev/mem&lt;BR /&gt;&lt;BR /&gt;Thanks in advance ..&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Mar 2005 00:53:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893368#M402771</guid>
      <dc:creator>Ranjit_3</dc:creator>
      <dc:date>2005-03-30T00:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting info from kernel by echo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893369#M402772</link>
      <description>You might most definitely want to look into the book 'HP-UX 11.11 internals' - most of the header files relevant to what You seek should be mentioned in there. &lt;BR /&gt;&lt;BR /&gt;I also tried a few other things ago, but I don't remember much of that any more :&amp;gt;</description>
      <pubDate>Wed, 30 Mar 2005 10:43:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893369#M402772</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-03-30T10:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting info from kernel by echo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893370#M402773</link>
      <description>It's not really the echo command but rather the adb command that's doing the work. Man adb for details. You can also do a "nm /stand/vmunix" to get a listing of interestin g symbols.</description>
      <pubDate>Wed, 30 Mar 2005 10:48:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893370#M402773</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-03-30T10:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting info from kernel by echo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893371#M402774</link>
      <description>Look in knowledge base for various adb command with echo..&lt;BR /&gt;Here are some&lt;BR /&gt;&lt;BR /&gt;echo  physmem/D | adb /stand/vmunix /dev/kmem &lt;BR /&gt;&lt;BR /&gt;physmem:&lt;BR /&gt;physmem:  24576&lt;BR /&gt;&lt;BR /&gt;for 32 bit HP-UX 11.x systems :&lt;BR /&gt;&lt;BR /&gt; example:&lt;BR /&gt;&lt;BR /&gt; echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem &lt;BR /&gt;&lt;BR /&gt;phys_mem_pages:&lt;BR /&gt;phys_mem_pages: 24576&lt;BR /&gt;&lt;BR /&gt;for 64 bit systems :&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt; echo phys_mem_pages/D | adb64  /stand/vmunix /dev/mem &lt;BR /&gt;&lt;BR /&gt;phys_mem_pages:&lt;BR /&gt;phys_mem_pages: 262144&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To determine the amount of lockable memory for 32 bit systems :&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;echo total_lockable_mem/D | adb  /stand/vmunix  /dev/mem&lt;BR /&gt;&lt;BR /&gt;total_lockable_mem:&lt;BR /&gt;total_lockable_mem: 185280&lt;BR /&gt;&lt;BR /&gt;for 64 bit systems :&lt;BR /&gt;&lt;BR /&gt; echo total_lockable_mem/D |adb64  /stand/vmunix /dev/mem &lt;BR /&gt;&lt;BR /&gt;total_lockable_mem:&lt;BR /&gt;total_lockable_mem: 283750&lt;BR /&gt;&lt;BR /&gt;Total lockable memory is expressed in Kilobytes&lt;BR /&gt;&lt;BR /&gt;To determine the number of free swap 4096 byte memory pages :&lt;BR /&gt; example:&lt;BR /&gt;&lt;BR /&gt;echo swapspc_cnt/D | adb /stand/vmunix /dev/kmem &lt;BR /&gt;&lt;BR /&gt;swapspc_cnt:&lt;BR /&gt;swapspc_cnt:    216447&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To determine the CPU  speed:&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt; echo itick_per_usec/D | adb  /stand/vmunix /dev/mem  &lt;BR /&gt;&lt;BR /&gt;itick_per_usec:&lt;BR /&gt;itick_per_usec: 360&lt;BR /&gt;&lt;BR /&gt;To determine the number of processors in use:&lt;BR /&gt;&lt;BR /&gt; example:&lt;BR /&gt;&lt;BR /&gt; echo "runningprocs/D" | adb  /stand/vmunix /dev/mem &lt;BR /&gt;&lt;BR /&gt;runningprocs:&lt;BR /&gt;runningprocs:   2&lt;BR /&gt;&lt;BR /&gt;To determine the number of 4096 byte memory pages of buffer cache&lt;BR /&gt;&lt;BR /&gt; example:&lt;BR /&gt;&lt;BR /&gt; echo bufpages/D | adb  /stand/vmunix /dev/mem &lt;BR /&gt;bufpages:&lt;BR /&gt;bufpages:       18848&lt;BR /&gt;&lt;BR /&gt;To display kernel parameters using adb use the parameter name :&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt; echo nproc/D | adb  /stand/vmunix /dev/mem &lt;BR /&gt;&lt;BR /&gt;nproc:&lt;BR /&gt;nproc:          276&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To determine the kernel you are booted from:&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo 'boot_string/S' | adb /stand/vmunix /dev/mem &lt;BR /&gt;boot_string:&lt;BR /&gt;boot_string:    disc(52.6.0;0)/stand/vmunix&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Wed, 30 Mar 2005 10:49:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893371#M402774</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2005-03-30T10:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting info from kernel by echo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893372#M402775</link>
      <description>You can also do strings /stand/vmunix</description>
      <pubDate>Wed, 30 Mar 2005 10:50:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893372#M402775</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-30T10:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting info from kernel by echo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893373#M402776</link>
      <description>You can also script it like this:&lt;BR /&gt;&lt;BR /&gt;# cat /usr/local/bin/hpmem&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;# Taken from the HP/UniGraphics FAQ&lt;BR /&gt;# You must be ROOT to execute this since it uses adb to&lt;BR /&gt;# examine the running kernel&lt;BR /&gt;#&lt;BR /&gt;GetKernelSymbol()&lt;BR /&gt;{&lt;BR /&gt;echo "$1/D" | \&lt;BR /&gt;adb -k $hpux /dev/kmem | \&lt;BR /&gt;tr "\012" " " | \&lt;BR /&gt;read junk junk2 kval&lt;BR /&gt;}&lt;BR /&gt;hpux=/hp-ux&lt;BR /&gt;rev=$(uname -r | cut -d. -f2)&lt;BR /&gt;if ((rev &amp;gt; 9)); then hpux=/stand/vmunix ;fi&lt;BR /&gt;/bin/uname -a&lt;BR /&gt;GetKernelSymbol "processor_count"&lt;BR /&gt;print CPU Count: $kval&lt;BR /&gt;GetKernelSymbol "itick_per_tick"&lt;BR /&gt;let speed=kval/10000&lt;BR /&gt;print CPU Speed: $speed MHz&lt;BR /&gt;if ((rev &amp;gt; 10)); then&lt;BR /&gt;print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit&lt;BR /&gt;print Kernel Support: `getconf KERNEL_BITS`-bit&lt;BR /&gt;GetKernelSymbol "memory_installed_in_machine"&lt;BR /&gt;else&lt;BR /&gt;GetKernelSymbol "physmem"&lt;BR /&gt;fi&lt;BR /&gt;let mb=kval*4/1024 # convert pages to MB&lt;BR /&gt;print RAM Size: $mb MB&lt;BR /&gt;GetKernelSymbol "bufpages"&lt;BR /&gt;let mb=kval*4/1024 # convert pages to MB&lt;BR /&gt;print bufpages: $mb MB&lt;BR /&gt;GetKernelSymbol "maxuprc"&lt;BR /&gt;print maxuprc: $kval&lt;BR /&gt;GetKernelSymbol "maxvgs"&lt;BR /&gt;print maxvgs: $kval&lt;BR /&gt;GetKernelSymbol "maxfiles"&lt;BR /&gt;print maxfiles: $kval&lt;BR /&gt;GetKernelSymbol "max_thread_proc"&lt;BR /&gt;print max_thread_proc: $kval&lt;BR /&gt;GetKernelSymbol "nfile"&lt;BR /&gt;print nfile: $kval&lt;BR /&gt;GetKernelSymbol "nflocks"&lt;BR /&gt;print nflock: $kval&lt;BR /&gt;GetKernelSymbol "nproc"&lt;BR /&gt;print nproc: $kval&lt;BR /&gt;GetKernelSymbol "ninode"&lt;BR /&gt;print ninode: $kval&lt;BR /&gt;GetKernelSymbol "vfd_cw"&lt;BR /&gt;print shmmax: $kval&lt;BR /&gt;GetKernelSymbol "shmmni"&lt;BR /&gt;print shmmni: $kval&lt;BR /&gt;GetKernelSymbol "dbc_max_pct"&lt;BR /&gt;print dbc_max_pct: $kval&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 30 Mar 2005 11:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893373#M402776</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-03-30T11:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting info from kernel by echo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893374#M402777</link>
      <description>Thanks a lot to you all for your time and nice replies .I got the information what i was looking for from your replies .&lt;BR /&gt;&lt;BR /&gt;I have submitted the points ..&lt;BR /&gt;&lt;BR /&gt;Thanks ..&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Mar 2005 23:46:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893374#M402777</guid>
      <dc:creator>Ranjit_3</dc:creator>
      <dc:date>2005-03-30T23:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting info from kernel by echo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893375#M402778</link>
      <description>.</description>
      <pubDate>Wed, 30 Mar 2005 23:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-info-from-kernel-by-echo/m-p/4893375#M402778</guid>
      <dc:creator>Ranjit_3</dc:creator>
      <dc:date>2005-03-30T23:47:13Z</dc:date>
    </item>
  </channel>
</rss>

