<?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: CPU number in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524447#M220409</link>
    <description>Excelent script Jeff!</description>
    <pubDate>Thu, 14 Apr 2005 09:12:17 GMT</pubDate>
    <dc:creator>Tonatiuh</dc:creator>
    <dc:date>2005-04-14T09:12:17Z</dc:date>
    <item>
      <title>CPU number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524440#M220402</link>
      <description>HP-UX 11.11. How to know the number of CPUs (microprocesors) in my server?</description>
      <pubDate>Wed, 13 Apr 2005 16:49:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524440#M220402</guid>
      <dc:creator>Tonatiuh</dc:creator>
      <dc:date>2005-04-13T16:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: CPU number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524441#M220403</link>
      <description>'top' will give you that information - look at the top where it says CPUs, before you get to all the processes.&lt;BR /&gt;&lt;BR /&gt;Also stm (xstm for GUI) will also tell you.&lt;BR /&gt;&lt;BR /&gt;Sally</description>
      <pubDate>Wed, 13 Apr 2005 16:52:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524441#M220403</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-04-13T16:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: CPU number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524442#M220404</link>
      <description># ioscan -nfkC processor&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Apr 2005 16:56:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524442#M220404</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-04-13T16:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: CPU number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524443#M220405</link>
      <description>ioscan -k|grep processor|wc -l</description>
      <pubDate>Wed, 13 Apr 2005 17:06:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524443#M220405</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-04-13T17:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: CPU number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524444#M220406</link>
      <description>Or in a C program:&lt;BR /&gt;&lt;BR /&gt;/* returns the number of cpus installed */&lt;BR /&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;return mpctl(MPC_GETNUMSPUS,0,0);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/SYS&gt;</description>
      <pubDate>Thu, 14 Apr 2005 03:58:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524444#M220406</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2005-04-14T03:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: CPU number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524445#M220407</link>
      <description>Hi,&lt;BR /&gt;if running as root:&lt;BR /&gt;use SAM&lt;BR /&gt;or&lt;BR /&gt;echo runningprocs/D | adb -k&lt;BR /&gt; /stand/vmunix /dev/mem &lt;BR /&gt;Processor speed:&lt;BR /&gt;echo itick_per_usec/D | adb -k&lt;BR /&gt; /stand/vmunix /dev/mem&lt;BR /&gt;If you have access to perl:&lt;BR /&gt;Processor Speed:&lt;BR /&gt;perl -e 'local($PSTAT, $PSTAT_PROCESSOR)=(239,10);&lt;BR /&gt;local($struct_pst_processor)=("L30");&lt;BR /&gt;local($cpu_info, $cpu_ticks);&lt;BR /&gt;$cpu_info = "\0" x 120;&lt;BR /&gt;syscall($PSTAT, $PSTAT_PROCESSOR, $cpu_info, length($cpu_info), 1, 0);&lt;BR /&gt;($cpu_ticks)=(unpack($struct_pst_processor, $cpu_info))[26];&lt;BR /&gt;print "speed=".int($cpu_ticks/10000)."\n";'&lt;BR /&gt;(Thanks to Nancy Rippey)&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 14 Apr 2005 04:39:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524445#M220407</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-04-14T04:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: CPU number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524446#M220408</link>
      <description>Attached is a script that will display the number and speed of your CPU's...&lt;BR /&gt;&lt;BR /&gt;i.e.:&lt;BR /&gt;2 CPU(s) @ 550 Mhz&lt;BR /&gt;&lt;BR /&gt;The output is than awk-able for use in other scripts.</description>
      <pubDate>Thu, 14 Apr 2005 08:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524446#M220408</guid>
      <dc:creator>Jeff Carlin</dc:creator>
      <dc:date>2005-04-14T08:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: CPU number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524447#M220409</link>
      <description>Excelent script Jeff!</description>
      <pubDate>Thu, 14 Apr 2005 09:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524447#M220409</guid>
      <dc:creator>Tonatiuh</dc:creator>
      <dc:date>2005-04-14T09:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: CPU number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524448#M220410</link>
      <description>Thanks, but the adb parts were found elsewhere in this *excellent* forum.  My colleague Jose found those and created the base script. &lt;BR /&gt;&lt;BR /&gt;I have another one that is also helpful determining the amount of memory in use and total installed. It shows the following when run:&lt;BR /&gt;&lt;BR /&gt;46 %used ( 2267 Mb free ) 4096 Mb physical&lt;BR /&gt;&lt;BR /&gt;We run a mixed shop here, so it was written to run on HP, SUN &amp;amp; AIX.  Enjoy!</description>
      <pubDate>Thu, 14 Apr 2005 09:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524448#M220410</guid>
      <dc:creator>Jeff Carlin</dc:creator>
      <dc:date>2005-04-14T09:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: CPU number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524449#M220411</link>
      <description>Really Good Jeff. Thanks!</description>
      <pubDate>Thu, 14 Apr 2005 09:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524449#M220411</guid>
      <dc:creator>Tonatiuh</dc:creator>
      <dc:date>2005-04-14T09:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: CPU number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524450#M220412</link>
      <description>Hi Tonatiuh,&lt;BR /&gt;&lt;BR /&gt;Just a quick note in case you're running vpars or npars:&lt;BR /&gt;&lt;BR /&gt;If you're running virtual partitions most of the above methods will only show the CPU's that are allocated for that partition.  If you actually want to know the number of physical CPU's available across all vpars you can use the vparstatus command and look at the max number of cpu's.&lt;BR /&gt;&lt;BR /&gt;If you're using npars and you want to know the total number of CPU's across all partitions I think the easiest way would be to use the GSP commands.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Anthony</description>
      <pubDate>Thu, 14 Apr 2005 10:23:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-number/m-p/3524450#M220412</guid>
      <dc:creator>Anthony Lennan</dc:creator>
      <dc:date>2005-04-14T10:23:18Z</dc:date>
    </item>
  </channel>
</rss>

