GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PBS_SELSTAT (3)


.Ig
.Ig

NAME

pbs_selstat - obtain status of selected pbs batch jobs

CONTENTS

Synopsis
Description
Diagnostics

SYNOPSIS

#include <pbs_error.h>
#include <pbs_ifl.h>

struct batch_status *pbs_selstat(int connect, struct attropl *sel_list,
char *extend)

void pbs_statfree(struct batch_status *psj)

DESCRIPTION

Issue a batch request to examine the status of jobs which meet certain criteria. pbs_selstat() returns a list of batch_status structures for those jobs which met the selection criteria.

This function is a combination of pbs_selectjobs() and pbs_statjob(). It is an extension to the POSIX Batch standard.

Initially all batch jobs are selected for which the user is authorized to query status. This set may be reduced or filtered by specifying certain attributes of the jobs.

A Select Status batch request is generated and sent to the server over the connection specified by which is the return value of pbs_connect().

The parameter, is a pointer to an attropl structure which is defined in pbs_ifl.h as:

    struct attropl {
        struct attropl *next;
        char           *name;
        char           *resource;
        char           *value;
        enum batch_op   op;
    };

The list is terminated by the first entry where is a null pointer.

The member points to a string which is the name of the attribute. Not all of the job attributes may be used as a selection criteria. The member points to a string which is the name of a resource. This member is only used when is set to ATTR_l, otherwise it should be a pointer to a null string. The member points to a string which is the value of the attribute or resource. The attribute names are defined in pbs_ifl.h:

#define ATTR_a Select based upon the job’s execution time.
#define ATTR_A Select (E) based upon the account string.
#define ATTR_c Select based upon the checkpoint interval.
#define ATTR_e Select (E) based upon the name of the standard error file.
#define ATTR_g Select (E) based upon the list of group names under which the job may execute.
#define ATTR_h Select (E) based upon the hold types.
#define ATTR_j Select (E) based upon the value of the join list.
#define ATTR_k Select (E) based upon the value of the keep files list.
#define ATTR_l Select based upon the value of the resource named in
#define ATTR_m Select (E) based upon the setting of the mail points attribute.
#define ATTR_M Select (E) based upon the list of user names to which mail will be sent.
#define ATTR_N Select (E) based upon the job name.
#define ATTR_o Select (E) based upon the name of the standard output file.
#define ATTR_p Select based upon the priority of the job.
#define ATTR_q Select based upon the specified destination. Jobs selected are restricted to those residing in the named queue. If destination is the null string, the default queue at the server is assumed.
#define ATTR_r Select (E) based upon the rerunable flag.
#define ATTR_session Select based upon the session id assigned to running jobs.
#define ATTR_S Select (E) based upon the execution shell list.
#define ATTR_u Select (E) based upon the owner of the jobs.
#define ATTR_v Select (E) based upon the list of environment variables.
#define ATTR_ctime Select based upon the creation time of the job.
#define ATTR_depend Select based upon the list of job dependencies.
#define ATTR_mtime Select based upon the last modification time of the job.
#define ATTR_qtime Select based upon the time of the job was placed into the current queue.
#define ATTR_qtype Select (E) base on the type of queue in which the job resides.
#define ATTR_stagein Select based upon the list of files to be staged-in.
#define ATTR_stageout Select based upon the list of files to be staged-out.
#define ATTR_state Select based upon the state of the jobs. State is not a job attribute, but is included here to allow selection.

The member defines the operator in the logical expression:
The logical expression must evaluate as true for the job to be selected. The permissible values of are defined in pbs_ifl.h as: The attributes marked with (E) in the description above may only be selected with the equal, EQ, or not equal, NE, operators. The full range of batch_op values is SET, UNSET, INCR, DECR, EQ, NE, GE, GT, LE, and LT, Only the relational operators are allowed in a selstat call, and others will be rejected by the server.
.Ig

If itself is a null pointer, then no selection is done on the basis of attributes.

The return value is a pointer to a list of batch_status structures or the null pointer if no jobs can be queried for status. The batch_status structure is defined in pbs_ifl.h as

    struct batch_status {
        struct batch_status *next;
        char                *name;
        struct attrl        *attribs;
        char                *text;
    }

The entry, is a pointer to a list of attrl structures defined in pbs_ifl.h as:

    struct attrl {
        struct attrl *next;
        char         *name;
        char         *resource;
        char         *value;
    };

It is up the user to free the list of batch_status structures when no longer needed, by calling pbs_statfree().

The parameter, is reserved for implementation defined extensions. TORQUE 2.0.0p1 added the #define’d constant string EXECQUEONLY to only retrieve jobs in execution queues. It is not currently used by this function.
.Ig

SEE ALSO

qselect(1B), pbs_alterjob(3B), pbs_connect(3B), pbs_statjob(3B), and pbs_selectjob(3B).

DIAGNOSTICS

When the batch request generated by pbs_selstat() function has been completed successfully by a batch server, the routine will return a pointer to the list of batch_status structures. If no jobs met the criteria or an error occurred, the return will be the null pointer. If an error occurred, the global integer pbs_errno will be set to a non-zero value.

Search for    or go to Top of page |  Section 3 |  Main Index


Local PBS_SELSTAT (3B)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.