<?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: how can i get all process names and topcpu using c? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356222#M41700</link>
    <description>&amp;gt;&amp;gt; sorry,i have noticed my error,thank you!&lt;BR /&gt;&lt;BR /&gt;Not your error! Sloppy parameter / dscription. It clearly indicates 'unsigned' and then tells you to put a -1 in there. Oh well.&lt;BR /&gt;&lt;BR /&gt;Anyway... now that you figured it out, attached a ditty program to do a 'show process' with CSV output and CPU time columns for USER, EXEC and KERNEL.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 12 Feb 2009 05:25:56 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2009-02-12T05:25:56Z</dc:date>
    <item>
      <title>how can i get all process names and topcpu using c?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356216#M41694</link>
      <description>i just know how to use sys$getjpi or lib$getjpi when i know the process names,but i wanted to get all the running process in the system ,how can i do it using c language?</description>
      <pubDate>Wed, 11 Feb 2009 08:21:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356216#M41694</guid>
      <dc:creator>likuair_1</dc:creator>
      <dc:date>2009-02-11T08:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get all process names and topcpu using c?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356217#M41695</link>
      <description>Hi,&lt;BR /&gt;You don't need the process names in order to obtain various info.&lt;BR /&gt;Have a look at the system services $PROCESS_SCAN and $GETJPI in the System Services Reference Manual at:&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/83final/4527/4527pro.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/83final/4527/4527pro.html&lt;/A&gt;&lt;BR /&gt;However, you need to be priv'ed to obtain info about processes not running under your UIC.&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)</description>
      <pubDate>Wed, 11 Feb 2009 08:56:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356217#M41695</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2009-02-11T08:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get all process names and topcpu using c?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356218#M41696</link>
      <description>Hi,&lt;BR /&gt;I forgot...&lt;BR /&gt;If you're really adventurous have a look at QJPI at&lt;BR /&gt;&lt;A href="http://www.quadratrix.be/qjpi.html" target="_blank"&gt;http://www.quadratrix.be/qjpi.html&lt;/A&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)</description>
      <pubDate>Wed, 11 Feb 2009 08:58:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356218#M41696</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2009-02-11T08:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get all process names and topcpu using c?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356219#M41697</link>
      <description>&lt;!--!*#--&gt;$ HELP SYSTEM_SERVICE $GETJPI &lt;BR /&gt;&lt;SNIP&gt;&lt;BR /&gt;Arguments&lt;BR /&gt;&lt;SNIP&gt;&lt;BR /&gt; pidadr&lt;BR /&gt;&lt;BR /&gt;       OpenVMS usage:process_id&lt;BR /&gt;       type:         longword (unsigned)&lt;BR /&gt;       access:       modify&lt;BR /&gt;       mechanism:    by 32- or 64-bit reference (Alpha)&lt;BR /&gt;       mechanism:    by 32-bit reference (VAX)&lt;BR /&gt;&lt;SNIP&gt;&lt;BR /&gt; If you give pidadr the value -1, $GETJPI assumes a wildcard&lt;BR /&gt;       operation and returns the requested information for each process&lt;BR /&gt;       on the system that it has the privilege to access, one process&lt;BR /&gt;       per call. To perform a wildcard operation, you must call $GETJPI&lt;BR /&gt;       in a loop, testing for the condition value SS$_NOMOREPROC after&lt;BR /&gt;       each call and exiting from the loop when SS$_NOMOREPROC is&lt;BR /&gt;       returned.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SNIP&gt;&lt;/SNIP&gt;&lt;/SNIP&gt;</description>
      <pubDate>Wed, 11 Feb 2009 16:31:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356219#M41697</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2009-02-11T16:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get all process names and topcpu using c?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356220#M41698</link>
      <description>hello,Mr.Jess Goodman:&lt;BR /&gt;  i can not set the pdiadr to -1 just because it's unsigned ,how can i do this?</description>
      <pubDate>Thu, 12 Feb 2009 02:41:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356220#M41698</guid>
      <dc:creator>likuair_1</dc:creator>
      <dc:date>2009-02-12T02:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get all process names and topcpu using c?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356221#M41699</link>
      <description>sorry,i have noticed my error,thank you!</description>
      <pubDate>Thu, 12 Feb 2009 03:05:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356221#M41699</guid>
      <dc:creator>likuair_1</dc:creator>
      <dc:date>2009-02-12T03:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get all process names and topcpu using c?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356222#M41700</link>
      <description>&amp;gt;&amp;gt; sorry,i have noticed my error,thank you!&lt;BR /&gt;&lt;BR /&gt;Not your error! Sloppy parameter / dscription. It clearly indicates 'unsigned' and then tells you to put a -1 in there. Oh well.&lt;BR /&gt;&lt;BR /&gt;Anyway... now that you figured it out, attached a ditty program to do a 'show process' with CSV output and CPU time columns for USER, EXEC and KERNEL.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Feb 2009 05:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356222#M41700</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-02-12T05:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get all process names and topcpu using c?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356223#M41701</link>
      <description>The attachment did not stick. Trying again. Hein.</description>
      <pubDate>Thu, 12 Feb 2009 05:28:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356223#M41701</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-02-12T05:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get all process names and topcpu using c?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356224#M41702</link>
      <description>Note that more extensive statistics cane be obtained using SYS$GETRMI&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Feb 2009 13:35:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356224#M41702</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2009-02-12T13:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get all process names and topcpu using c?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356225#M41703</link>
      <description>hello,Mr.Hein van den Heuvel:&lt;BR /&gt;&lt;BR /&gt;    I just download your codes and test it,&lt;BR /&gt;the following is the output :&lt;BR /&gt;&lt;BR /&gt;"IOMASTER",13105,1,26,386,360,569,00000C18,8,$1$DGA1:[BKMASIC.][DATA.MASIC1.RELEASE]IOMASTER.EXE;26&lt;BR /&gt;&lt;BR /&gt;here we can see that the kernel time is 13105,and EXECTIME is 1,and usertime is 26,but i wanted to get the cpu using percent of the system just like using &lt;BR /&gt;$MONITOR PROCESS/TOPCPU &lt;BR /&gt;00000C18  IOMASTER               20  ,&lt;BR /&gt;how can i do this?</description>
      <pubDate>Fri, 13 Feb 2009 03:30:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356225#M41703</guid>
      <dc:creator>likuair_1</dc:creator>
      <dc:date>2009-02-13T03:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get all process names and topcpu using c?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356226#M41704</link>
      <description>i am using the system function to get system informations ,so i'm also testing sys$getsyi ,i know how to get the total memory of the system using SYI$_PHYSICALPAGES,but i wanted to get total free pages,in use pages just like &lt;BR /&gt;$show memory,can you help me?</description>
      <pubDate>Fri, 13 Feb 2009 03:34:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356226#M41704</guid>
      <dc:creator>likuair_1</dc:creator>
      <dc:date>2009-02-13T03:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get all process names and topcpu using c?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356227#M41705</link>
      <description>likuair,&lt;BR /&gt;&lt;BR /&gt;YOU can do this.&lt;BR /&gt;&lt;BR /&gt;Check out the GETJPI call in the example.&lt;BR /&gt;Read it twice.&lt;BR /&gt;The GETSYI call is very much similar. &lt;BR /&gt;Read up! In the manuals, or: $ help system $GETSYI&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As for the 20%.... 20% of what?&lt;BR /&gt;A single CPU? All cpu usage?&lt;BR /&gt;Since beginning of time? For an iteration?&lt;BR /&gt;&lt;BR /&gt;YOU can do this. If you can not, then IMHO you have no business even asking the first question.&lt;BR /&gt;YOU can solve this in the program, or outside in EXCEL.&lt;BR /&gt;You'll just need 2 (or more) measurement in a loop. Take that CPU time (in centi-seconds) subtract the prior value, multiply by 100 and divide by the centiseconds between measurements.&lt;BR /&gt;&lt;BR /&gt;IF you can not handle that, call LIB$SPAWN ("SHOW SYSTEM") or similar.&lt;BR /&gt;&lt;BR /&gt;btw... For mere money I'll gladly hold your hand, or do this for you.&lt;BR /&gt;&lt;BR /&gt;Enjoy!&lt;BR /&gt;Hein&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Feb 2009 04:28:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-i-get-all-process-names-and-topcpu-using-c/m-p/4356227#M41705</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-02-13T04:28:33Z</dc:date>
    </item>
  </channel>
</rss>

