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