pbsnodes.8B 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. .\" Copyright (C) 1994-2018 Altair Engineering, Inc.
  2. .\" For more information, contact Altair at www.altair.com.
  3. .\"
  4. .\" This file is part of the PBS Professional ("PBS Pro") software.
  5. .\"
  6. .\" Open Source License Information:
  7. .\"
  8. .\" PBS Pro is free software. You can redistribute it and/or modify it under the
  9. .\" terms of the GNU Affero General Public License as published by the Free
  10. .\" Software Foundation, either version 3 of the License, or (at your option) any
  11. .\" later version.
  12. .\"
  13. .\" PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
  14. .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. .\" FOR A PARTICULAR PURPOSE.
  16. .\" See the GNU Affero General Public License for more details.
  17. .\"
  18. .\" You should have received a copy of the GNU Affero General Public License
  19. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. .\"
  21. .\" Commercial License Information:
  22. .\"
  23. .\" For a copy of the commercial license terms and conditions,
  24. .\" go to: (http://www.pbspro.com/UserArea/agreement.html)
  25. .\" or contact the Altair Legal Department.
  26. .\"
  27. .\" Altair’s dual-license business model allows companies, individuals, and
  28. .\" organizations to create proprietary derivative works of PBS Pro and
  29. .\" distribute them - whether embedded or bundled with other software -
  30. .\" under a commercial license agreement.
  31. .\"
  32. .\" Use of Altair’s trademarks, including but not limited to "PBS™",
  33. .\" "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
  34. .\" trademark licensing policies.
  35. .\"
  36. .TH pbsnodes 8B "11 January 2018" Local "PBS Professional"
  37. .SH NAME
  38. .B pbsnodes
  39. \- query PBS host or vnode status, mark hosts free or offline, change
  40. the comment for a host, or output vnode information
  41. .SH SYNOPSIS
  42. .B pbsnodes
  43. [-o | -r] [-s <server>] [-C <comment>] <hostname> [<hostname> ...]
  44. .B pbsnodes
  45. [-l] [-s <server>]
  46. .B pbsnodes
  47. -v <vnode> [<vnode> ...] [-s <server>]
  48. .B pbsnodes
  49. -a[v] [-S[j][L]] [-F json|dsv [-D <delim>]] [-s <server>]
  50. .B pbsnodes
  51. [-H] [-S[j][L]] [-F json|dsv [-D <delim>]] <hostname> [<hostname> ...]
  52. .B pbsnodes
  53. --version
  54. .SH DESCRIPTION
  55. The
  56. .B pbsnodes
  57. command is used to query the status of hosts or vnodes, to mark hosts FREE or
  58. OFFLINE, to edit a host's
  59. .I comment
  60. attribute, or to output vnode information. The
  61. .B pbsnodes
  62. command obtains host information by sending a request to the PBS server.
  63. .LP
  64. To print the status of the specified host or hosts, run
  65. .B pbsnodes
  66. with no options (except the
  67. .I -s
  68. option) and with a list of hosts.
  69. .LP
  70. To print the command usage, run
  71. .B pbsnodes
  72. with no options and without a list of hosts.
  73. To remove a node from the scheduling pool, mark it OFFLINE. If it is marked
  74. DOWN, when the server next queries the MoM, and can connect, the node will be
  75. marked FREE.
  76. To offline a single vnode in a multi-vnoded system, use:
  77. .RS 5
  78. qmgr: set node <vnode name> state=offline
  79. .RE
  80. .SH OUTPUT
  81. The order in which hosts or vnodes are listed in the output of the
  82. .B pbsnodes
  83. command is undefined. Do not rely on output being ordered.
  84. If you print attributes,
  85. .B pbsnodes
  86. prints out only those attributes which are not at default values.
  87. .SH PERMISSIONS
  88. PBS Manager or Operator privilege is required to execute
  89. .B pbsnodes
  90. with the
  91. .B \-o
  92. or
  93. .B \-r
  94. options.
  95. Operator or Manager privilege is required to view custom resources
  96. which have been created to be invisible to users, and to see some output
  97. such as PBS version.
  98. .SH OPTIONS
  99. .IP "(no options)" 8
  100. If neither options nor a host list is given, the
  101. .B pbsnodes
  102. command prints usage syntax.
  103. .IP "-a" 8
  104. Lists all hosts and all their attributes (available and used.)
  105. When listing a host with multiple vnodes:
  106. .RS
  107. .IP "" 5
  108. The output for the
  109. .I jobs
  110. attribute lists all the jobs on all the vnodes
  111. on that host.
  112. Jobs that run on more than one vnode will appear once for each vnode they
  113. run on.
  114. For consumable resources, the output for each resource is the sum of that
  115. resource across all vnodes on that host.
  116. For all other resources, e.g. string and Boolean, if the value of that
  117. resource is the same on all vnodes on that host, the value is returned.
  118. Otherwise the output is the literal string "<various>".
  119. .LP
  120. .RE
  121. .IP "-C <comment>" 8
  122. Sets the
  123. .I comment
  124. attribute for the specified host(s) to the value of <comment>.
  125. Comments containing spaces must be quoted. The comment string is limited
  126. to 80 characters. Usage:
  127. .br
  128. .B \ \ \ pbsnodes -C <comment> <hostname> [<hostname> ...]
  129. To set the comment for a vnode:
  130. .br
  131. .B \ \ \ qmgr -c "s n <vnode name> comment=<comment>"
  132. .IP "-F dsv [-D <delim>]"
  133. Prints output in delimiter-separated value format. Optional delimiter
  134. specification. Default delimiter is vertical bar ("|").
  135. .IP "-F json"
  136. Prints output in JSON format.
  137. .IP "-H <host> [<host> ...]"
  138. Prints all non-default-valued attributes for specified hosts and all
  139. vnodes on specified hosts.
  140. .IP "-j"
  141. Displays the following job-related headers for specified vnodes:
  142. .nf
  143. Header\ \ \ \ \ Width\ \ Description
  144. ------------------------------------
  145. vnode 15 Vnode name
  146. state 15 Vnode state
  147. njobs 6 Number of jobs on vnode
  148. run 5 Number of running jobs at vnode
  149. susp 6 Number of suspended jobs at vnode
  150. mem f/t 12 Vnode memory free/total
  151. ncpus f/t 7 Number of CPUs at vnode free/total
  152. nmics f/t 7 Number of MICs at vnode free/total
  153. ngpus f/t 7 Number of GPUs at vnode free/total
  154. jobs any List of job IDs on vnode
  155. .fi
  156. .br
  157. Note that
  158. .I nmics
  159. and
  160. .I ngpus
  161. are custom resources that must be created by the administrator if you
  162. want them displayed here.
  163. Each subjob is treated as a unique job.
  164. .IP "-L"
  165. Displays output with no restrictions on column width.
  166. .IP "-l" 8
  167. Lists all hosts marked as DOWN or OFFLINE. Each such host's state and
  168. comment attribute (if set) is listed. If a host also has state
  169. STATE-UNKNOWN, it is listed. For hosts with multiple vnodes,
  170. only hosts where all vnodes are marked as DOWN or OFFLINE are listed.
  171. .IP "-o <hostname> [<hostname> ...]" 8
  172. Marks listed hosts as OFFLINE even if currently in use. This is
  173. different from being marked DOWN. A host that is marked OFFLINE
  174. continues to execute the jobs already on it, but is removed from
  175. the scheduling pool (no more jobs are scheduled on it.)
  176. Offlines ALL vnodes on a Cray.
  177. For non-Cray hosts with multiple vnodes, pbsnodes operates on a host and all of
  178. its vnodes, where the hostname is resources_available.host, which is
  179. the name of the natural vnode.
  180. To offline all vnodes on a non-Cray multi-vnoded machine:
  181. .br
  182. .B \ \ \ pbsnodes -o <name of natural vnode>
  183. For Cray hosts with multiple vnodes, note that login nodes share a name
  184. with compute nodes, so if you use this option on a Cray, you will
  185. offline ALL of your compute nodes.
  186. To offline a single vnode on a Cray or another
  187. multi-vnoded system, use:
  188. .br
  189. .B \ \ \ qmgr -c "set node <vnode name> state=offline"
  190. Requires PBS Manager or Operator privilege.
  191. .RE
  192. .IP "-r <hostname> [<hostname> ...]" 8
  193. Clears OFFLINE from listed hosts.
  194. .IP "-S"
  195. Displays the following vnode information:
  196. .nf
  197. Header\ \ \ \ \ Width\ \ Description
  198. ------------------------------------
  199. name 15 Vnode name
  200. state 15 Vnode state
  201. OS 8 Value of OS custom resource, if any
  202. hardware 8 Value of hardware custom resource, if any
  203. host 15 Hostname
  204. queue 10 Value of vnode's queue attribute
  205. ncpus 7 Number of CPUs at vnode
  206. nmics 7 Number of MICs at vnode
  207. mem 12 Vnode memory
  208. ngpus 7 Number of GPUs at vnode
  209. comment any Vnode comment
  210. .fi
  211. Note that
  212. .I nmics, ngpus,
  213. and
  214. .I OS
  215. are custom resources that must be created by the administrator
  216. if you want their values displayed here.
  217. .IP "-s <server>" 8
  218. Specifies the PBS server to which to connect.
  219. .IP "-v <vnode> [<vnode> ...]" 8
  220. Lists all non-default-valued attributes for each specified vnode.
  221. .br
  222. With no arguments, prints one entry for each vnode in the PBS complex.
  223. .br
  224. With one or more vnodes specified, prints on entry for each specified
  225. vnode.
  226. .IP "--version" 8
  227. The
  228. .B pbsnodes
  229. command returns its PBS version information and exits.
  230. This option can only be used alone.
  231. .SH OPERANDS
  232. .IP "<server>" 8
  233. Specifies the server to which to connect.
  234. Default: default server.
  235. .IP "<hostname> [<hostname> ...]" 8
  236. Specifies the host(s) to be queried or operated on.
  237. .IP "<vnode> [<vnode> ...]" 8
  238. Specifies the vnode(s) to be queried or operated on.
  239. .SH EXIT STATUS
  240. .IP "Zero"
  241. Success
  242. .IP "Greater than zero"
  243. Incorrect operands are given
  244. .br
  245. .B pbsnodes
  246. cannot connect to the server
  247. .br
  248. There is an error querying the server for the vnodes
  249. .SH SEE ALSO
  250. The
  251. .B PBS Professional Administrator's Guide,
  252. .br
  253. pbs_server(8B) and qmgr(8B)