[[ShowPath]] = 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 [wiki:TorqueUsage/Functions/Pbs_rescquery pbs_rescquery()] call to obtain fresh information. If zero, numbers from the prior [wiki:TorqueUsage/Functions/Pbs_rescquery pbs_rescquery()] are used. == Out == number:: Total number of nodes == Example == {{{ #!python #!/usr/bin/env python c = pbs.pbs_connect(pbs.pbs_default()) number = pbs.totpool(c, 1) print number }}}