3 # check how many processes we have running and their arguments
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
15 trap "rm -f $tmp.*; exit" 0 1 2 3 15
17 # check PMCS processes
19 # pmdaoracle is optional, so skip it and other optional ones
20 ps
$PCP_PS_ALL_FLAGS \
21 | _filter_optional_pmdas \
26 $7 == "TIME" || $10 == "TIME" { next }
29 for (i = 12; i >= 7; i--) {
30 # most ps variants have TIME as N:NN
31 if ($i ~ /[0-9]:[0-9][0-9]$/) {
35 # darwin ps has TIME as N:NN.NN
36 if ($i ~ /[0-9]:[0-9][0-9]\.[0-9][0-9]$/) {
42 print "Error: cannot find psargs in this ps line" >"'$tmp.err
'"
43 print $0 >"'$tmp.err
'"
47 $psargs ~ /pmcd/ { want = 1 }
48 $psargs ~ /pmda/ { want = 1 }
49 want == 1 { print $psargs }' \
51 -e 's;.*/\([^/]*\);\1;' \
52 | LC_COLLATE
=POSIX
sort