This file is indexed.

/var/lib/pcp/testsuite/956 is in pcp-testsuite 3.10.8build1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/sh
# PCP QA Test No. 956
# Exercise pmcd attribute PDU handling after agent failure.
#
# Copyright (c) 2015 Red Hat.
#

seq=`basename $0`
echo "QA output created by $seq"

# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check

_get_libpcp_config
$unix_domain_sockets || _notrun "No unix domain socket support available"

_filter()
{
    sed -e 's/\.\.\.*/\.\.\./g'
}
_cleanup()
{
    if pmprobe -I pmcd.agent.status | grep '"dynamic"' >/dev/null
    then
        cd $here/pmdas/dynamic
        $sudo ./Remove >>$here/$seq.full 2>&1
        cd $here
    fi
    $sudo rm -f $tmp.*
}

status=1	# failure is the default!
$sudo rm -rf $tmp.* $seq.full
signal=$PCP_BINADM_DIR/pmsignal
trap "_cleanup; exit \$status" 0 1 2 3 15

cd $here/pmdas/dynamic
if [ -f GNUmakefile.install ]
then
    make -f GNUmakefile.install clean >>$here/$seq.full 2>&1
    make -f GNUmakefile.install >>$here/$seq.full 2>&1
else
    make clean >>$here/$seq.full 2>&1
    make >>$here/$seq.full 2>&1
fi
$sudo ./Install < /dev/null >$tmp.out 2>&1
cat $tmp.out | tee -a $here/$seq.full | _filter_pmda_install | _filter
cd $here

# real QA test starts here
echo "Initial check of some metric access"
pmprobe -h unix: -i hinv.ncpu

pmsleep 0.2

echo "Terminate a PMDA needing attributes"
$sudo $signal -a pmdadynamic >> $seq.full 2>&1

pmsleep 0.2

echo "Tickle access to the failed PMDA, must see 'Try Again'"
pmprobe -h unix: -i hinv.ncpu

echo "Verify subsequent return to healthy state"
pmprobe -h unix: -i hinv.ncpu

# success, all done
status=0
exit