home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / vms / 13801 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.4 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!ucbvax!UH01.Colorado.EDU!DWING
  2. From: DWING@UH01.Colorado.EDU (Dan Wing)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Number of users logged on a cluster member
  5. Message-ID: <01GNQC083M3M0009MB@VAXF.COLORADO.EDU>
  6. Date: 18 Aug 92 21:08:33 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 31
  11.  
  12. Arne Vajhxj, ARNE@KO.HHS.DK, wrote:
  13.  
  14. >> Is there a way to extract the number of users currently logged on a cluster
  15. >> member from a DCL script (The number given by a show user command) ?
  16. >> I apologize if this is a trivial question, but I was not able to find it 
  17. >> among the lexicals.
  18. >
  19. >You could try:
  20. >
  21. >$ SYS$GW_IJOBCNT=%X800044C0
  22. >$ ijob=f$cvui(0,16,f$fao("!AD",4,SYS$GW_IJOBCNT))
  23. >$ write sys$output ijob," Interactive jobs"
  24. >$ exit
  25. >
  26. >It will show the number og interactive jobs on the current node.
  27.  
  28. If you put the above code into a file, called, say SHOWUSERS.COM, you could:
  29.  
  30.   $ SET PROCESS/PRIVILEGES=OPER
  31.   $ MCR SYSMAN
  32.   SYSMAN> SET ENVIRONMENT/CLUSTER
  33.   SYSMAN> DO @SHOWUSERS
  34.  
  35. or submit the code to a batch queue on each node, wait until all of them
  36. finished running, then parse the output (which was one way of doing the 
  37. equivelent of SHOW USERS/FULL on a pre-VMS V5.2 cluster if you didn't have 
  38. OPER to use SYSMAN).
  39.  
  40. -Dan Wing, DWING@UH01.Colorado.EDU or WING_D@UCOLMCC.BITNET (DGW11)
  41.  Systems Programmer, University Hospital, Denver
  42.  
  43.