5 # Copyright (c) 2015 Martins Innus. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 [ -d $PCP_PMDAS_DIR/gpfs
] || _notrun
"gpfs PMDA directory is not installed"
19 perl
-e "use PCP::PMDA" >/dev
/null
2>&1
20 [ $?
-eq 0 ] || _notrun
"perl PCP::PMDA module not installed"
22 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
27 -e "s;$PCP_PMDAS_DIR;\$PCP_PMDAS_DIR;" \
28 -e "s;$script;pmdagpfs.pl;" \
32 # real QA test starts here
35 cd "$PCP_PMDAS_DIR/gpfs"
37 # create a root namespace file for dbpmda to use
38 export GPFS_MMPMON_CMD
="cat $here/gpfs/mmpmon_fsios.txt"
39 PCP_PERL_PMNS
=root
/usr
/bin
/env perl
$script > $tmp.root
41 # create a set of commands for dbpmda
42 cat >$tmp.cmds
<<End-of-File
43 open pipe /usr/bin/env perl $script
45 desc gpfs.fsios.cluster
46 desc gpfs.fsios.filesystem
47 desc gpfs.fsios.read_bytes
48 fetch gpfs.fsios.cluster
49 fetch gpfs.fsios.filesystem
50 fetch gpfs.fsios.read_bytes
54 # iterate over our pre-canned gpfs files
55 echo === Testing precanned gpfs files
56 $sudo TERM
=ansi dbpmda
-n $tmp.root
-ie < $tmp.cmds
2>&1 | _filter