<?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: Finding information about the CPU programatically in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004233#M127110</link>
    <description>hold on -&amp;gt;</description>
    <pubDate>Sun, 22 Jun 2003 15:34:38 GMT</pubDate>
    <dc:creator>Donny Jekels</dc:creator>
    <dc:date>2003-06-22T15:34:38Z</dc:date>
    <item>
      <title>Finding information about the CPU programatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004230#M127107</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I would like to know the following for each CPU, programmatically&lt;BR /&gt;&lt;BR /&gt;    1. Type&lt;BR /&gt;    2. Model&lt;BR /&gt;    3. Speed&lt;BR /&gt;&lt;BR /&gt;I am able to get the number of active CPUs and the speed of each CPU by using pstat_getdynamic() and pstat_getprocessor(). For CPU Type I am using sysconf(), however this does not give the model for each CPU. Also for getting the CPU Model I am using the model command, which again has the same problem.&lt;BR /&gt;&lt;BR /&gt;Any information about APIs that lets me get all the information on a per CPU basis would be highly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Sonison James&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Jun 2003 13:43:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004230#M127107</guid>
      <dc:creator>Sonison James</dc:creator>
      <dc:date>2003-06-22T13:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Finding information about the CPU programatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004231#M127108</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am sorry for a mistake in the posting, please read the posting as&lt;BR /&gt;&lt;BR /&gt;I would like to know the following for each CPU, programmatically &lt;BR /&gt;&lt;BR /&gt;1. Type &lt;BR /&gt;2. Model &lt;BR /&gt;3. Speed &lt;BR /&gt;&lt;BR /&gt;I am able to get the number of active CPUs and the speed of each CPU by using pstat_getdynamic() and pstat_getprocessor(). For CPU Type I am using sysconf(), however this does not give the CPU Type for each CPU. Also for getting the CPU Model I am using the model command, which again has the same problem. &lt;BR /&gt;&lt;BR /&gt;Any information about APIs that lets me get all the information on a per CPU basis would be highly appreciated&lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;BR /&gt;Sonison James</description>
      <pubDate>Sun, 22 Jun 2003 13:55:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004231#M127108</guid>
      <dc:creator>Sonison James</dc:creator>
      <dc:date>2003-06-22T13:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Finding information about the CPU programatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004232#M127109</link>
      <description>Hi Sonison,&lt;BR /&gt;&lt;BR /&gt;Although this doesn't answer your question can I just add the information must be the same for each processor, i.e. they must all be the same model, type and speed. &lt;BR /&gt;&lt;BR /&gt;I think that the structures that hold the information are global (not per SPU) hence I don't believe writing code to find this will be of much use?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;James.</description>
      <pubDate>Sun, 22 Jun 2003 14:47:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004232#M127109</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2003-06-22T14:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Finding information about the CPU programatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004233#M127110</link>
      <description>hold on -&amp;gt;</description>
      <pubDate>Sun, 22 Jun 2003 15:34:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004233#M127110</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2003-06-22T15:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Finding information about the CPU programatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004234#M127111</link>
      <description>Hell,&lt;BR /&gt;You can use the att' scripts&lt;BR /&gt;OR:&lt;BR /&gt;################# CSTM #################&lt;BR /&gt;/usr/sbin/cstm &amp;lt;&amp;lt; EOF  &amp;gt;&amp;gt; /tmp/cstmmap1.tmp&lt;BR /&gt;map&lt;BR /&gt;exit&lt;BR /&gt;EOF&lt;BR /&gt;set CPU=`grep CPU /tmp/cstmmap1.tmp |awk '{print $1}'|sort -u`&lt;BR /&gt;foreach i ($CPU)&lt;BR /&gt;/usr/sbin/cstm &amp;lt;&amp;lt; EOF  &amp;gt;&amp;gt; /tmp/cpu1&lt;BR /&gt;map&lt;BR /&gt;sel device $i&lt;BR /&gt;il&lt;BR /&gt;SaveAs&lt;BR /&gt;cpu&lt;BR /&gt;EOF&lt;BR /&gt;set CACHE=`grep "Instruction Cache" /tmp/cpu |awk '{print $4}'|sort -u`&lt;BR /&gt;set PDC=`grep "PDC Firmware Revisi" /tmp/cpu |awk '{print $4}'|sort -u`&lt;BR /&gt;set CPUPATH=`grep CPU /tmp/cstmmap1.tmp |awk '{print $2}'|sort -u`&lt;BR /&gt;end&lt;BR /&gt;    endif&lt;BR /&gt;    endif&lt;BR /&gt;#############################&lt;BR /&gt;echo "Processors:`/usr/sbin/ioscan -C processor  |grep processor  |wc -l`" &amp;gt;&amp;gt;/tmp/cpu-info&lt;BR /&gt;set CPUSPEED=`echo "itick_per_usec/D" |adb -k /stand/vmunix /dev/kmem |tail -1|awk '{print $2}'`&lt;BR /&gt;echo "Processors Speed: "$CPUSPEED "Mhz"&amp;gt;&amp;gt;/tmp/cpu-info&lt;BR /&gt;foreach I ($CPUPATH)&lt;BR /&gt;echo "The CACHE size on Processors in path" $I "is "$CACHE "[Kbyte]" &amp;gt;&amp;gt;/tmp/cpu-info&lt;BR /&gt;end&lt;BR /&gt;echo "The PDC Firmware Revisi is" "$PDC" &amp;gt;&amp;gt; /tmp/cpu-info</description>
      <pubDate>Mon, 23 Jun 2003 06:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004234#M127111</guid>
      <dc:creator>gil paz_2</dc:creator>
      <dc:date>2003-06-23T06:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Finding information about the CPU programatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004235#M127112</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Thanks for the information and the scripts. Even the scripts seems to be assuming that all the CPUs have the same model and speed, so I hope that I can safely make that assumption too in my code.&lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;BR /&gt;Sonison James</description>
      <pubDate>Mon, 23 Jun 2003 08:45:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-information-about-the-cpu-programatically/m-p/3004235#M127112</guid>
      <dc:creator>Sonison James</dc:creator>
      <dc:date>2003-06-23T08:45:10Z</dc:date>
    </item>
  </channel>
</rss>

