3 # Exercise the Linux kernel NFS/RPC metrics.
5 # Copyright (c) 2014 Red Hat.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 [ $PCP_PLATFORM = linux
] || _notrun
"Linux NFS/RPC test, only works with Linux"
18 status
=1 # failure is the default!
19 $sudo rm -rf $tmp.
* $seq.full
20 trap "cd $here; $sudo rm -rf $tmp.*; exit \$status" 0 1 2 3 15
22 # real QA test starts here
24 export LINUX_STATSPATH
=$root
25 pmda
=$PCP_PMDAS_DIR/linux
/pmda_linux.so
,linux_init
27 for tgz
in $here/linux
/nfsrpc-
*.tgz
30 mkdir
$root || _fail
"root in use when processing $tgz"
35 echo "== Checking metric descriptors and values - $base"
36 pminfo
-L -K clear -K add
,60,$pmda -f rpc nfs nfs3 nfs4
37 echo && echo "== done" && echo