🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

4 total messages Started by Framstag Fri, 13 Nov 1992 20:38
Nodename of given pid?
#189
Author: Framstag
Date: Fri, 13 Nov 1992 20:38
14 lines
1220 bytes
I want to find out (in DCL!) on which node a given process runs:
I have the process-name and his pid, but I don't know on which node on the
cluster it runs.

SHOW PROCESS/ID=pid  gives me the information, but I want it in a symbol
and I don't want to use temporary files.

Any hints?


\  Ulli 'Framstag' Horlacher    \    psi%0262450502601::rzmain::orakel  \
 \  Student consultant VAX/VMS and networks   \  orakel@dulruu51.bitnet  \
  \  Rechenzentrum  Universitaet Ulm  Germany  \    orakel@rz.uni-ulm.de  \
   \  "With mainframes you just can do nonsense, with PCs not even that."  \
Re: Nodename of given pid?
#229
Author: FRED W. BACH
Date: Fri, 20 Nov 1992 22:02
30 lines
1784 bytes
In article <1992Nov13.153939.3984@arizona.edu>, Leonard@Arizona.EDU writes...
#In article <1992Nov13.203833.413@wega.rz.uni-ulm.de>, ORAKEL@rzmain.rz.uni-ulm.de (Framstag)
#writes:
#| 
#| I want to find out (in DCL!) on which node a given process runs:
#| I have the process-name and his pid, but I don't know on which node on the
#| cluster it runs.
#| 
#| SHOW PROCESS/ID=pid  gives me the information, but I want it in a symbol
#| and I don't want to use temporary files.
#| 
#| Any hints?
# 
#F$GetJPI(pid,"NODENAME") does the trick, strangely enough.  (Not documented
#in the F$GetJPI help file as of V5.5-1.)
# 
#Aaron
# 
   I tried this with someone else's PID number and it complains to me
  about not enough priv's.

   More ideas?

 Fred W. Bach ,    Operations Group        |  Internet: music@erich.triumf.ca
 TRIUMF (TRI-University Meson Facility)    |  Voice:  604-222-1047 loc 278/419
 4004 WESBROOK MALL, UBC CAMPUS            |  FAX:    604-222-1074
 University of British Columbia, Vancouver, B.C., CANADA   V6T 2A3

 These are my opinions, which should ONLY make you read, think, and question.
 They do NOT necessarily reflect the views of my employer or fellow workers.
Re: Nodename of given pid?
#231
Author: Neil Readwin
Date: Sat, 21 Nov 1992 14:31
21 lines
1545 bytes
In article <20NOV199214022980@erich.triumf.ca>, music@erich.triumf.ca (FRED W. BACH) writes:
|> #F$GetJPI(pid,"NODENAME") does the trick, strangely enough.
[...]
|>    I tried this with someone else's PID number and it complains to me
|>   about not enough priv's.

Just as it should do. To call $GETJPI to get information about a process
owned by another person requires either GROUP privilege (if they are in the
same UIC group) or WORLD privilege.

|>    More ideas?

Ask you system manager for SETPRV? If that doesn't work then you could
reconstruct the CSID from the top bits of the PID and use F$GETSYI to give
you the node name. I posted (to comp.os.vms) the DCL to do this in the last
week of September but I no longer have a copy. You could search the
archives for it or work out the details yourself. It only takes a couple of
lines. Neil :-)
-- 
 Phone: +44 71 815 5283  E-mail: nreadwin@micrognosis.co.uk
 Anything is a cause for sorrow that my mind or body has made
Re: Nodename of given pid?
#232
Author: Aaron Leonard
Date: Sun, 22 Nov 1992 00:34
41 lines
1992 bytes
In article <20NOV199214022980@erich.triumf.ca>, music@erich.triumf.ca (FRED W. BACH) writes:
| 
| In article <1992Nov13.153939.3984@arizona.edu>, Leonard@Arizona.EDU writes...
| #In article <1992Nov13.203833.413@wega.rz.uni-ulm.de>, ORAKEL@rzmain.rz.uni-ulm.de (Framstag)
| #writes:
| #| 
| #| I want to find out (in DCL!) on which node a given process runs:
| #| I have the process-name and his pid, but I don't know on which node on the
| #| cluster it runs.
| #| 
| #| SHOW PROCESS/ID=pid  gives me the information, but I want it in a symbol
| #| and I don't want to use temporary files.
| #| 
| #| Any hints?
| # 
| #F$GetJPI(pid,"NODENAME") does the trick, strangely enough.  (Not documented
| #in the F$GetJPI help file as of V5.5-1.)
| # 
| #Aaron
| # 
|    I tried this with someone else's PID number and it complains to me
|   about not enough priv's.

Well, the original poster didn't suffer from your inadequacy, because he was 
capable of doing a SHOW PROCESS/ID on someone else's process.

| 
|    More ideas?

(Quick answer for you:)

1. $ SHOW SYS/CLUS to an output file
2. Read the output file and figure it out.

(And a question.)

If you don't have any privs, then how did you get this PID without 
knowing the node name?  And what do you think you're going to
accomplish now that you have the node name?

Aaron
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads