DCL: Counting number of user processes for a period of time
DCL: Counting number of user processes for a period of time
(OP)
Hi all,
i want to count the number of user-processes for a period of time. I need this to be able to get an idea how many concurrent users are active on the system during the week. The user-processes i'm interested in all start with CS.
Currently i'm looking into the following command:
I would like to create a logging of the CS processes every 15 minutes in a text-file.
Looping an command should not be a problem. I've done that before like this
i want to count the number of user-processes for a period of time. I need this to be able to get an idea how many concurrent users are active on the system during the week. The user-processes i'm interested in all start with CS.
Currently i'm looking into the following command:
CODE -->
> sho system /pr=cs* OpenVMS V7.3-2 on node xxxxxx 2-DEC-2014 09:05:57.59 Uptime 16 20:46:50 Pid Process Name State Pri I/O CPU Page flts Pages 0002A844 CS0AAAAAA LEF 5 2114 0 00:00:01.73 1650 916 N 00024872 CS0BBBBBB LEF 6 1500 0 00:00:01.12 1638 883 N 00029881 CS0CCCCCCCC LEF 6 1551 0 00:00:01.25 1606 858 N 0002C48A CS1DDDDDD LEF 6 1405 0 00:00:01.05 1603 786 N 0002BC8F CS1EEEEEEEE LEF 6 1576 0 00:00:01.22 1605 809 N 0002A495 CS0FFFFFFFF LEF 6 2219 0 00:00:02.48 1717 943 N
I would like to create a logging of the CS processes every 15 minutes in a text-file.
Looping an command should not be a problem. I've done that before like this
CODE -->
$ LOOP: $ SOME COMMAND $! DO COMMAND $! $ WAIT 00:10 $GOTO LOOP
RE: DCL: Counting number of user processes for a period of time
Output the output of the show process to a file /out=name.txt or define sys$output sys$login:file.txt
The read the file looking for the process name extracting the name
open/read proc_list sys$login:file.txt
read proc_list proc_line
the proc_line symbol will give you the information then use f$extract lexical to partition the line
then open a local file for write to output the statistics