[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

Counting Processes?

» close window

The Question is:

 
Dear Wizard,
I wonder if there is a system service/lexical function
that shows process count (number of processes) in a specific node.
I have thought of some indirect ways(f$pid/sys$process_scan+sys$getjpi)
but it seems a bit clumsy...
 
Thanks in advance !
 
Eran
 


The Answer is :

 
  There is no direct means, other than the mechanism you are already
  aware of: counting the processes.  The supported means requires
  counting all processes, using mechanisms provided by f$pid or by
  the underlying system services.
 
  Alternative (undocumented and unsupported) approaches can include
  examining the system address SYS$GW_IJOBCNT for the current number
  of interactive jobs.  (Use SDA to locate the system virtual address
  of SYS$GW_IJOBCNT on your system and version, then use EXAMINE or
  f$fao -- using the indirect (at-sign) notation -- to retrieve the
  current value.
 
  At the command level, sequences such as:
 
    $ pipe sho user | search sys$input "number of processes"
 
  can be used on V7.1 and later.  (The format of the output generated
  by DCL commands is subject to change without notice.)
 

answer written or last revised on ( 18-MAR-1999 )

» close window