/var/lib/pcp/testsuite/slurm/Slurm.pm is in pcp-testsuite 3.10.8build1.
This file is owned by root:root, with mode 0o644.
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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141  | package Slurm;
use strict;
use warnings;
sub new {
    my $self = {};
    bless $self;
    return $self;
};
sub IS_JOB_RUNNING {
    return 1;
};
sub load_node {
    my $nodemsg = {
          'node_array' => [
                            {
                              'node_state' => 3,
                              'tmp_disk' => 0,
                              'arch' => 'x86_64',
                              'reason_time' => 0,
                              'os' => 'Linux',
                              'sockets' => 2,
                              'weight' => 23,
                              'err_cpus' => 0,
                              'alloc_cpus' => 8,
                              'features' => 'IB,CPU-L5630',
                              'name' => 'cpn-d07-04-01',
                              'boards' => 1,
                              'threads' => 1,
                              'cores' => 4,
                              'slurmd_start_time' => 1441121296,
                              'real_memory' => 23000,
                              'reason_uid' => 4294967294,
                              'boot_time' => 1441121272,
                              'cpu_load' => 875,
                              'cpus' => 8
                            },
                            {
                              'node_state' => 3,
                              'tmp_disk' => 0,
                              'arch' => 'x86_64',
                              'reason_time' => 0,
                              'os' => 'Linux',
                              'sockets' => 2,
                              'weight' => 23,
                              'err_cpus' => 0,
                              'alloc_cpus' => 8,
                              'features' => 'IB,CPU-L5630',
                              'name' => 'cpn-d07-04-02',
                              'boards' => 1,
                              'threads' => 1,
                              'cores' => 4,
                              'slurmd_start_time' => 1441822517,
                              'real_memory' => 23000,
                              'reason_uid' => 4294967294,
                              'boot_time' => 1441121253,
                              'cpu_load' => 952,
                              'cpus' => 8
                            },
        ],
          'last_update' => 1441907249,
          'node_scaling' => 1
        };
    
    return $nodemsg;
};
sub load_jobs {
my $jobmsg = {
          'job_array' => [
                            {
                             'work_dir' => '/projects',
                             'priority' => 775724,
                             'threads_per_core' => 4294967294,
                             'profile' => 0,
                             'eligible_time' => 1441385391,
                             'alloc_node' => 'cpn-d07-04-01',
                             'num_nodes' => 1,
                             'assoc_id' => 3295,
                             'qos' => 'supporters',
                             'show_flags' => 0,
                             'shared' => 0,
                             'pn_min_tmp_disk' => 0,
                             'end_time' => 1442132881,
                             'wait4switch' => 0,
                             'time_min' => 0,
                             'ntasks_per_core' => 4294967295,
                             'job_id' => 4452824,
                             'pn_min_cpus' => 8,
                             'start_time' => 1441873681,
                             'ntasks_per_socket' => 4294967295,
                             'name' => 'Ni-P-Hcp-0',
                             'sockets_per_node' => 4294967294,
                             'alloc_sid' => 6682,
                             'pn_min_memory' => 2147491648,
                             'suspend_time' => 0,
                             'user_id' => 366972,
                             'nodes' => 'cpn-d07-04-01',
                             'partition' => 'largemem',
                             'resize_time' => 0,
                             'batch_flag' => 1,
                             'std_in' => '/dev/null',
                             'submit_time' => 1441385391,
                             'pre_sus_time' => 0,
                             'exc_node_inx' => [],
                             'contiguous' => 0,
                             'nice' => 10000,
                             'req_node_inx' => [],
                             'derived_ec' => 0,
                             'array_job_id' => 0,
                             'std_err' => '/projects/job.err',
                             'exit_code' => 0,
                             'num_cpus' => 8,
                             'command' => '/projects/slurmscript',
                             'req_switch' => 0,
                             'max_cpus' => 0,
                             'array_task_id' => 4294967294,
                             'account' => 'piacct',
                             'std_out' => '/projects/job.out',
                             'cpus_per_task' => 1,
                             'ntasks_per_node' => 8,
                             'group_id' => 104475,
                             'state_reason' => 0,
                             'restart_cnt' => 0,
                             'max_nodes' => 0,
                             'requeue' => 0,
                             'time_limit' => 4320,
                             'job_state' => 1,
                             'cores_per_socket' => 4294967294
                           }
            ],
          'last_update' => 1441912161,
        };
    return $jobmsg;
};
1;
 |