qmove.1B 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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 qmove 1B "15 December 2017" Local "PBS Professional"
  37. .SH NAME
  38. .B qmove
  39. - move PBS batch job
  40. .SH SYNOPSIS
  41. .B qmove
  42. <destination> <job ID> [<job ID> ...]
  43. .br
  44. .B qmove
  45. --version
  46. .SH DESCRIPTION
  47. Moves a job from one queue to another.
  48. The behavior of the
  49. .B qmove
  50. command may be affected by
  51. any site hooks. Site hooks can modify the job's attributes,
  52. change its routing, etc.
  53. .B Restrictions
  54. .br
  55. The
  56. .B qmove
  57. command can be used on job arrays, but not on subjobs or ranges of
  58. subjobs.
  59. Job arrays can only be moved from one server to another if
  60. they are in the 'Q', 'H', or 'W' states, and only if there are no
  61. running subjobs. The state of the job array is preserved, and the job
  62. array will run to completion on the new server.
  63. .LP
  64. A job in the
  65. .B Running ,
  66. .B Transiting ,
  67. or
  68. .B Exiting
  69. state cannot be moved.
  70. A job in the process of provisioning cannot
  71. be moved.
  72. .SH EFFECT OF PRIVILEGE ON BEHAVIOR
  73. An unprivileged user can use the
  74. .B qmove
  75. command to move a job only when
  76. the move would not violate queue restrictions. A privileged user
  77. (root, Manager, Operator) can use the
  78. .B qmove
  79. command to move a job
  80. under some circumstances where an unprivileged user cannot. The
  81. following restrictions apply only to unprivileged users:
  82. .RS 4
  83. The queue must be enabled
  84. .br
  85. Moving the job into the queue must not exceed the queue limits for
  86. jobs or resources
  87. .br
  88. If the job is an array job, the size of the job array must not exceed
  89. .I max_array_size
  90. for the queue
  91. .br
  92. The queue cannot have its
  93. .I from_route_only
  94. attribute set to
  95. .I True
  96. (accepting jobs only from routing queues)
  97. .RE
  98. .SH OPTIONS
  99. .IP "--version" 4
  100. The
  101. .B qmove
  102. command returns its PBS version information and exits.
  103. This option can only be used alone.
  104. .SH OPERANDS
  105. .IP destination 4
  106. Where job(s) are to end up. First operand. Syntax:
  107. .RS 4
  108. .I <queue name>
  109. .RS 4
  110. Moves the job(s) into the specified queue at the job's current server.
  111. .RE
  112. .br
  113. .I @<server name>
  114. .RS 4
  115. Moves the job(s) into the default queue at the specified server.
  116. .RE
  117. .br
  118. .I <queue name>@<server name>
  119. .RS 4
  120. Moves the job(s) into the specified queue at the specified server.
  121. .RE
  122. .RE
  123. .LP
  124. .IP "job ID" 4
  125. Job(s) and/or job array(s) to be moved to the new destination. The
  126. .B qmove
  127. command accepts one or more
  128. .I job ID
  129. operands of the form:
  130. .RS 4
  131. .I <sequence number>[.<server name>][@<server name>]
  132. .br
  133. .I <sequence number>[][.<server name>][@<server name>]
  134. .RE
  135. Note that some shells require that you enclose a job array identifier
  136. in double quotes.
  137. .br
  138. .SH STANDARD ERROR
  139. The
  140. .B qmove
  141. command writes a diagnostic messages to standard error for each
  142. error occurrence.
  143. .SH EXIT STATUS
  144. .IP Zero 4
  145. Upon success
  146. .IP "Greater than zero" 4
  147. Upon failure
  148. .SH SEE ALSO
  149. The
  150. .I PBS Professional User's Guide,
  151. the
  152. .I PBS Professional Administrator's Guide,
  153. .br
  154. qsub(1B), pbs_movejob(3B)