This file is indexed.

/var/lib/pcp/testsuite/313 is in pcp-testsuite 3.9.10.

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
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
#! /bin/sh
# PCP QA Test No. 313
# assorted issues associated with pmval and archives with mark
# records
#
## note this file edited by hand to simulate the expected output
#
# Copyright (c) 1995-2002 Silicon Graphics, Inc.  All Rights Reserved.
#

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

# get standard filters
. ./common.product
. ./common.filter
. ./common.check
. ./localconfig

rm -f $seq.out
if [ $PCP_PLATFORM = irix -a \( $PCP_EOE_VER -ge 6512 -o \
                                $PCP_EOE_VER = 6200 \) ]
then
    ln $seq.62_6512plus $seq.out || exit 1
elif [ $PCP_PLATFORM = irix ]
then
    ln $seq.6511minus $seq.out || exit 1
elif [ $PCP_PLATFORM = linux -o $PCP_PLATFORM = darwin -o $PCP_PLATFORM = solaris ]
then
    # same output for Linux, Mac OS X and OpenSolaris
    ln $seq.62_6512plus $seq.out || exit 1
else
    _notrun "Need qualified output for $PCP_PLATFORM"
fi

status=1	# failure is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15

# deal with an annoying libc error ... using TZ=:Australia/Melbourne
# causes the -z option to report the wrong time, at least for some
# times of the year
#
TZ=EST-10
export TZ

offset=`_arch_start src/changeinst -0.25`

# real QA test starts here

for delta in 1sec 0.5sec
do

echo
echo "=== delta=$delta counter in each non-preamble result in all 3 sections ==="
pmval -O $offset -t $delta -z -a src/changeinst sample.seconds 2>$tmp.err
cat $tmp.err

echo
echo "=== delta=$delta counter in the 2nd section only ==="
pmval -O $offset -t $delta -z -a src/changeinst sample.milliseconds 2>$tmp.err
cat $tmp.err

echo
echo "=== delta=$delta instantaneous in 1st and 3rd sections ==="
pmval -O $offset -t $delta -z -a src/changeinst sample.drift 2>$tmp.err
cat $tmp.err

echo
echo "=== delta=$delta discrete and logged once in the 1st and 3rd sections ==="
pmval -O $offset -t $delta -z -a src/changeinst hinv.ncpu 2>$tmp.err
cat $tmp.err

echo
echo "=== delta=$delta counter and indom all over the place ==="
echo "  lo0     ec0     ec2     section"
echo "  yes     yes     no      1"
echo "  no      no      no      2"
echo "  yes     no      yes     3"
pmval -O $offset -t $delta -z -a src/changeinst -i ec0,ec2,lo0 irix.network.interface.total.packets 2>$tmp.err
cat $tmp.err

echo
echo "=== delta=$delta instantaneous and indom all over the place ==="
echo "  bin-100 bin-200 bin-300 bin-400 bin-500 section"
echo "  yes     yes     no      yes     no      1"
echo "  yes     no      yes     yes     once    2"
echo "  no      yes     yes     yes     no      3"
pmval -O $offset -t $delta -z -a src/changeinst -i bin-100,bin-200,bin-300,bin-400,bin-500 sample.bin 2>$tmp.err
cat $tmp.err

echo
echo "=== delta=$delta discrete logged once, different indom in each section ==="
pmval -O $offset -t $delta -z -a src/changeinst pmcd.pmlogger.port 2>$tmp.err
cat $tmp.err

done

echo
echo "=== the whole shooting match ==="
pmdumplog -z -a src/changeinst \
| sed -e '/\[[0-9][0-9]* bytes\]/d'

# success, all done
status=0
exit