Version 1 (modified by bas, 18 years ago) (diff) |
---|
TOTPOOL
The totpool() function returns the total number of nodes know to the Torque server. This is the sum of the number of nodes available, allocated, reserved and down.
number = pbs.totpool(c, update)
In
c::
Connection id
update::
If update is non-zero causes totpool() to issue a pbs_rescquery() call to obtain fresh information. If zero, numbers from the prior pbs_rescquery() are used.
Out
number::
Total number of nodes
Example
#!/usr/bin/env python c = pbs.pbs_connect(pbs.pbs_default()) number = pbs.totpool(c, 1) print number