<?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: Privilege required to access other process information in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184386#M26621</link>
    <description>Ravi,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;But when for processes in other nodes in the cluster, it is giving as process is running in the cluster even if the process is not running.&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;How do you tell the difference?&lt;BR /&gt;What's the value of "vf_l_status" before &amp;amp; after the call to $GETJPIW?&lt;BR /&gt;And why do you not specify an IOSB in the call to $GETJPIW?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)</description>
    <pubDate>Tue, 30 Jun 2009 07:03:05 GMT</pubDate>
    <dc:creator>Kris Clippeleyr</dc:creator>
    <dc:date>2009-06-30T07:03:05Z</dc:date>
    <item>
      <title>Privilege required to access other process information</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184385#M26620</link>
      <description>I am checking whether process is running or not using sys$getjpiw as shown below&lt;BR /&gt;&lt;BR /&gt;*  Check whether process runs in the cluster&lt;BR /&gt;&lt;BR /&gt;        vg_l_jpi.vg_pid.vh_itmcod = JPI$_PID&lt;BR /&gt;        vg_l_jpi.vg_pid.vh_buflen = 4&lt;BR /&gt;        vg_l_jpi.vg_pid.vf_bufadr = %LOC (vh_l_pid)&lt;BR /&gt;        vg_l_jpi.vg_pid.vf_retadr = %LOC (vh_l_pidlen)&lt;BR /&gt;&lt;BR /&gt;        vg_l_jpi.vg_eol.vf_end_of_list = 0&lt;BR /&gt;&lt;BR /&gt;*       Get process Information&lt;BR /&gt;&lt;BR /&gt;        vf_l_status = SYS$GETJPIW (,vh_l_pid_db,,vg_l_jpi,,,)&lt;BR /&gt;&lt;BR /&gt;This is working fine for processes running in local node.&lt;BR /&gt;But when for processes in other nodes in the cluster, it is giving as process is running in the cluster even if the process is not running.&lt;BR /&gt;&lt;BR /&gt;I have added WORLD privilege but its still not able to access process information in other nodes. GROUP privilege also exists.&lt;BR /&gt;&lt;BR /&gt;How can i make it workable to access other process information in other nodes in the cluster?&lt;BR /&gt;It would be grateful if someone responds quickly, i really got stuck.&lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;Ravi</description>
      <pubDate>Tue, 30 Jun 2009 05:58:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184385#M26620</guid>
      <dc:creator>RAVIKANTH_3</dc:creator>
      <dc:date>2009-06-30T05:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Privilege required to access other process information</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184386#M26621</link>
      <description>Ravi,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;But when for processes in other nodes in the cluster, it is giving as process is running in the cluster even if the process is not running.&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;How do you tell the difference?&lt;BR /&gt;What's the value of "vf_l_status" before &amp;amp; after the call to $GETJPIW?&lt;BR /&gt;And why do you not specify an IOSB in the call to $GETJPIW?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)</description>
      <pubDate>Tue, 30 Jun 2009 07:03:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184386#M26621</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2009-06-30T07:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Privilege required to access other process information</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184387#M26622</link>
      <description>Hi chris,&lt;BR /&gt;&lt;BR /&gt;Can you please provide information how can i access other process information from the same system call. Will providing WORLD privilege solves the problem?&lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;Ravi</description>
      <pubDate>Tue, 30 Jun 2009 07:52:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184387#M26622</guid>
      <dc:creator>RAVIKANTH_3</dc:creator>
      <dc:date>2009-06-30T07:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Privilege required to access other process information</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184388#M26623</link>
      <description>Ravi,&lt;BR /&gt;&lt;BR /&gt;Quoting from&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/83final/4527/4527pro_056.html#jun_290" target="_blank"&gt;http://h71000.www7.hp.com/doc/83final/4527/4527pro_056.html#jun_290&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;"The calling process must have GROUP privilege to obtain information about other processes with the same group UIC number as the calling process. The calling process must have WORLD privilege to obtain information about other processes on the system that are not in the same group as the calling process."&lt;BR /&gt;&lt;BR /&gt;I've checked it myself and with TMPMBX,NETMBX and WORLD enabled, I was able to retrieve info from processes running on all nodes of our development cluster.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jun 2009 08:43:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184388#M26623</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2009-06-30T08:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Privilege required to access other process information</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184389#M26624</link>
      <description>Hi Kris,&lt;BR /&gt;&lt;BR /&gt;Thanks for the repsonse.&lt;BR /&gt;&lt;BR /&gt;vh_l_pid_db is the process id in database. When ever user logs in i am storing pid in the database. Upon succesful exit, i am making pid as NULL. If the logout is not succesful, then pid remains same.&lt;BR /&gt;&lt;BR /&gt;So user is logging to window in node1 and he has not logged out succesfully. Now user is trying to login with another window with node2. So the code is taking the process id from database and checkign it runs in the cluster or not by using system call sys$getjpiw. But sys$getjpiw is working fine for processes in the same node. &lt;BR /&gt;&lt;BR /&gt;Do you have any idea what is the problem?&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;Ravi</description>
      <pubDate>Tue, 30 Jun 2009 09:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184389#M26624</guid>
      <dc:creator>RAVIKANTH_3</dc:creator>
      <dc:date>2009-06-30T09:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Privilege required to access other process information</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184390#M26625</link>
      <description>Ravi,&lt;BR /&gt;As I asked earlier...&lt;BR /&gt;What is the value of "vf_l_status" after a successful call, and after a call that fails?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jun 2009 09:42:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184390#M26625</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2009-06-30T09:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Privilege required to access other process information</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184391#M26626</link>
      <description>Hi Kris,&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;We identified the problem&lt;BR /&gt;Using IOSB solved the problem&lt;BR /&gt;&lt;BR /&gt;Ravi</description>
      <pubDate>Tue, 30 Jun 2009 10:24:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184391#M26626</guid>
      <dc:creator>RAVIKANTH_3</dc:creator>
      <dc:date>2009-06-30T10:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Privilege required to access other process information</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184392#M26627</link>
      <description>IOSB is never optional</description>
      <pubDate>Tue, 30 Jun 2009 10:48:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184392#M26627</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2009-06-30T10:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Privilege required to access other process information</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184393#M26628</link>
      <description>&lt;!--!*#--&gt;&amp;gt; IOSB is never optional&lt;BR /&gt;&lt;BR /&gt;Well, if you don't care about the answer, you&lt;BR /&gt;may be able to ignore the IOSB.&lt;BR /&gt;&lt;BR /&gt;In some cases, it's not even sufficient.  For&lt;BR /&gt;example, I recently discovered the benefits&lt;BR /&gt;of considering fib$l_acl_status when using&lt;BR /&gt;sys$qiow( [...] (IO$_ACCESS| IO$M_ACCESS)&lt;BR /&gt;[...]) to gather ACL data on a file.&lt;BR /&gt;(Finding someone else's old bugs is always&lt;BR /&gt;more fun than finding one's own.)</description>
      <pubDate>Tue, 30 Jun 2009 11:53:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184393#M26628</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-06-30T11:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Privilege required to access other process information</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184394#M26629</link>
      <description>PIDs are volatile and not something that would typically be stored in a database.  I'll presume there is some sort of a mechanism here to clear all this non-volatile storage of volatile data should the system fail or the should application crash at an untoward moment.&lt;BR /&gt;&lt;BR /&gt;The sys$getjpiw call here contains two errors.  It omits both the event flag and the IOSB.  Best practices has both of these as required.   If you don't care about the event flag and you're on OpenVMS V7.1 or later, then use EFN$C_ENF from EFNDEF.  Otherwise use lib$get_ef call, and get yourself a unique event flag.  Get off Event Flag Zero.  I'll presume you are checking both vf_l_status and the IOSB after the call, too; both should contain an odd value after a successful completion.&lt;BR /&gt;&lt;BR /&gt;Also read the following topic over at HP, and review your code for the various and sundry coding bugs and instabilities that are listed there:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/wizard/wiz_1661.html" target="_blank"&gt;http://h71000.www7.hp.com/wizard/wiz_1661.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jun 2009 13:47:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184394#M26629</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-06-30T13:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Privilege required to access other process information</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184395#M26630</link>
      <description>And why do you not specify an IOSB in the call to $GETJPIW?&lt;BR /&gt;&lt;BR /&gt;Using IOSB and checking for the status in IOSB solved my problem&lt;BR /&gt;&lt;BR /&gt;Thank you kris</description>
      <pubDate>Thu, 09 Jul 2009 11:41:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/privilege-required-to-access-other-process-information/m-p/5184395#M26630</guid>
      <dc:creator>RAVIKANTH_3</dc:creator>
      <dc:date>2009-07-09T11:41:22Z</dc:date>
    </item>
  </channel>
</rss>

