Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!husc6!think!ames!ucbcad!ucbvax!BRL-LVAX.ARPA!gregory
From: gregory@BRL-LVAX.ARPA ("Daniel L. Gregory")
Newsgroups: comp.os.vms
Subject: remote pid's via decnet...
Message-ID: <8707230035.AA11807@ucbvax.Berkeley.EDU>
Date: Wed, 22-Jul-87 20:35:51 EDT
Article-I.D.: ucbvax.8707230035.AA11807
Posted: Wed Jul 22 20:35:51 1987
Date-Received: Sat, 25-Jul-87 01:37:14 EDT
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: "Daniel L. Gregory" 
Distribution: world
Organization: The ARPA Internet
Lines: 54

>> Does anyone have a program to return the remote node and id of a process
>> that has logged in via SET HOST ?

>Yup. It's called NCP. SHOW KNOWN LINKS, to be precise. Gives remote node and
>user-id, plus local process ID.
>
>Nigel Arnot (Dept. Physics, Kings college, Univ. of London;  U.K)
>
>Bitnet/NetNorth/Earn:   sysmgr@ipg.ph.kcl.ac.uk (or) sysmgr%kcl.ph.vaxa@ac.uk
>       Arpa         :   sysmgr%ipg.ph.kcl.ac.uk@ucl-cs.arpa

>>>Nope.  The local process ID is the PID of REMACP.
>>>
>>>John Briggs 		Arpa:  BRIGGS@BLUTO.SCC.COM
>>>>-----

Nope again.  Assuming the person has logged in with the same username,
otherwise you will have to get the correct remote link from the local
PID:

On your local node (here V8600)
NCP> SHOW KNOW LINKS 
 
Known Link Volatile Summary as of 22-JUL-1987 10:48:16
 
   Link       Node           PID     Process     Remote link  Remote user
 
  3113    1.1 (V780)       20400096  REMACP             9224  JOE_SMITH

NCP> TELL V780 SHOW LINK 9224 CHARACTERISTICS 
 
Link Volatile Characteristics as of 22-JUL-1987 10:46:38
 
Link = 9224
 
State                    = run
PID                      = 20200F30
Remote node              =  1.3 (V8600)
Delay time               = 1
Remote link              = 3113
Remote user              = CTERM
Username                 = JOE_SMITH
Process name             = JOE_SMITH

The PID stated above is the PID on the remote node.


<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<>      Dan Gregory                                GREGORY@BRL-LVAX.ARPA      <>
<>      BRL-LFD, B120                                                         <>
<>      Aberdeen Proving Grounds, MD. 21005                                   <>
<>      (301) 278-3485                                                        <>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
------